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

collectionExists returns false although collection really exists

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical - P2 Critical - P2
    • None
    • 3.2.0
    • Query Operations
    • None
    • Server: Ubuntu 14.04 with MongoDB 3.2
      Client: Mac OS X 10.9 with Java Driver version 3.2 (Java 8)

    Description

      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; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            fkbecker Frank Becker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: