YARN-9744. RollingLevelDBTimelineStore.getEntityByTime fails with NPE. Contributed by Prabhu Joseph.
This commit is contained in:
parent
0b507d2ddf
commit
b4097b96a3
@ -793,6 +793,8 @@ private TimelineEntities getEntityByTime(byte[] base, String entityType,
|
||||
entity = getEntity(entityId, entityType, startTime, queryFields,
|
||||
iterator, key, kp.getOffset());
|
||||
}
|
||||
|
||||
if (entity != null) {
|
||||
// determine if the retrieved entity matches the provided secondary
|
||||
// filters, and if so add it to the list of entities to return
|
||||
boolean filterPassed = true;
|
||||
@ -829,6 +831,7 @@ private TimelineEntities getEntityByTime(byte[] base, String entityType,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
db = rollingdb.getPreviousDB(db);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user