fsync directory before mark file removal (#4986)

## Problem

Deletions can be possibly reordered. Use fsync to avoid the case when
mark file doesnt exist but other tenant/timeline files do.

See added comments.

resolves #4987
This commit is contained in:
Dmitry Rodionov
2023-08-15 19:24:23 +03:00
committed by GitHub
parent 207919f5eb
commit 52c2c69351
5 changed files with 31 additions and 7 deletions
+1 -1
View File
@@ -284,4 +284,4 @@ MANY_SMALL_LAYERS_TENANT_CONFIG = {
def poll_for_remote_storage_iterations(remote_storage_kind: RemoteStorageKind) -> int:
return 20 if remote_storage_kind is RemoteStorageKind.REAL_S3 else 8
return 30 if remote_storage_kind is RemoteStorageKind.REAL_S3 else 10