Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The org.openziti.springboot.ZitiProtocolCustomizer does not recover from service failures #564

Open
ahazeltonNF opened this issue Mar 15, 2024 · 0 comments

Comments

@ahazeltonNF
Copy link
Contributor

Using the ZitiProtocolCustomizer to configure a spring boot application to listen on a ziti service.

On application start, the application behaves as expected but if a Ziti service interruption occurs and the bind fails, the connection is never recovered and an application restart is required.

On failure the exception below is generated (expected, as the result of the service interruption)

Exception in thread "http-ziti-app-exec-3" java.nio.channels.ClosedChannelException
    at org.openziti.net.ZitiServerSocketChannel.accept(ZitiServerSocketChannel.kt:174)
    at org.openziti.springboot.ZitiEndpoint$ZitiAcceptor.run(ZitiEndpoint.kt:47)
    at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
    at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.base/java.lang.Thread.run(Thread.java:1583)

The ZitiProtocolCustomizer should re-attempt the bind at some future time when the service is restored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant