sunnysabor opened a new pull request, #7406:
URL: https://github.com/apache/shenyu/pull/7406

   Fixes #6495.
   
   ## Summary
   A transient exception from `doSelectMaster` escaped the 
`scheduleAtFixedRate` callback and cancelled every later master-election 
attempt. Catch runtime failures at the scheduled-task boundary so a failed 
election is logged and the next configured period can retry. The existing 
service cleanup and lock release behavior remains in place; fatal `Error`s are 
not swallowed.
   
   ## Tests
   - Added `ShenyuClusterServiceTest#testMasterSelectionContinuesAfterFailure`: 
the first election attempt throws, the following scheduled attempt runs, and 
failure cleanup/lock release are verified.
   - `./mvnw -B -ntp -pl shenyu-admin -am -Dtest=ShenyuClusterServiceTest 
-DfailIfNoTests=false test` — passed (38-module reactor, 1 test, Checkstyle 
clean).


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

Reply via email to