Reduce logging of errors during shutdown - #10589
Conversation
4453ac5 to
01dc3be
Compare
|
@martin-kanis - I took an attempt and now the logs are down from 110 MB to 13 MB. The change contains to commits while it is in draft mode:
The second change is a change to the default behavior, at the same time I wonder when one would discard events here in the first place; I would assume people want to get and process all these event instead of filling the log. I'd love to hear a first comment. Depending on your comment we could ask more people for feedback here. |
984b8c0 to
6a7b495
Compare
|
@martin-kanis - after yesterdays's call I looked a bit deeper also into DefaultExecutorsProviderFactory and the change you pointed me at. This is the code in the main branch: Previously this was a The behaviors of the different classes:
This indicates that when it is configured as I now changed the code to match the comment, it now uses a Now the behavior to never reject a task is the same if one would configure min/max to the same size. The downside is that it could queue up a lot of tasks, and I will reach out to Marek in another comment to hear his thoughts. For now, I'd like you to have a look/review and give me your thoughts on this. Thanks! |
|
Hi @mposolda - we've seen lots of exception as such as the following during the model tests when we create lots of offline sessions to test. They are rejected due to the setup of the executors in
I wonder if you could remember a reason when an executor should actually reject the task that Keycloak wants to execute, for example when it is about to send something to a remote cache. I would think that I'd rather queue the task than discard it. Looking at the code I found that when min=max size of the pool, it constructs a thread pool that has a Please let me know what you think about this change in DefaultExecutorsProviderFactory https://github.com/keycloak/keycloak/pull/10589/files#diff-afccac3c0d30862d947ddc23b9670f7e26dbbf26a4687e7b266fc7f8b538df90 Thanks! |
6a7b495 to
d5f05ba
Compare
|
@martin-kanis, updated |
I don't know yet why Cross-DC tests are failing. Tests use |
|
@ahus1 Failures in Cross-DC tests are maybe related to this https://developer.jboss.org/thread/239373 |
2e6e4e7 to
06e2efb
Compare
martin-kanis
left a comment
There was a problem hiding this comment.
Thanks @ahus1! Log size reduced from ~108MB to ~18MB.
|
Hi @hmlnarik - this PR is ready to be merged. The biggest change is in DefaultExecutorsProviderFactory.java that changes a bounded queue to an unbounded queue; changing a previous commit here 30b3cae#diff-afccac3c0d30862d947ddc23b9670f7e26dbbf26a4687e7b266fc7f8b538df90. Thanks! |
06e2efb to
fbe584b
Compare
fbe584b to
4bffc20
Compare
|
@hmlnarik - all review comments are now implemented. The current build failed for model tests and quickstarts as the version number changed to "999-SNAPSHOT", therefore this is not relevant here. Thanks. |
hmlnarik
left a comment
There was a problem hiding this comment.
Thanks for the changes!
Closes #10588