collectionExists returns false although collection really exists

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.2.0
    • Component/s: Query Operations
    • None
    • Environment:
      Server: Ubuntu 14.04 with MongoDB 3.2
      Client: Mac OS X 10.9 with Java Driver version 3.2 (Java 8)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Called "db.createCollection(COLLECTION_LOGS, options)" throws "CommandFailureException" because COLLECTION_LOGS already exists.

      In the Exception handler the call to "collectionExists" returns false, but the collection really exists:
      // Double check
      if (!db.collectionExists(COLLECTION_LOGS))

      { // The collection is not there so it was some other issue throw e; }

            Assignee:
            Unassigned
            Reporter:
            Frank Becker
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: