You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "sclee01 (via GitHub)" <gi...@apache.org> on 2026/10/22 01:55:50 UTC

[I] Dev mode live reload fails with "Already a codec registered with name polaris-events-local" [polaris]

sclee01 opened a new issue, #5844:
URL: https://github.com/apache/polaris/issues/5844

   ### Describe the bug
   
   ### Describe the bug
   
   In Quarkus dev mode, any code change followed by a request makes the live reload fail,
   and the server keeps returning HTTP 500 until it is fully restarted.
   
   ### To Reproduce
   
   1. `./gradlew run`
   2. Send any request (e.g. get a token) -> OK
   3. Add a blank line to any Java file under `runtime/service` and save
   4. Send a request again -> live reload is triggered and fails with HTTP 500:
   
       Caused by: java.lang.IllegalStateException: Already a codec registered with name polaris-events-local
           at org.apache.polaris.service.events.EventBusConfigurer.configureEventBus(EventBusConfigurer.java:33)
   
   ### Expected behavior
   
   Live reload succeeds and the request is served normally.
   
   ### Additional context
   
   `EventBusConfigurer` (added in #3973) registers a default codec for `PolarisEvent` on every `StartupEvent`, but never unregisters it. On dev mode restart the Vert.x EventBus is kept, so the second registration fails.
   
   ### System information
   
   - OS: Amazon Linux 2023, aarch64
   - Java: 21.0.9
   
   I'd be happy to work on a fix.
   
   ### To Reproduce
   
   _No response_
   
   ### Actual Behavior
   
   _No response_
   
   ### Expected Behavior
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### System information
   
   _No response_


-- 
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: issues-unsubscribe@polaris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Dev mode live reload fails with "Already a codec registered with name polaris-events-local" [polaris]

Posted by "adutra (via GitHub)" <gi...@apache.org>.
adutra closed issue #5844: Dev mode live reload fails with "Already a codec registered with name polaris-events-local"
URL: https://github.com/apache/polaris/issues/5844


-- 
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: issues-unsubscribe@polaris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org