Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine_dispatch: remove chunks from memory if the task fails to be cr…
…eated When the tasks_map is filled and the new arriving chunks try to create a new task, then an error is returned. Additionally, under that condition the new chunks don't get deleted from memory, and they occupy a space of the storage.max_chunks_up. Eventually, the new chunks end up using the entire space of the storage.max_chunks_up. This causes the old chunks that have a task assigned to be unable to be brought up into memory, and therefore they never get flushed. This pr fixes the problem by deleting the new chunks from memory in case they failed to create a task and the filesystem storage is in use. Additionally, it runs a check to not bring it up to memory in the first place if possible. Signed-off-by: seblaz <[email protected]>
- Loading branch information