keith-turner opened a new pull request, #1123:
URL: https://github.com/apache/fluo/pull/1123

   There was a bug where if a column family was empty and the qual was not 
empty this would cause lock recovery to fail.  The underlying cause was a bug 
in the Column class.  This class has an isFamilySet() method that was returning 
false when the family was set to the empty string.  This cause caused lock 
recovery code to create an incorrect range.
   
   The Column class was relying on internal behavior of the Bytes class that 
probably changed and caused this bug.
   
   This commit adds a new IT that recreates this bug.  If the new IT is run w/o 
the fix to the Column class then it would fail as follows.
   
   ```
   Running org.apache.fluo.integration.impl.FailureIT
   Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 8.011 sec 
<<< FAILURE! - in org.apache.fluo.integration.impl.FailureIT
   testRecoverEmptyColumn(org.apache.fluo.integration.impl.FailureIT)  Time 
elapsed: 7.096 sec  <<< ERROR!
   java.lang.IllegalStateException: can not abort : bob  bal  5 (UNKNOWN)
        at 
org.apache.fluo.integration.impl.FailureIT.testRecoverEmptyColumn(FailureIT.java:688)
   ```


-- 
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