Skip to content

Commit

Permalink
Don't log segment name in TimeSegmentPruner (#14855)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangfu0 authored Jan 21, 2025
1 parent 085c995 commit 2babb6f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ private Interval extractIntervalFromSegmentZKMetaZNRecord(String segment, @Nulla
return DEFAULT_INTERVAL;
}

// Validate time interval
long startTime = znRecord.getLongField(CommonConstants.Segment.START_TIME, -1);
long endTime = znRecord.getLongField(CommonConstants.Segment.END_TIME, -1);
if (startTime < 0 || endTime < 0 || startTime > endTime) {
LOGGER.warn("Failed to find valid time interval for segment: {}, table: {}", segment, _tableNameWithType);
// Consuming and committing segments don't have time interval
return DEFAULT_INTERVAL;
}

Expand Down

0 comments on commit 2babb6f

Please sign in to comment.