Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-231

potential race condition on reconfigure with empty sequence

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.2.0, 1.1.5
    • 1.1.4
    • None
    • None

    Description

      In the RequestHandler.reconfigure method there is a potential race condition when the configuration passed in is empty of nodes (all nodes must be removed) and two such configurations are quickly subjected to reconfigure (which would mean they are with different revision numbers).

      The race condition is as follows:

      • the first configuration causes the nodes set to empty
      • the second configuration, due to the race condition, doesn't see the set as empty (so takes the second path) but it is when hitting the next line of code, that in turn creates an empty Observable

      In this case, since said Observable is chained in with a last(), an error is thrown (NoSuchElementException).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty