SteNicholas commented on code in PR #8759:
URL: https://github.com/apache/hudi/pull/8759#discussion_r1213933746


##########
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/table/action/compact/TestHoodieCompactor.java:
##########
@@ -129,6 +152,10 @@ public void testCompactionEmpty() {
       String compactionInstantTime = 
HoodieActiveTimeline.createNewInstantTime();
       Option<HoodieCompactionPlan> plan = table.scheduleCompaction(context, 
compactionInstantTime, Option.empty());
       assertFalse(plan.isPresent(), "If there is nothing to compact, result 
will be empty");
+
+      // Verify compaction.requested, compaction.completed metrics counts.
+      assertEquals(0, getCompactionMetricCount("counter", 
"compaction.requested"));

Review Comment:
   @amrishlal, you could use  const variable `REQUESTED_COMPACTION_EXTENSION` 
in `HoodieTimeline`.



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