NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      In some cases, it's possible for two labels to be created with the same name (even though we do checks for this). It can occur when there are two parallel requests (via the web or XML-RPC), which try to add the same (non-existent) label. Since they're in separate transactions, it's not possible to see that another session is trying to create the label, so both end up in the DB.

      Possible solutions to this:

      Write a periodic task that merges any duplicate labels (and the affected content)
      Isolate the sections of the current transaction in the save process, to narrow the window in which this can occur
      Add some sort of read/write filtering to the transaction so the changes can be seen before the transaction ends (??? - Scott's suggestion)

            [CONFSERVER-5254] Duplicate labels can be created by Concurrency Requests

            Jeffery Xie made changes -
            Link New: This issue is related to CONFSERVER-99185 [ CONFSERVER-99185 ]
            Jeffery Xie made changes -
            Link New: This issue is related to CONFSERVER-99168 [ CONFSERVER-99168 ]
            Renata Dornelas made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 89324 ]

            A fix for this issue is available in Confluence Data Center 9.1.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Jordan Anslow added a comment - A fix for this issue is available in Confluence Data Center 9.1.0. Upgrade now or check out the Release Notes to see what other issues are resolved.
            Jordan Anslow made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            SET Analytics Bot made changes -
            UIS Original: 7 New: 14
            SET Analytics Bot made changes -
            Support reference count Original: 40 New: 41
            Adarsh Kumar made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 948474 ]
            Jeffery Xie made changes -
            Fix Version/s New: 9.1.0 [ 108795 ]
            Status Original: Awaiting Merge [ 10064 ] New: Waiting for Release [ 12075 ]
            Jeffery Xie made changes -
            Remote Link New: This issue links to "A1 Server. Master Platform Modules › DC Quicksilver Modules › issue-CONFSERVER-5254-bump-zdu-version-to-3.0.4 (server-syd-bamboo)" [ 944043 ]

              5339cdd01cf4 Jeffery Xie
              8d92d19feb5e Jeremy Higgs
              Affected customers:
              31 This affects my team
              Watchers:
              41 Start watching this issue

                Created:
                Updated:
                Resolved: