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

Test race condition??? #41

Open
sparkoo opened this issue Nov 20, 2017 · 0 comments
Open

Test race condition??? #41

sparkoo opened this issue Nov 20, 2017 · 0 comments
Labels

Comments

@sparkoo
Copy link
Owner

sparkoo commented Nov 20, 2017

This test randomly, but with very low probability, fails.

  • on slow HW/under heavy system load ???
givenOneBox_whenRequestWithEnsureChecksumInParallel_thenChecksumIsProcessedAsEnsured(cz.sparko.boxitory.test.e2e.EnsureChecksumParallelTest)  Time elapsed: 0.091 sec  <<< FAILURE!
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException
        at cz.sparko.boxitory.test.e2e.EnsureChecksumParallelTest$VmRequest.run(EnsureChecksumParallelTest.java:121)
        at cz.sparko.boxitory.test.e2e.ConcurrentTester.lambda$new$0(ConcurrentTester.java:11)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ArrayIndexOutOfBoundsException: null
        at java.lang.System.arraycopy(Native Method)
        at java.util.ArrayList.addAll(ArrayList.java:584)
        at org.springframework.boot.test.autoconfigure.web.servlet.SpringBootMockMvcBuilderCustomizer$DeferredLinesWriter.write(SpringBootMockMvcBuilderCustomizer.java:253)
        at org.springframework.boot.test.autoconfigure.web.servlet.SpringBootMockMvcBuilderCustomizer$LinesWritingResultHandler$LinesPrintingResultHandler.write(SpringBootMockMvcBuilderCustomizer.java:190)
        at org.springframework.boot.test.autoconfigure.web.servlet.SpringBootMockMvcBuilderCustomizer$LinesWritingResultHandler.handle(SpringBootMockMvcBuilderCustomizer.java:180)
        at org.springframework.test.web.servlet.MockMvc.applyDefaultResultActions(MockMvc.java:195)
        at org.springframework.test.web.servlet.MockMvc.perform(MockMvc.java:163)
        at cz.sparko.boxitory.test.e2e.EnsureChecksumParallelTest$VmRequest.run(EnsureChecksumParallelTest.java:115)
        at cz.sparko.boxitory.test.e2e.ConcurrentTester.lambda$new$0(ConcurrentTester.java:11)
        at java.lang.Thread.run(Thread.java:748)
@sparkoo sparkoo added the bug label Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant