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
Group not found in list after creation #26983
Comments
To help with debugging: When I added this I was trying to correct for a non-repeatable read that was occurring during the concurrency tests where stale data was being grabbed. At the time that resolved the issue and it passed the tests and checks I'll take a look at the test again and revert/see if I can't also provide more info |
…aibilty work. Notably this fails on local and potentially on GHA. Adding a thread sleep of one second between creation and read fixes the failure pointing to non-repeatable read issue of stale data Signed-off-by: Alice W <105500542+alice-wondered@users.noreply.github.com>
…caching, and limits on what the cache keys are capable of. Prevents stale reads from cache for top level group queries Signed-off-by: Alice W <105500542+alice-wondered@users.noreply.github.com>
…caching, and limits on what the cache keys are capable of. Prevents stale reads from cache for top level group queries Signed-off-by: Alice W <105500542+alice-wondered@users.noreply.github.com>
I've gained a lot more understanding of the infinispan workings on this project and discovered a pretty hidden bug while trying to resolve this issue. The issue relating specifically to that bug is linked above and should help to update the solution for this issue to preserve the pagination cache entry as well |
Closes keycloak#26983 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Closes keycloak#26983 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Closes keycloak#26983 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Closes keycloak#26983 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Closes keycloak#26983 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Closes keycloak#26983 Signed-off-by: Pedro Igor <pigor.craveiro@gmail.com>
Before reporting an issue
Area
core
Describe the bug
ConcurrencyTest#createGroup started failing on the 27th October 2023, which was the day after 6949738 was merged.
The error is that a newly created group is not found in the group list:
The mentioned PR also introduced a hack to retry listing the groups after the group was created:
keycloak/testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/admin/concurrency/ConcurrencyTest.java
Lines 238 to 248 in ee126f7
However, this should not be needed the group should be available immediately. As a side-note the retry mechanism above has no wait in-between the retries, so will just pull the endpoint many times in a row.
Version
main
Expected behavior
Groups are available in the list after they have been created
Actual behavior
Groups are not available in the list even after retrying several times
How to Reproduce?
Run ConcurrencyTest.createGroup, or view results from #24337
Anything else?
No response
The text was updated successfully, but these errors were encountered: