Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pruivo
Copy link
Member

@pruivo pruivo commented May 7, 2025

Fixes #39023

Fixes #39454

Locally tested.

Patch log entry

$ ./keycloak-999.0.0-SNAPSHOT/bin/kc.sh start-dev --cache=ispn --cache-stack=kubernetes -Djgroups.diag.enabled=true -Djgroups.dns.query=localhost -Djgroups.bind.address=127.0.0.1
Running the server in development mode. DO NOT use this configuration in production.
2025-05-07 14:46:58,344 INFO  [org.keycloak.spi.infinispan.impl.embedded.JGroupsConfigurator] (main) JGroups Encryption enabled (mTLS).
2025-05-07 14:46:58,344 INFO  [org.keycloak.spi.infinispan.impl.embedded.JGroupsConfigurator] (main) [PATCH] Patching kubernetes stack.
...
2025-05-07 14:46:58,724 INFO  [org.infinispan.CLUSTER] (main) ISPN000078: Starting JGroups channel `ISPN` with stack `kubernetes-patched`
2025-05-07 14:46:58,725 INFO  [org.jgroups.JChannel] (main) local_addr: f42a4ec1-1fbb-4736-a6c1-b7b2d77b866c, name: pedro-desktop-60223

Confirm port range set to zero

$ java -cp keycloak-999.0.0-SNAPSHOT/lib/lib/main/org.jgroups.jgroups-5.3.15.Final.jar org.jgroups.tests.Probe -tcp true jmx=TCP.port_range
#1 (138 bytes):
pedro-desktop-60223 [ip=127.0.0.1:7800, 1 mbr(s), cluster=ISPN, version=5.3.15.Final (Zoncolan) (java 21.0.5+11-LTS)]
TCP={port_range=0}

1 responses (1 matches, 0 non matches)

Workaround for keycloak#39540

Signed-off-by: Alexander Schwartz <[email protected]>
@pruivo pruivo marked this pull request as ready for review May 7, 2025 16:57
@pruivo pruivo requested a review from a team as a code owner May 7, 2025 16:57
@ahus1 ahus1 merged commit a097c5a into keycloak:main May 7, 2025
80 checks passed
@pruivo pruivo deleted the t_patch_kubernetes_stack branch May 7, 2025 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JGroups errors when running a containerized Keycloak in Strict FIPS mode and with Istio Keycloak 26.2.0 UI Performance Degradation

2 participants