-
Notifications
You must be signed in to change notification settings - Fork 68
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
CrossDCTest: Unable to load keys for caches that use UUID as key #628
Comments
There are two options
Option 2. is better, although it has some disadvantages like it is not secured and won't work if Keycloak is down. |
@mhajas - is this still necessary / still a problem? Can you add more context here if it is still necessary? |
Sure. Yes, this is still necessary in my opinion. The issue here is that the CrossDC testsuite accesses Infinispan caches using ISPN's Rest API. This works well for some simple tasks, for example cache size but not for more difficult tasks. For example, we are currently not able to list keys for client session cache because the cache uses The solution to this is to use something that understands the cache structure for these calls. There are two options:
The second option is preferred as it is already implemented in dataset provider. The missing part is to implement https://github.com/keycloak/keycloak-benchmark/blob/main/provision/rosa-cross-dc/keycloak-benchmark-crossdc-tests/src/test/java/org/keycloak/benchmark/crossdc/client/InfinispanClient.java interface with calls to Dataset provider. As a nice to have would be to filter the sessions we are obtaining based on the realm as currently, we need to do another nasty magic to remove session ids created by Keycloak Admin Client from master realm. The advantage of 1. would be we are not dependent on the dataset provider (which we are anyway with |
Revert b0a408a when this is resolved |
* Enables protostream encoding in the external Infinispan * Changes the testsuite to use the Hot Rod client Closes keycloak#628 Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
* Enables protostream encoding in the external Infinispan * Changes the testsuite to use the Hot Rod client Closes #628 Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
No description provided.
The text was updated successfully, but these errors were encountered: