RemoteRequestsTable remoteRequestsTable = getTable(0);
List<ResourceRequestInfo<T>> matchingRequests =
remoteRequestsTable.getMatchingRequests(priority, resourceName, executionType, capability);
remoteRequestsTable can be null, causing NPE.
Changes in AMRMClient for identifying resource-requests explicitly
NPE at AMRMClientImpl.getMatchingRequests
Add null check in AMRMClientImpl#getMatchingRequest
Uploading a trivial patch that adds a null check.
Thanks for raising this Haibo Chen !
The patch itself looks fine.. Can you maybe add a testcase as well?
This message was automatically generated.
Thanks Arun Suresh for your reviews! Attaching a new patch that includes a test.
Thanks Haibo Chen. Committed to trunk!
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #10683 (See https://builds.apache.org/job/Hadoop-trunk-Commit/10683/)
YARN-5753. fix NPE in AMRMClientImpl.getMatchingRequests() (haibochen (rkanter: rev 44fdf009642ae4e99b15f89ec0ca43834f991ef3)
I'm seeing the same error in a spark-shell with Spark built against branch-2. What are people's thoughts on backporting this patch to branch-2? If this makes sense, should I create a separate JIRA, or can it be done as part of this one?
Cherry-picked to branch-2.