Avoid concurrent shutdown of Infinispan caches to avoid lockup. - #10288
Conversation
|
Modeltest was in the green! Close/Open to trigger pipeline. |
7bc50a1 to
a4b7556
Compare
|
This change now combines multiple optimizations in logging and error handling for the model tests related to Infinispan. The tests work now more reliably, at the same time there might be more problematic things in the code. A review feedback would include which changes to keep in this PR and which not, and maybe to split it into multiple PRs. |
|
@ahus1 Thanks for the improvements. It looks good to me. to the |
This is tracked in upstream issue https://issues.redhat.com/browse/ISPN-13664 Closes keycloak#10016
a4b7556 to
a517bf7
Compare
|
@martin-kanis - thanks for pointing me to the existing latch logic; I missed it as I was looking only at test failures. I took this one step further than you suggested and made the start/stop latch the default for all inIndependentFactories() as it looked strange to me to do it for some but not all of them. The awaitLatch() stayed where it was as it is still used in one place. I also ensured that the interrupted flag for the thread is set properly: otherwise the next await or sleep might not see it. I pushed the changes, the build is still running. Please re-review. |
…eport any exceptions within another thread as a test failure. Adding additional information like a thread dump when it doesn't shutdown as expected. Closes keycloak#10016
572c769 to
8badea0
Compare
|
The test on GHA failed due to a transient (?) problem when communicating with LDAP. Added a retry, also stabilized some more tests and fixed some of the logging so it doesn't log to STDERR and pollutes the GHA: 572c769b1e11977f99deeb73338ab31e8700a3ec Let's see what the next run brings, and see the results tomorrow. |
|
@martin-kanis - Model tests are green, ready to continue your review. |
|
@ahus1 Thank you for the update. I see the logs from model tests and they are very big. Around 107 MB so I need to download them because my browser can't handle it. There are many stacktraces related to Infinispan. So I am wondering if we can get rid of them. WDYT? |
|
@martin-kanis - reducing the amount of logs gets a +1 from me. I'd like to have it in a separate ticket, and I'm happy to look into it after this issue. Please open an issue an link it to this one. |
Here it is #10588. Thank you! |
martin-kanis
left a comment
There was a problem hiding this comment.
Thanks @ahus1. Looks good.
Closes #10016