Ruby Driver
  1. Ruby Driver
  2. RUBY-444

Replica set refresh broken with multiple instances of ReplSetConnection

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6.3
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • # Replies:
      3
    • Last comment by Customer:
      false

      Description

      Issue has to do with Thread.current[:manager] being overwritten. Will fix today.

        Activity

        Hide
        auto
        added a comment -

        Author:

        {u'login': u'banker', u'name': u'Kyle Banker', u'email': u'kylebanker@gmail.com'}

        Message: RUBY-444 keep multiple replica set connections separate
        Branch: master
        https://github.com/mongodb/mongo-ruby-driver/commit/5591e3dfe3f773a07e2b1bd0642a059f14a2316d

        Show
        auto
        added a comment - Author: {u'login': u'banker', u'name': u'Kyle Banker', u'email': u'kylebanker@gmail.com'} Message: RUBY-444 keep multiple replica set connections separate Branch: master https://github.com/mongodb/mongo-ruby-driver/commit/5591e3dfe3f773a07e2b1bd0642a059f14a2316d
        Hide
        auto
        added a comment -

        Author:

        {u'login': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

        Message: RUBY-444

        During a refresh Thread.current[:managers] has the potential to be nil.

        This fix checks to make sure Thread.current[:managers] exists before
        trying to access the managers hash.
        Branch: master
        https://github.com/mongodb/mongo-ruby-driver/commit/291a9334b69d1a6f2de913723fa6566bf89d1480

        Show
        auto
        added a comment - Author: {u'login': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'} Message: RUBY-444 During a refresh Thread.current [:managers] has the potential to be nil. This fix checks to make sure Thread.current [:managers] exists before trying to access the managers hash. Branch: master https://github.com/mongodb/mongo-ruby-driver/commit/291a9334b69d1a6f2de913723fa6566bf89d1480
        Hide
        auto
        added a comment -

        Author:

        {u'login': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

        Message: RUBY-444

        Additional fix for threading tests to ensure a manager for a new thread is always set.
        Branch: master
        https://github.com/mongodb/mongo-ruby-driver/commit/4df2564519ff410009b60a76eebc99b08f2f08ea

        Show
        auto
        added a comment - Author: {u'login': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'} Message: RUBY-444 Additional fix for threading tests to ensure a manager for a new thread is always set. Branch: master https://github.com/mongodb/mongo-ruby-driver/commit/4df2564519ff410009b60a76eebc99b08f2f08ea

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              1 year, 46 weeks, 1 day ago
              Date of 1st Reply: