Check that there is no space in cluster for put object when we put object and in-memory cache is on #700

Closed
opened 2025-12-28 17:20:23 +00:00 by sami · 2 comments
Owner

Originally created by @alexchetaev on GitHub (Aug 18, 2022).

The issue is that currently we don't check that there is a free disk space available in cluster for put object when we write it through in memory cache. So It can easily seem to the situation then we need to add more disk but can do it. If we restart service for add more disk all object in memory will be lost.

We need the mode for storage node when we check that we have space on the disk before write in memory and return successful response to client.

Originally created by @alexchetaev on GitHub (Aug 18, 2022). The issue is that currently we don't check that there is a free disk space available in cluster for put object when we write it through in memory cache. So It can easily seem to the situation then we need to add more disk but can do it. If we restart service for add more disk all object in memory will be lost. We need the mode for storage node when we check that we have space on the disk before write in memory and return successful response to client.
sami 2025-12-28 17:20:23 +00:00
  • closed this issue
  • added the
    U2
    label
Author
Owner

@cthulhu-rider commented on GitHub (Aug 22, 2022):

Such a pre-check won't fix the issue completely: there could be enough storage space on the check moment, and not enough - micro-interval after. I'd reconsider the exec approach with some sort of sync flag in the request which preserves data to be left in memory.

@cthulhu-rider commented on GitHub (Aug 22, 2022): Such a pre-check won't fix the issue completely: there could be enough storage space on the check moment, and not enough - micro-interval after. I'd reconsider the exec approach with some sort of `sync` flag in the request which preserves data to be left in memory.
Author
Owner

@fyrchik commented on GitHub (Aug 22, 2022):

After #1584 , we no longer have in-memory cache, so the issue not applies.

@fyrchik commented on GitHub (Aug 22, 2022): After #1584 , we no longer have in-memory cache, so the issue not applies.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-node#700
No description provided.