Li Lu commented on YARN-4220:

Oh Thanks [~varun_saxena]. Having looked at the code I can see we're checking 
the preconditions in ApplicationEntityReader. We're obtaining container level 
entities from the generic reader but application level entities from the 
application entity reader. I think this caused the problem. I thought this was 
a feature but it turned out this looks like a bug :). 

> [Storage implementation] Support getEntities with only Application id but no 
> flow and flow run ID
> -------------------------------------------------------------------------------------------------
>                 Key: YARN-4220
>                 URL: https://issues.apache.org/jira/browse/YARN-4220
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: timelineserver
>            Reporter: Li Lu
>            Assignee: Li Lu
>            Priority: Minor
> Currently we're enforcing flow and flowrun id to be non-null values on 
> {{getEntities}}. We can actually query the appToFlow table to figure out an 
> application's flow id and flowrun id if they're missing. This will simplify 
> normal queries. 

This message was sent by Atlassian JIRA

Reply via email to