Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Introduce a new property “ozone.om.lease.hard.limit”(default 7d) for hsync open files.
For an hsync open file in OpenFileTable, if file lifetime is already beyond the “ozone.om.lease.hard.limit” threshold, there are two cases, OpenKeyCleanupService will
1. If it has the “leaseRecovery” flag set, which means it is under an explicitly lease recovery, then OpenKeyCleanupService will keep it in OpenFileTable.
2. If it doesn’t has the “leaseRecovery” flag set, then OpenKeyCleanupService will auto commit it with the KeyInfo in openFileTable. In this case, the final block might lose some data at the block end which is hsynced.
Attachments
Issue Links
- links to