YARN-3207. Secondary filter matches entites which do not have the key
being filtered for. Contributed by Zhijie Shen
(cherry picked from commit 57db50cbe3
)
This commit is contained in:
parent
6d6c684567
commit
ba18adbb27
|
@ -572,6 +572,9 @@ Release 2.7.0 - UNRELEASED
|
|||
YARN-2749. Fix some testcases from TestLogAggregationService fails in trunk.
|
||||
(Xuan Gong via junping_du)
|
||||
|
||||
YARN-3207. Secondary filter matches entites which do not have the key being
|
||||
filtered for. (Zhijie Shen via xgong)
|
||||
|
||||
Release 2.6.0 - 2014-11-18
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -672,7 +672,7 @@ public class LeveldbTimelineStore extends AbstractService
|
|||
if (v == null) {
|
||||
Set<Object> vs = entity.getPrimaryFilters()
|
||||
.get(filter.getName());
|
||||
if (vs != null && !vs.contains(filter.getValue())) {
|
||||
if (vs == null || !vs.contains(filter.getValue())) {
|
||||
filterPassed = false;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -767,6 +767,9 @@ public class TimelineStoreTestUtils {
|
|||
|
||||
entities = getEntitiesWithFilters("type_1", userFilter, badTestingFilters);
|
||||
assertEquals(0, entities.size());
|
||||
|
||||
entities = getEntitiesWithFilters("type_5", null, badTestingFilters);
|
||||
assertEquals(0, entities.size());
|
||||
}
|
||||
|
||||
public void testGetEvents() throws IOException {
|
||||
|
|
Loading…
Reference in New Issue