adding comments to explain merge failure in segmentMetadata query

This commit is contained in:
Himanshu Gupta 2015-12-19 11:39:24 -06:00
parent c88c39e1d7
commit e1631967e3
2 changed files with 3 additions and 1 deletions

View File

@ -149,6 +149,8 @@ public class SegmentMetadataQueryQueryToolChest extends QueryToolChest<SegmentAn
List<Interval> newIntervals = null;
if (query.hasInterval()) {
//List returned by arg1.getIntervals() is immutable, so a new list needs to
//be created.
newIntervals = new ArrayList<>(arg1.getIntervals());
newIntervals.addAll(arg2.getIntervals());
}

View File

@ -164,7 +164,7 @@ public class SegmentMetadataQueryTest
testQuery,
Maps.newHashMap()
),
"failed SegmentMetadata bySegment query"
"failed SegmentMetadata merging query"
);
exec.shutdownNow();
}