[midPoint-git] [Evolveum/midpoint] 7d3861: Fix connector schema parsing race condition

mederly noreply at github.com
Wed May 31 19:36:58 CEST 2023


  Branch: refs/heads/support-4.7
  Home:   https://github.com/Evolveum/midpoint
  Commit: 7d38618f4fc05438c09c5cfedbaebd61cd235379
      https://github.com/Evolveum/midpoint/commit/7d38618f4fc05438c09c5cfedbaebd61cd235379
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ConnectorTypeUtil.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/AbstractProvisioningIntegrationTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/AbstractDummyTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyExtra.java

  Log Message:
  -----------
  Fix connector schema parsing race condition

The DOM objects used in midPoint are not thread safe, even for reading.
The problem manifests itself when a connector is initialized in
multiple threads at once.

This commit provides an immediate fix by coordinating access to
that particular place. (Note that the issue emerged also due to
- mistaken - schema cloning elimination in
59bee63b1b8eb933db39e8a9b61a4023b25ec4c0, but we are not ready
to re-introduce schema cloning now because of the expected
performance penalty.)

This resolves MID-8860.




More information about the midPoint-svn mailing list