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

Concurrency issue when closing server session pool

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11.2
    • Affects Version/s: None
    • Component/s: Session Management
    • None

      https://evergreen.mongodb.com/task/mongo_java_driver_tests_jdk_newer_secure__version~latest_os~linux_topology~sharded_cluster_auth~auth_ssl~ssl_jdk~jdk8_test_06b544159bdbb453261bb3aeed0dd688c79024ad_19_09_12_15_45_23

      FAILURE: java.lang.NullPointerException (java.lang.NullPointerException)
      java.lang.NullPointerException
      	at org.bson.codecs.BsonArrayCodec.encode(BsonArrayCodec.java:81)
      	at org.bson.codecs.BsonArrayCodec.encode(BsonArrayCodec.java:37)
      	at org.bson.codecs.EncoderContext.encodeWithChildContext(EncoderContext.java:91)
      	at org.bson.codecs.BsonDocumentCodec.writeValue(BsonDocumentCodec.java:136)
      	at org.bson.codecs.BsonDocumentCodec.encode(BsonDocumentCodec.java:115)
      	at org.bson.codecs.BsonDocumentCodec.encode(BsonDocumentCodec.java:41)
      	at com.mongodb.internal.connection.RequestMessage.addDocument(RequestMessage.java:238)
      	at com.mongodb.internal.connection.RequestMessage.addDocument(RequestMessage.java:188)
      	at com.mongodb.internal.connection.CommandMessage.encodeMessageBodyWithMetadata(CommandMessage.java:140)
      	at com.mongodb.internal.connection.RequestMessage.encode(RequestMessage.java:138)
      	at com.mongodb.internal.connection.CommandMessage.encode(CommandMessage.java:61)
      	at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:248)
      	at com.mongodb.internal.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:99)
      	at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:450)
      	at com.mongodb.internal.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:72)
      	at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:218)
      	at com.mongodb.internal.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:269)
      	at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:131)
      	at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:123)
      	at com.mongodb.internal.session.ServerSessionPool.endClosedSessions(ServerSessionPool.java:143)
      	at com.mongodb.internal.session.ServerSessionPool.close(ServerSessionPool.java:97)
      	at com.mongodb.async.client.MongoClientImpl.close(MongoClientImpl.java:115)
      	at com.mongodb.async.client.TransactionsTest.cleanUp(TransactionsTest.java:306)
      

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: