hfutatzhanghb opened a new pull request, #7533:
URL: https://github.com/apache/hadoop/pull/7533

   ### Description of PR
     RouterNetworkTopologyServlet adapts to async router rpc.
     Currently, we will get NPE when request RouterNetworkTopologyServlet using 
async router rpc. Logs as below:
   
   ```java
   2025-03-25 13:53:26,300 [qtp1085041526-1172] WARN  server.HttpChannel 
(HttpChannel.java:handleException(776)) - /topology
   java.lang.NullPointerException
        at java.util.Objects.requireNonNull(Objects.java:203)
        at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
        at java.util.Arrays.asList(Arrays.java:3800)
        at 
org.apache.hadoop.hdfs.server.federation.router.RouterNetworkTopologyServlet.doGet(RouterNetworkTopologyServlet.java:55)
   ```
   
   
   ### How was this patch tested?
   Add an unit test.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to