You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "cshannon (via GitHub)" <gi...@apache.org> on 2023/11/03 12:33:30 UTC

[PR] Update TabletManagementIteratorIT for merge and wal checks [accumulo]

cshannon opened a new pull request, #3923:
URL: https://github.com/apache/accumulo/pull/3923

   This updates tests in `TabletManagementIteratorIT` to verify that the iterator properly detects tablets needing attention if WALs exist on tablets that are part of a merge operation. It also will test that delete does not care if there are WALs.
   
   This PR only updates the tests in TabletManagementIteratorIT and doesn't try and do anything with TGW because after the refactoring in #3904 both the iterator and TGW share the same code for checking the goal state (where the WAL checks are done)
   
   However, another possible follow on test improvement would be to create a test for the `TabletGoalState` class where all the logic was refactored to inside of compute() to test the different cases for computing the resulting state. This could likely just be a normal unit test with mocking and not an IT.


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


Re: [PR] Update TabletManagementIteratorIT for merge and wal checks [accumulo]

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

   > Would be nice to check split in addition to merge in the test.
   
   I added split as well on the latest update


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


Re: [PR] Update TabletManagementIteratorIT for merge and wal checks [accumulo]

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


##########
test/src/main/java/org/apache/accumulo/test/functional/TabletManagementIteratorIT.java:
##########
@@ -163,14 +172,30 @@ public void test() throws AccumuloException, AccumuloSecurityException, TableExi
       assertEquals(1, findTabletsNeedingAttention(client, metaCopy2, tabletMgmtParams),
           "Only 1 of 2 tablets in table t1 should be returned");
 
+      // Remove location and set merge operation id on both tablets
+      // These tablets should not need attention as they have no WALs
+      setTabletHostingGoal(client, metaCopy4, t4, TabletHostingGoal.ALWAYS.name());
+      removeLocation(client, metaCopy4, t4);
+      setOperationId(client, metaCopy4, t4, null, TabletOperationType.MERGING);

Review Comment:
   Could throw in a check before setting the merge op id.
   
   ```suggestion
         assertEquals(2, findTabletsNeedingAttention(client, metaCopy4, tabletMgmtParams),
                 "Tablets have no location and a hosting goal of always, so they should need attention");
         setOperationId(client, metaCopy4, t4, null, TabletOperationType.MERGING);
   ```



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


Re: [PR] Update TabletManagementIteratorIT for merge and wal checks [accumulo]

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


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