The GitHub Actions job "CodeQL Analysis" on 
rocketmq.git/codex/hold-service-master-online-drain has failed.
Run started by GitHub user iloveeyjafjalla (triggered by iloveeyjafjalla).

Head commit for run:
085186f9e1275174e1dd4f8a482b295f1b76144c / iloveeyjafjalla <[email protected]>
[ISSUE #11441] fix(broker): wake the held pull requests when an arrival drained 
one bucket

notifyMasterOnline() iterated the result of mpr.cloneListAndClear() directly.
That method answers null - not an empty list - when the bucket is empty at drain
time, and the arrival path drains the same bucket on the store's dispatch 
thread.
An arrival that wins the race between the isEmpty() check and the drain 
therefore
made the enhanced for throw a NullPointerException, which escaped into
onMinBrokerChange and abandoned the sweep half way: every bucket that had not 
been
visited yet kept its requests suspended until the client's own suspend timeout,
which is the stall the master-online wake-up exists to avoid, and the min-broker
update reported a failure.

Drain into a local variable and skip the bucket that lost the race, mirroring 
the
guard notifyMessageArriving already has around the same call.

Report URL: https://github.com/apache/rocketmq/actions/runs/38563614143

With regards,
GitHub Actions via GitBox

Reply via email to