Skip to content
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

Cross DC Functional tests: Infinispan logs indicate in the logs that some caches are missing but that is an expected outcome #1010

Open
kami619 opened this issue Oct 11, 2024 · 0 comments
Labels
kind/bug Something isn't working status/triage

Comments

@kami619
Copy link
Contributor

kami619 commented Oct 11, 2024

Describe the bug

After the recent changes, the ISPN related functional tests output some logs that could be confusing to the user in certain situations.

Keycloak Deployment Env config:

    KC_EXTERNAL_INFINISPAN: false
    KC_MULTI_SITE: true
    KC_IS_ACTIVE_PASSIVE: false
    KC_DATABASE: aurora-postgres
    MULTI_AZ: true

Related test run: https://github.com/keycloak/keycloak-benchmark/actions/runs/11267732928/job/31335146696#step:10:337

INFO: ISPN004021: Infinispan version: Infinispan 'I'm Still Standing' 15.0.8.Final
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest setUpTestEnvironment
INFO: Setting up test environment
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest setUpTestEnvironment
INFO: -------------------------------------------
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest setUpTestEnvironment
INFO: Status of caches before test:
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache sessions in DC1: (0) -> []
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache sessions in DC2: (0) -> []
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'clientSessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'clientSessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache clientSessions in DC1: (0) -> []
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache clientSessions in DC2: (0) -> []
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineSessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineSessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache offlineSessions in DC1: (0) -> []
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache offlineSessions in DC2: (0) -> []
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineClientSessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineClientSessions' not found amongst the configured caches
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache offlineClientSessions in DC1: (0) -> []
Oct 10, 2024 6:10:31 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache offlineClientSessions in DC2: (0) -> []
Oct 10, 2024 6:10:32 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache loginFailures in DC1: (0) -> []
Oct 10, 2024 6:10:32 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache loginFailures in DC2: (0) -> []
Oct 10, 2024 6:10:33 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache authenticationSessions in DC1: (0) -> []
Oct 10, 2024 6:10:33 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache authenticationSessions in DC2: (0) -> []
Oct 10, 2024 6:10:33 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache actionTokens in DC1: (1) -> [loaded.revoked]
Oct 10, 2024 6:10:33 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest lambda$setUpTestEnvironment$1
INFO: External cache actionTokens in DC2: (1) -> [loaded.revoked]
Oct 10, 2024 6:10:33 AM org.keycloak.benchmark.crossdc.AbstractCrossDCTest setUpTestEnvironment
INFO: -------------------------------------------
Oct 10, 2024 6:10:39 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sessions' not found amongst the configured caches
Oct 10, 2024 6:10:39 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'clientSessions' not found amongst the configured caches
Oct 10, 2024 6:10:39 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sessions' not found amongst the configured caches
Oct 10, 2024 6:10:40 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'clientSessions' not found amongst the configured caches
[]
[]
[]
[1.0]
[1.0]
[1.0]
[1.0]
[1.0]
[2.0]
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN00[400](https://github.com/keycloak/keycloak-benchmark/actions/runs/11267732928/job/31335146696#step:10:401)5: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sessions' not found amongst the configured caches
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sessions' not found amongst the configured caches
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'clientSessions' not found amongst the configured caches
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'clientSessions' not found amongst the configured caches
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineSessions' not found amongst the configured caches
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineSessions' not found amongst the configured caches
Oct 10, 2024 6:15:05 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineClientSessions' not found amongst the configured caches
Oct 10, 2024 6:15:06 AM org.infinispan.client.hotrod.impl.protocol.Codec20 checkForErrorsInResponseStatus
WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'offlineClientSessions' not found amongst the configured caches
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 300.5 s -- in org.keycloak.benchmark.crossdc.FailoverTest

Version

keycloak-benchmark latest main

Expected behavior

We need not inform users on the absence of caches if the deployment expects them to be absent.

Actual behavior

No response

How to Reproduce?

No response

Anything else?

No response

@kami619 kami619 added kind/bug Something isn't working status/triage labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working status/triage
Projects
None yet
Development

No branches or pull requests

1 participant