You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several places in tests where the boolean result of CountDownLatch.await(timeout) is not tested. It should properly be wrapped into assertTrue() in (almost) all cases. Currently, these tests don't really verify the correctness of the production code.
To systematically eradicate these bugs, either the configuration for "Result of method call is ignored" inspection should be edited and the inspection is enabled on error level (which I think is preferable because we want to strictly check this inspection anyway), or a separate Structural Search pattern could be easily created.
The text was updated successfully, but these errors were encountered:
ExecutorService.awaitTermination, e. g. in IntermediaryDataManager should probably at least log something if it fails to terminate in the specified time, FYI @jihoonson. The Structural search pattern should be marked as "within type hierarchy".
Hi,
I would like to work on this ticket, I will spend some time getting myself familiar with the codebase and try to track down where to fix this issue.
There are several places in tests where the boolean result of
CountDownLatch.await(timeout)
is not tested. It should properly be wrapped intoassertTrue()
in (almost) all cases. Currently, these tests don't really verify the correctness of the production code.See https://github.com/code-review-checklists/java-concurrency#check-await
To systematically eradicate these bugs, either the configuration for "Result of method call is ignored" inspection should be edited and the inspection is enabled on error level (which I think is preferable because we want to strictly check this inspection anyway), or a separate Structural Search pattern could be easily created.
The text was updated successfully, but these errors were encountered: