Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.15.0
-
None
-
None
Description
Logically, only the lease holder can do abandonBlock(...). However, since the file is visible to the other clients once it has been created. It is possible for the other client to obtain block information for a file which is being created (i.e. not called complete(String, String) yet). Then, they can do abandonBlock(...) with the obtained block information.
I suggest to add lease holder information as a parameter in abandonBlock(...). So that we can make sure only the lease holder can do abandonBlock(...).