xiangyuf commented on code in PR #4893:
URL: https://github.com/apache/paimon/pull/4893#discussion_r1923036344


##########
paimon-core/src/main/java/org/apache/paimon/consumer/ConsumerManager.java:
##########
@@ -107,6 +108,34 @@ public void expire(LocalDateTime expireDateTime) {
         }
     }
 
+    /** Clear consumers. */
+    public void clearConsumers(Pattern includingPattern, Pattern 
excludingPattern) {
+        try {
+            listVersionedFileStatus(fileIO, consumerDirectory(), 
CONSUMER_PREFIX)
+                    .forEach(
+                            status -> {
+                                String consumerName =
+                                        status.getPath()
+                                                .getName()
+                                                
.substring(CONSUMER_PREFIX.length());
+                                boolean shouldCompaction =

Review Comment:
   shouldClear?



-- 
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: issues-unsubscr...@paimon.apache.org

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

Reply via email to