DomGarguilo commented on issue #2222:
URL: https://github.com/apache/accumulo/issues/2222#issuecomment-897060792


   > expects the call to block until all ongoing metadata writes related to 
compactions are complete
   
   For this condition I'm wondering if adding a check to the while loop in 
`close()` would account for this. Maybe something like:
   ```java
   fileMgr.chopStatus != FileSelectionStatus.NOT_ACTIVE
   ```
   > AND prevent any new writes from occurring after the `close()` call returns
   
   For this condition maybe adding a check  
[here](https://github.com/apache/accumulo/blob/a9100ac35f3d72677b767d7670dfb032c7e7d733/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/CompactableImpl.java#L690).
 Something like:
   ```java
   if (completed && !closed)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to