Abyss-lord opened a new pull request, #6866: URL: https://github.com/apache/gravitino/pull/6866
### What changes were proposed in this pull request? Support role failure event to Gravitino server 1. Support role failure event to Gravitino server 2. Refactor the `EventBus#dispatchEvent` method using the Visitor design pattern to eliminate `instanceof` checks, improve extensibility, and ensure that unhandled event types can be detected at compile time. ### Why are the changes needed? Fix: #6760 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? local 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org