Race condition when creating client protocol mappers in the Red Hat Single Sign-On (RH SSO) Operator

Solution Verified - Updated -

Issue

When creating new clients, often the error below appears in the logs:

[0m[31m09:35:45,541 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-23) Uncaught server error: java.lang.IllegalStateException: Duplicate key openid-connect%Client ID (attempted merging values org.keycloak.models.ProtocolMapperModel@XXX and org.keycloak.models.ProtocolMapperModel@YYY)
    at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
    ...
    at org.jboss.xnio@3.8.9.Final-redhat-00001//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
    at java.base/java.lang.Thread.run(Thread.java:829)

Environment

  • Red Hat Single Sign-On (RH SSO)
    • 7.X (Operator)
  • Red Hat OpenShift Container Platform (OCP)
    • 4.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content