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

Concurrency bug in UnparsedTask? #304

Open
zhaih opened this issue Oct 10, 2024 · 1 comment
Open

Concurrency bug in UnparsedTask? #304

zhaih opened this issue Oct 10, 2024 · 1 comment

Comments

@zhaih
Copy link
Collaborator

zhaih commented Oct 10, 2024

Got this exception in a run, and disappears when I rerun the benchmark, not investigated yet

Exception in thread "main" java.lang.NullPointerException: Cannot read field "groups" because "this.groupsResultTerms" is null
	at perf.SearchTask.toString(SearchTask.java:585)
	at java.base/java.lang.String.valueOf(String.java:4465)
	at java.base/java.util.concurrent.atomic.AtomicReference.toString(AtomicReference.java:276)
	at perf.UnparsedTask.toString(UnparsedTask.java:91)
	at java.base/java.lang.String.valueOf(String.java:4465)
	at perf.SearchPerfTest._main(SearchPerfTest.java:726)
	at perf.SearchPerfTest.main(SearchPerfTest.java:143)
@mikemccand
Copy link
Owner

Egads .toString() through an AtomicReference!

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

2 participants