Copilot commented on code in PR #8341:
URL: https://github.com/apache/hbase/pull/8341#discussion_r3395996949


##########
hbase-server/src/test/java/org/apache/hadoop/hbase/master/TestMasterChoreScheduled.java:
##########
@@ -108,6 +109,12 @@ public void testDefaultScheduledChores() throws Exception {
     TestChoreField<HbckChore> hbckChoreTestChoreField = new TestChoreField<>();
     HbckChore hbckChore = hbckChoreTestChoreField.getChoreObj("hbckChore");
     hbckChoreTestChoreField.testIfChoreScheduled(hbckChore);
+
+    TestChoreField<MobFileCleanerChore> mobFileCleanerTestChoreField = new 
TestChoreField<>();
+    MobFileCleanerChore mobFileCleanerChore =
+      mobFileCleanerTestChoreField.getChoreObj("mobFileCleanerChore");
+    mobFileCleanerTestChoreField.testIfChoreScheduled(mobFileCleanerChore);
+    
assertTrue(hMaster.getConfigurationManager().containsObserver(mobFileCleanerChore));

Review Comment:
   `ConfigurationManager` does not define a `containsObserver` method, so this 
assertion will not compile. If you want to verify the observer is registered, 
access the internal observer set via reflection (the test already throws 
`Exception`) and assert it contains the chore instance.



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