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

Improve MongoWaitQueueFullException message

      MongoWaitQueueFullException is created with two messages:

      • Too many threads are already waiting for a connection. Max number of threads (maxWaitQueueSize) of %d has been exceeded.
      • Too many operations are already waiting for a server. Max number of operations (maxWaitQueueSize) of %d has been exceeded.

      The exception message is the same regardless of the acquisition mode (synchronous/asynchronous). When using the e.g. Reactive Streams driver, one can easily assume that MongoDB creates up to %d threads.

      I suggest aligning the wording towards "too many operations" to remove confusion about threads.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            mp911de Mark Paluch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: