jihoonson commented on a change in pull request #11000:
URL: https://github.com/apache/druid/pull/11000#discussion_r595461615
##########
File path:
server/src/test/java/org/apache/druid/server/coordinator/duty/NewestSegmentFirstPolicyTest.java
##########
@@ -642,6 +642,33 @@ public void testIteratorDoesNotReturnCompactedInterval()
Assert.assertFalse(iterator.hasNext());
}
+ @Test
+ public void
testIteratorReturnsAllMixedVersionSegmentsInConfiguredSegmentGranularity()
+ {
+ final VersionedIntervalTimeline<String, DataSegment> timeline =
createTimeline(
+ new
SegmentGenerateSpec(Intervals.of("2017-10-01T00:00:00/2017-10-02T00:00:00"),
new Period("P1D"), "1994-04-29T00:00:00.000Z"),
+ new
SegmentGenerateSpec(Intervals.of("2017-10-01T00:01:00/2017-10-01T00:02:00"),
new Period("PT1H"), "1994-04-30T00:00:00.000Z")
Review comment:
nit: do you want to fix the interval or the period as they mismatch?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]