Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1148

Race condition at com.mongodb.MultiServerCluster

      "cluster-1-thread-2" - Thread t@66
      java.lang.Thread.State: BLOCKED
      at com.mongodb.DefaultServer$DefaultServerStateListener.stateChanged(DefaultServer.java:112)

      • waiting to lock <772e7c67> (a com.mongodb.DefaultServer$DefaultServerStateListener) owned by "cluster-1-thread-1" t@65
        at com.mongodb.DefaultServer.invalidate(DefaultServer.java:87)
        at com.mongodb.MultiServerCluster.invalidateOldPrimaries(MultiServerCluster.java:215)
        at com.mongodb.MultiServerCluster.handleReplicaSetMemberChanged(MultiServerCluster.java:176)
        at com.mongodb.MultiServerCluster.onChange(MultiServerCluster.java:130)
      • locked <ce98b52> (a com.mongodb.MultiServerCluster)
        at com.mongodb.MultiServerCluster.access$100(MultiServerCluster.java:39)
        at com.mongodb.MultiServerCluster$DefaultServerStateListener.stateChanged(MultiServerCluster.java:104)
        at com.mongodb.DefaultServer$DefaultServerStateListener.stateChanged(DefaultServer.java:114)
      • locked <38b9bb1d> (a com.mongodb.DefaultServer$DefaultServerStateListener)
        at com.mongodb.ServerStateNotifier.run(ServerStateNotifier.java:106)
      • locked <5238b42d> (a com.mongodb.ServerStateNotifier)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

      Locked ownable synchronizers:

      • locked <8bd2087> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

      "cluster-1-thread-1" - Thread t@65
      java.lang.Thread.State: BLOCKED
      at com.mongodb.MultiServerCluster.onChange(MultiServerCluster.java:114)

      • waiting to lock <ce98b52> (a com.mongodb.MultiServerCluster) owned by "cluster-1-thread-2" t@66
        at com.mongodb.MultiServerCluster.access$100(MultiServerCluster.java:39)
        at com.mongodb.MultiServerCluster$DefaultServerStateListener.stateChanged(MultiServerCluster.java:104)
        at com.mongodb.DefaultServer$DefaultServerStateListener.stateChanged(DefaultServer.java:114)
      • locked <772e7c67> (a com.mongodb.DefaultServer$DefaultServerStateListener)
        at com.mongodb.ServerStateNotifier.run(ServerStateNotifier.java:106)
      • locked <38a2838c> (a com.mongodb.ServerStateNotifier)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)

      Locked ownable synchronizers:

      • locked <356a7960> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)

            Assignee:
            Unassigned Unassigned
            Reporter:
            timotta Tiago Albineli Motta
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: