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

Multiple sharedInformer creation: NullPointerException while running #2978

Closed
akram opened this issue Apr 9, 2021 · 4 comments · Fixed by #3019
Closed

Multiple sharedInformer creation: NullPointerException while running #2978

akram opened this issue Apr 9, 2021 · 4 comments · Fixed by #3019
Assignees

Comments

@akram
Copy link
Contributor

akram commented Apr 9, 2021

While migrating a project that uses many watchers for different object types to shared informers, I am facing the following error after informers get started:

2021-04-09 08:48:43 WARNING io.fabric8.kubernetes.client.informers.cache.Controller run Reflector list-watching job exiting because the thread-pool is shutting down
java.util.concurrent.RejectedExecutionException: Error while starting ReflectorRunnable watch
	at io.fabric8.kubernetes.client.informers.cache.Reflector.listAndWatch(Reflector.java:87)
	at io.fabric8.kubernetes.client.informers.cache.Controller.run(Controller.java:109)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException

I tried to reuse the sharedInformer or have different ones, but in both cases, I see this exception happening around 60 times for a total of 120 created informers.

@hanikesn
Copy link

hanikesn commented Apr 15, 2021

This is related to #2753 / #2754

@rohanKanojia
Copy link
Member

@hanikesn : Could you please elaborate? How is it related to these?

@hanikesn
Copy link

@hanikesn : Could you please elaborate? How is it related to these?

Sorry, they only seem related on the first look.

@akram
Copy link
Contributor Author

akram commented Apr 20, 2021

fixed by: #3019

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

Successfully merging a pull request may close this issue.

3 participants