Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-5254

Duplicate labels can be created by Concurrency Requests

XMLWordPrintable

      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)

              5339cdd01cf4 Jeffery Xie
              8d92d19feb5e Jeremy Higgs
              Votes:
              31 Vote for this issue
              Watchers:
              40 Start watching this issue

                Created:
                Updated:
                Resolved: