com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} }

JIRA | John Morales | 3 years ago
  1. 0

    The query passed to "$cmd.sys.inprog" doesn't like the $query wrapped query. This is a regression in 2.5.x. *old description* Via the Java driver {{MongoClient}}, there's a method exposed `isLocked()` that checks if the given node is fsync locked (i.e., it's a 'read' operation - is does not attempt an fsync lock). This operation was successful via a 2.4.9 mongoS. But when this is performed against 2.5.5 mongoS, the driver operation fails with the following exception: {noformat} com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} } at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:213) at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:197) at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:175) at com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:64) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:59) at com.mongodb.DBCollection.findOne(DBCollection.java:869) at com.mongodb.DBCollection.findOne(DBCollection.java:843) at com.mongodb.DBCollection.findOne(DBCollection.java:789) at com.mongodb.DBCollection.findOne(DBCollection.java:778) at com.mongodb.Mongo.isLocked(Mongo.java:734) {noformat} The mms-db1:50000 from the trace is the primary of the first shard. In the mms-db1:50000's mongod.log, the following message is logged: {noformat} [conn551] AssertionException handling request, closing client connection: 16810 bad query: BadValue unknown top level operator: $query {noformat} It appears to be dependent on going through the mongoS, but unclear if auth-enabled is a contributing factor.

    JIRA | 3 years ago | John Morales
    com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} }
  2. 0

    {{MongoClient}} exposes a method `isLocked()` that checks if the given node is {{fsync}} locked. On 2.5.5 via a mongoS, this operation fails with the following exception: {noformat} com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} } at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:213) at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:197) at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:175) at com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:64) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:59) at com.mongodb.DBCollection.findOne(DBCollection.java:869) at com.mongodb.DBCollection.findOne(DBCollection.java:843) at com.mongodb.DBCollection.findOne(DBCollection.java:789) at com.mongodb.DBCollection.findOne(DBCollection.java:778) at com.mongodb.Mongo.isLocked(Mongo.java:734) {noformat} Note: * The command was given to a mongoS listed in the URI mentioned in Environment above. * The mms-db1:50000 from the trace is the primary of the first shard. In the mms-db1:50000's mongod.log, the following message is logged: {noformat} [conn551] AssertionException handling request, closing client connection: 16810 bad query: BadValue unknown top level operator: $query {noformat} It appears to be dependent on going through the mongoS, but unclear if auth-enabled is a factor.

    JIRA | 3 years ago | John Morales
    com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} }
  3. 0

    The query passed to "$cmd.sys.inprog" doesn't like the $query wrapped query. This is a regression in 2.5.x. *old description* Via the Java driver {{MongoClient}}, there's a method exposed `isLocked()` that checks if the given node is fsync locked (i.e., it's a 'read' operation - is does not attempt an fsync lock). This operation was successful via a 2.4.9 mongoS. But when this is performed against 2.5.5 mongoS, the driver operation fails with the following exception: {noformat} com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} } at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:213) at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:197) at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:175) at com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:64) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:59) at com.mongodb.DBCollection.findOne(DBCollection.java:869) at com.mongodb.DBCollection.findOne(DBCollection.java:843) at com.mongodb.DBCollection.findOne(DBCollection.java:789) at com.mongodb.DBCollection.findOne(DBCollection.java:778) at com.mongodb.Mongo.isLocked(Mongo.java:734) {noformat} The mms-db1:50000 from the trace is the primary of the first shard. In the mms-db1:50000's mongod.log, the following message is logged: {noformat} [conn551] AssertionException handling request, closing client connection: 16810 bad query: BadValue unknown top level operator: $query {noformat} It appears to be dependent on going through the mongoS, but unclear if auth-enabled is a contributing factor.

    JIRA | 3 years ago | John Morales
    com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} }
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {{MongoClient}} exposes a method `isLocked()` that checks if the given node is {{fsync}} locked. On 2.5.5 via a mongoS, this operation fails with the following exception: {noformat} com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} } at com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:213) at com.mongodb.QueryResultIterator.init(QueryResultIterator.java:197) at com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:175) at com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:64) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:78) at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:59) at com.mongodb.DBCollection.findOne(DBCollection.java:869) at com.mongodb.DBCollection.findOne(DBCollection.java:843) at com.mongodb.DBCollection.findOne(DBCollection.java:789) at com.mongodb.DBCollection.findOne(DBCollection.java:778) at com.mongodb.Mongo.isLocked(Mongo.java:734) {noformat} Note: * The command was given to a mongoS listed in the URI mentioned in Environment above. * The mms-db1:50000 from the trace is the primary of the first shard. In the mms-db1:50000's mongod.log, the following message is logged: {noformat} [conn551] AssertionException handling request, closing client connection: 16810 bad query: BadValue unknown top level operator: $query {noformat} It appears to be dependent on going through the mongoS, but unclear if auth-enabled is a factor.

    JIRA | 3 years ago | John Morales
    com.mongodb.MongoException: DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} }

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.mongodb.MongoException

      DBClientBase::findN: transport error: mms-db1:50000 ns: admin.$cmd.sys.inprog query: { $query: {} }

      at com.mongodb.QueryResultIterator.throwOnQueryFailure()
    2. MongoDB Java Driver
      Mongo.isLocked
      1. com.mongodb.QueryResultIterator.throwOnQueryFailure(QueryResultIterator.java:213)
      2. com.mongodb.QueryResultIterator.init(QueryResultIterator.java:197)
      3. com.mongodb.QueryResultIterator.initFromQueryResponse(QueryResultIterator.java:175)
      4. com.mongodb.QueryResultIterator.<init>(QueryResultIterator.java:64)
      5. com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:78)
      6. com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:59)
      7. com.mongodb.DBCollection.findOne(DBCollection.java:869)
      8. com.mongodb.DBCollection.findOne(DBCollection.java:843)
      9. com.mongodb.DBCollection.findOne(DBCollection.java:789)
      10. com.mongodb.DBCollection.findOne(DBCollection.java:778)
      11. com.mongodb.Mongo.isLocked(Mongo.java:734)
      11 frames