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
Cherry-picked to branch-2.
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?
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)
Thanks Haibo Chen. Committed to trunk!
This message was automatically generated.
Thanks Arun Suresh for your reviews! Attaching a new patch that includes a test.
Thanks for raising this Haibo Chen !
The patch itself looks fine.. Can you maybe add a testcase as well?
Uploading a trivial patch that adds a null check.