Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.3-alpha, 3.0.0-alpha1
-
None
Description
Currently recoverLease API will return true if file is already closed. Otherwise it will trigger internalLease recovery and return false. It may take some time to really complete this recovery and file to be closed completely. So, there is noway for the users to wait correctly until file is closed completely.
It would good if we have one API which says whether that file is closed or not. So, that users can relay on that proceed further if and only if file is closed completely.
See the discussion in HBASE-7878
Attachments
Attachments
Issue Links
- blocks
-
FLUME-1942 Flume should check if a file is closed if DFSClient#close() throws
- Open
- is related to
-
HBASE-8670 [0.94] Backport HBASE-8449,HBASE-8204 and HBASE-8699 to 0.94 (Refactor recoverLease retries and pauses)
- Closed
-
HDFS-4774 Backport HDFS-4525 'Provide an API for knowing whether file is closed or not' to branch-1
- Closed
- relates to
-
HBASE-8394 Utilize isFileClosed() so that the wait for lease recovery can be optimized
- Closed