gavinchou commented on PR #64167:
URL: https://github.com/apache/doris/pull/64167#issuecomment-4849869056

   Possible NPE in `TabletScheduler` when a replica references a dropped 
backend.
   
   The new exclude-tag check dereferences `be.getLocationTag()` immediately 
after `infoService.getBackend(beId)`. If a replica still references a backend 
that has already been dropped, `getBackend(beId)` can return null, and the 
scheduler will throw before it can skip or handle that replica.
   
   Relevant code:
   
https://github.com/apache/doris/blob/cde59482ce5a548a2652c3aead57096a9c832f22/fe/fe-core/src/main/java/org/apache/doris/clone/TabletScheduler.java#L817-L823
   
   Can we add a null check before reading `be.getLocationTag()` and add a small 
scheduler test for a replica on a dropped backend?


-- 
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