[midPoint-git] [Evolveum/midpoint] 4259b2: MID-7074: Added extra logic to handle duplicate di...

Tony Tkáčik noreply at github.com
Tue Oct 5 11:32:15 CEST 2021


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 4259b26588d676b097b984b630d035b3d2824e8b
      https://github.com/Evolveum/midpoint/commit/4259b26588d676b097b984b630d035b3d2824e8b
  Author: Tony Tkacik <tonydamage at gmail.com>
  Date:   2021-10-05 (Tue, 05 Oct 2021)

  Changed paths:
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ConnectorManager.java
    A provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/TestDummyFoundAgain.java

  Log Message:
  -----------
  MID-7074: Added extra logic to handle duplicate discovered connector

Connector discovery checks using search if discovered connector is already in database,
but in clustered case - other node can insert it into database between check
and add. If database fails add because of unique constraints, code does not fail
discovery, but rather checks again if matching connector is present.

This prevents multiple additions of same connector, but repository / database combination
needs to support it (different databases needs different definition of index).

As of this patch sqale repository with postgresql is supported.




More information about the midPoint-svn mailing list