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

[gateway]healthcheck fails with an empty endpoint group #2205

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

Comments

@NicolasGeraud
Copy link
Member

commented May 7, 2019

If an empty endpoint group exists, the healthcheck failed

Expected Behavior

The healthcheck should work with empty endpoints groups

Steps to Reproduce (for bugs)

  1. create 2 endpoints groups, one with an endpoint, one empty
  2. configure the healthcheck
  3. deploy
10:59:37.787 [sync-1] [5da639b6-a3c7-4cc5-a639-b6a3c75cc5f9] ERROR i.g.g.services.sync.SyncManager - Error while determining deployed APIs store into events payload
java.lang.NullPointerException: null
	at io.gravitee.gateway.services.healthcheck.verticle.EndpointHealthcheckVerticle.lambda$startHealthCheck$0(EndpointHealthcheckVerticle.java:95)
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
	at java.util.Iterator.forEachRemaining(Iterator.java:116)
	at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)

Your Environment

  • Version used: 1.20.15
  • Browser Name and version:
  • Operating System and version:

NicolasGeraud added a commit to gravitee-io/gravitee-gateway that referenced this issue May 7, 2019

@NicolasGeraud NicolasGeraud self-assigned this May 7, 2019

@NicolasGeraud NicolasGeraud added this to the APIM - 1.20.16 milestone May 7, 2019

@NicolasGeraud NicolasGeraud changed the title [gateway]healthcheck failed with an empty endpoint group [gateway]healthcheck fails with an empty endpoint group May 7, 2019

brasseld added a commit to gravitee-io/gravitee-gateway that referenced this issue May 7, 2019

@brasseld brasseld closed this May 7, 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.