[midPoint-git] [Evolveum/midpoint] 535be3: MID-10231: Fixed deadlock in Sqale repository by p...

Tony Tkáčik noreply at github.com
Tue Dec 10 10:56:04 CET 2024


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 535be379f85483f094b07963c11964ba6e13d119
      https://github.com/Evolveum/midpoint/commit/535be379f85483f094b07963c11964ba6e13d119
  Author: Tony Tkáčik <tonydamage at gmail.com>
  Date:   2024-12-10 (Tue, 10 Dec 2024)

  Changed paths:
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/mapping/SqaleTableMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/object/QObjectMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/qmodel/shadow/QShadowMapping.java
    M repo/repo-sqale/src/main/java/com/evolveum/midpoint/repo/sqale/update/AddObjectContext.java
    M repo/repo-sqale/testng-unit.xml

  Log Message:
  -----------
  MID-10231: Fixed deadlock in Sqale repository by processing URIs before opening transaction

In case of auto-partitioning URI caching transactions and retries did not worked
corretly which resulted in deadlock on PostgreSQL side.

URI caching is done for some URIs before real add transaction is opened.
This ensures URIs will be available to transaction and less retries.

The solution does not account for all possible cached URIs since some
are cached via Item Mappings and some are hardcoded in the code.



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list