You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "keith-turner (via GitHub)" <gi...@apache.org> on 2023/06/13 22:23:09 UTC

[GitHub] [accumulo] keith-turner opened a new pull request, #3492: fixes bug where bulk import could cause compcation to hang

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

   This commit fixes a bug where a bulk import into a tablet that could not split would leave the tablet in bad state where it could not compact. The cause of the bug was the split code calling Tablet.initiateClose() which closed the tablets compactable object.  Then split code would decided it did not want to close the tablet and reset Tablet.closeState to OPEN, however the compactable object would be left closed.
   
   This bug existed before #3249, however the changes in #3249 exposed a reliable path to the bug via bulk import.  Before #3249 I suspect the only path to access the bug was a race conditions where an unsplittable file was added at just the right time while the split code was running.
   
   This particular bug with the closing of the compacatable and subsequent reopening of the tablet does not exists in 1.X.  However the sketchy code that initiates close and then reopens a tablet  does exists in 1.X. If that code has other problems, then #3249 related changes in 1.10 may provide a new path to accessing those problems.
   
   This commit also adds a test that was able to reproduce the problem.
   
   fixes #3491


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] keith-turner commented on pull request #3492: fixes bug where bulk import could cause compcation to hang

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on PR #3492:
URL: https://github.com/apache/accumulo/pull/3492#issuecomment-1590161294

   > When fixed, should be able to verify locally with mvn clean verify -DskipTests -Psec-bugs
   
   I saw that build error and created a fix and ran `mvn clean verify -DskipTests` locally. I suppose without the `-Psec-bugs` I was not really testing my fix. I'll wait for GH actions.


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] ctubbsii commented on pull request #3492: fixes bug where bulk import could cause compcation to hang

Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on PR #3492:
URL: https://github.com/apache/accumulo/pull/3492#issuecomment-1590148625

   Spotbugs catches:
   
   ```
   [ERROR] High: Random object created and used only once in org.apache.accumulo.test.functional.SplitIT.bulkImportThatCantSplitHangsCompaction() [org.apache.accumulo.test.functional.SplitIT] At SplitIT.java:[line 255] DMI_RANDOM_USED_ONLY_ONCE
   [ERROR] Medium: This random generator (java.util.Random) is predictable [org.apache.accumulo.test.functional.SplitIT] At SplitIT.java:[line 243] PREDICTABLE_RANDOM
   ```
   
   When fixed, should be able to verify locally with `mvn clean verify -DskipTests -Psec-bugs`


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] keith-turner merged pull request #3492: fixes bug where bulk import could cause compcation to hang

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner merged PR #3492:
URL: https://github.com/apache/accumulo/pull/3492


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [accumulo] keith-turner commented on pull request #3492: fixes bug where bulk import could cause compcation to hang

Posted by "keith-turner (via GitHub)" <gi...@apache.org>.
keith-turner commented on PR #3492:
URL: https://github.com/apache/accumulo/pull/3492#issuecomment-1590144709

   I was able to successfully run all ITs matching the pattern `*Split*IT`.
   
   ```
   [INFO] -------------------------------------------------------
   [INFO]  T E S T S
   [INFO] -------------------------------------------------------
   [INFO] Running org.apache.accumulo.test.compaction.SplitCancelsMajCIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 77.543 s - in org.apache.accumulo.test.compaction.SplitCancelsMajCIT
   [INFO] Running org.apache.accumulo.test.LargeSplitRowIT
   [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 66.316 s - in org.apache.accumulo.test.LargeSplitRowIT
   [INFO] Running org.apache.accumulo.test.functional.DeleteRowsSplitIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 68.978 s - in org.apache.accumulo.test.functional.DeleteRowsSplitIT
   [INFO] Running org.apache.accumulo.test.functional.MetadataSplitIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 26.458 s - in org.apache.accumulo.test.functional.MetadataSplitIT
   [INFO] Running org.apache.accumulo.test.functional.CreateInitialSplitsIT
   [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 132.613 s - in org.apache.accumulo.test.functional.CreateInitialSplitsIT
   [INFO] Running org.apache.accumulo.test.functional.BatchScanSplitIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 17.911 s - in org.apache.accumulo.test.functional.BatchScanSplitIT
   [INFO] Running org.apache.accumulo.test.functional.BulkSplitOptimizationIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 23.603 s - in org.apache.accumulo.test.functional.BulkSplitOptimizationIT
   [INFO] Running org.apache.accumulo.test.functional.AddSplitIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.658 s - in org.apache.accumulo.test.functional.AddSplitIT
   [INFO] Running org.apache.accumulo.test.functional.SplitIT
   [INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 118.041 s - in org.apache.accumulo.test.functional.SplitIT
   [INFO] Running org.apache.accumulo.test.functional.SplitRecoveryIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 12.653 s - in org.apache.accumulo.test.functional.SplitRecoveryIT
   [INFO] Running org.apache.accumulo.test.SplitRecoveryIT
   [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.224 s - in org.apache.accumulo.test.SplitRecoveryIT
   [INFO] Running org.apache.accumulo.test.MetaSplitIT
   [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.704 s - in org.apache.accumulo.test.MetaSplitIT
   [INFO] 
   [INFO] Results:
   [INFO] 
   [INFO] Tests run: 27, Failures: 0, Errors: 0, Skipped: 0
   
   ```


-- 
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: notifications-unsubscribe@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org