Merge pull request #2131 from himanshug/add_comment

adding comments to explain merge failure in segmentMetadata query
This commit is contained in:
Fangjin Yang 2015-12-19 17:23:37 -08:00
commit e469655784
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();
}