abhishekrb19 commented on code in PR #15542:
URL: https://github.com/apache/druid/pull/15542#discussion_r1423553844


##########
server/src/main/java/org/apache/druid/server/coordinator/compact/NewestSegmentFirstIterator.java:
##########
@@ -429,8 +430,9 @@ private List<Interval> findInitialSearchInterval(
     final List<Interval> searchIntervals = new ArrayList<>();
 
     for (Interval lookupInterval : filteredInterval) {
-      if (Intervals.ETERNITY.equals(lookupInterval)) {
-        log.warn("Cannot compact datasource[%s] since interval is ETERNITY.", 
dataSourceName);
+      if (Intervals.ETERNITY.getStart().equals(lookupInterval.getStart())
+          || Intervals.ETERNITY.getEnd().equals(lookupInterval.getEnd())) {
+        log.warn("Cannot compact datasource[%s] since interval start or end 
coincides with ETERNITY.", dataSourceName);

Review Comment:
   ```suggestion
           log.warn("Cannot compact datasource[%s] since lookupInterval[%s] 
coincides with ETERNITY.", dataSourceName, lookupInterval);
   ```



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to