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

fsyncunlock does not work on secondaries with 3.2.x

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.0
    • Affects Version/s: 3.4.2
    • Component/s: Command Operations
    • Labels:
      None

      I am using java driver version 3.4.2

      Fsyncunlock does not work on the secondary with 3.2.3 & 3.2.12. It works fine on the primary.
      Here is the stack trace of the error.

      21 Apr 2017 22:11:42,014 ERROR ~ Application-handleException: Timed out after 10000 ms while waiting for a server that matches WritableServerSelector. Client view of cluster state i
      s {type=REPLICA_SET, servers=[{address=127.0.0.1:27017, type=REPLICA_SET_SECONDARY, roundTripTime=0.2 ms, state=CONNECTED}]
      21 Apr 2017 22:11:42,014 ERROR ~ Timed out after 10000 ms while waiting for a server that matches WritableServerSelector. Client view of cluster state is {type=REPLICA_SET, servers=
      [{address=127.0.0.1:27017, type=REPLICA_SET_SECONDARY, roundTripTime=0.2 ms, state=CONNECTED}]
      21 Apr 2017 22:11:42,015 ERROR ~ com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches WritableServerSelector. Client view of cluster s
      tate is {type=REPLICA_SET, servers=[{address=127.0.0.1:27017, type=REPLICA_SET_SECONDARY, roundTripTime=0.2 ms, state=CONNECTED}]
              at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:377)
              at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:104)
              at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:75)
              at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:71)
              at com.mongodb.binding.ClusterBinding.getWriteConnectionSource(ClusterBinding.java:68)
              at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:411)
              at com.mongodb.operation.FsyncUnlockOperation.execute(FsyncUnlockOperation.java:41)
              at com.mongodb.operation.FsyncUnlockOperation.execute(FsyncUnlockOperation.java:38)
              at com.mongodb.Mongo.execute(Mongo.java:845)
              at com.mongodb.Mongo.unlock(Mongo.java:644)
              at controllers.MongoDBInstance.fsyncAndLock(MongoDBInstance.java:861)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:497)
              at play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:548)
              at play.mvc.ActionInvoker.invoke(ActionInvoker.java:502)
              at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:478)
              at play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:473)
              at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
              at play.server.PlayHandler$NettyInvocation.execute(PlayHandler.java:257)
              at play.Invoker$Invocation.run(Invoker.java:278)
              at play.server.PlayHandler$NettyInvocation.run(PlayHandler.java:235)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      
      

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            dharshanr@scalegrid.net Dharshan Rangegowda
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: