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

Authenticator (subclass of DefaultAuthenticator) can be called twice at almost exactly same time by 2 or more clustered servers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a bug
    • Medium
    • None
    • 2.5.4
    • None
    • Confluence 2.5.4 massive, Java 1.5, Linux

    Description

      It would appear that the authenticator could be called twice at almost exactly the same time by 2 or more clustered servers.

      It would seem as if when there are 2 load balanced confluence servers with session affinity based on IP that it should not throw an error if you have a single request come in to login and that login involves calling an authenticator to check to see if a user exists and if not then creating it. However, we are getting unique constraint errors when this occurs.

      This has been logged within support issue CSP-10474. Attached code used to replicate the issue. Latest info on that plugin at: https://spaces.internet2.edu/display/SHIB/ShibbolizedConfluence

      It is also noted that this issue could be caused (with that code) because there are two requests on the same server at the same time to create the user. I'm going to contact them about this and implement a workaround to ignore unique constraint exceptions in this code, but we have only seen this occur when we were clustering more than one server, and it has occurred twice in the last week with a very small (<10 user) userbase.

      Attachments

        Issue Links

          Activity

            People

              matt@atlassian.com Matt Ryall
              6e54f9dce0da Gary Weaver
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: