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

[repository] [bridge-http] Retry client connection until the server is available #2318

Closed
NicolasGeraud opened this issue May 31, 2019 · 0 comments

Comments

@NicolasGeraud
Copy link
Member

commented May 31, 2019

Expected Behavior

The client side of the bridge must be fully operational if the server start after.

Current Behavior

  • the heartbeat service throws NPE
2019-05-22 11:50:06,388 [gateway-monitor] ERROR i.g.g.s.hearbeat.HeartbeatThread - An unexpected error occurs while monitoring the gateway
java.lang.NullPointerException: null
at io.gravitee.gateway.services.hearbeat.HeartbeatThread.run(HeartbeatThread.java:49)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
g 
  • the gateway is not listed
  • in some occurences the health-check end-point (curl http://localhost:18082/_node/health) returned "Internal server Error"

Steps to Reproduce (for bugs)

  1. start the bridge client and wait
  2. start the bridge server

Your Environment

  • Version used: 1.25.4

@NicolasGeraud NicolasGeraud added this to the APIM - 1.25.x milestone May 31, 2019

@NicolasGeraud NicolasGeraud self-assigned this Jun 3, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-gateway-bridge-http that referenced this issue Jun 3, 2019

NicolasGeraud added a commit to gravitee-io/gravitee-repository-gateway-bridge-http that referenced this issue Jun 3, 2019

@brasseld brasseld changed the title [repository][bridge] retry client connection until the server be up [repository] [bridge-http] Retry client connection until the server is available Jun 6, 2019

brasseld added a commit to gravitee-io/gravitee-repository-gateway-bridge-http that referenced this issue Jun 6, 2019

@brasseld brasseld closed this Jun 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.