You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by "link3280 (via GitHub)" <gi...@apache.org> on 2024/07/18 12:01:30 UTC

[I] [Bug]: AMS crashes when javalin stop timeouts [amoro]

link3280 opened a new issue, #3050:
URL: https://github.com/apache/amoro/issues/3050

   ### What happened?
   
   If AMS lost the leadership and dispose itself, it stops javalin HTTP server. Howerer, if javalin stop timeouts, AMS would crash.
   
   ### Affects Versions
   
   0.5.1
   
   ### What table formats are you seeing the problem on?
   
   Iceberg
   
   ### What engines are you seeing the problem on?
   
   AMS
   
   ### How to reproduce
   
   _No response_
   
   ### Relevant log output
   
   ```shell
   2024-07-18 18:11:40,485 ERROR [main] [io.javalin.Javalin] [] - Javalin failed to stop gracefully
   java.util.concurrent.TimeoutException: null
       at org.eclipse.jetty.util.FutureCallback.get(FutureCallback.java:130) ~[jetty-util-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.util.FutureCallback.get(FutureCallback.java:30) ~[jetty-util-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.server.handler.AbstractHandlerContainer.doShutdown(AbstractHandlerContainer.java:175) ~[jetty-server-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.server.Server.doStop(Server.java:447) ~[jetty-server-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:94) ~[jetty-util-9.4.46.v20220331.jar:9.4.46.v20220331]
       at io.javalin.Javalin.stop(Javalin.java:209) ~[javalin-4.6.1.jar:4.6.1]
       at com.netease.arctic.server.ArcticServiceContainer.dispose(ArcticServiceContainer.java:172) ~[amoro-ams-server-0.5.2-GDC1.4.0.jar:?]
       at com.netease.arctic.server.ArcticServiceContainer.main(ArcticServiceContainer.java:113) ~[amoro-ams-server-0.5.2-GDC1.4.0.jar:?]
   2024-07-18 18:11:40,489 ERROR [main] [com.netease.arctic.server.ArcticServiceContainer] [] - AMS encountered an unknown exception, will exist
   io.javalin.core.util.JavalinException: java.util.concurrent.TimeoutException
       at io.javalin.Javalin.stop(Javalin.java:213) ~[javalin-4.6.1.jar:4.6.1]
       at com.netease.arctic.server.ArcticServiceContainer.dispose(ArcticServiceContainer.java:172) ~[amoro-ams-server-0.5.2-GDC1.4.0.jar:?]
       at com.netease.arctic.server.ArcticServiceContainer.main(ArcticServiceContainer.java:113) ~[amoro-ams-server-0.5.2-GDC1.4.0.jar:?]
   Caused by: java.util.concurrent.TimeoutException
       at org.eclipse.jetty.util.FutureCallback.get(FutureCallback.java:130) ~[jetty-util-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.util.FutureCallback.get(FutureCallback.java:30) ~[jetty-util-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.server.handler.AbstractHandlerContainer.doShutdown(AbstractHandlerContainer.java:175) ~[jetty-server-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.server.Server.doStop(Server.java:447) ~[jetty-server-9.4.46.v20220331.jar:9.4.46.v20220331]
       at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:94) ~[jetty-util-9.4.46.v20220331.jar:9.4.46.v20220331]
       at io.javalin.Javalin.stop(Javalin.java:209) ~[javalin-4.6.1.jar:4.6.1]
       ... 2 more
   ```
   
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's Code of Conduct


-- 
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-unsubscribe@amoro.apache.org.apache.org

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


Re: [I] [Bug]: AMS crashes if javalin stop timeouts during leadership transistion [amoro]

Posted by "zhoujinsong (via GitHub)" <gi...@apache.org>.
zhoujinsong closed issue #3050: [Bug]: AMS crashes if javalin stop timeouts during leadership transistion
URL: https://github.com/apache/amoro/issues/3050


-- 
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-unsubscribe@amoro.apache.org

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