Sha256: 798c5f402615ccbed6ed77751ef9880a797508de28614042dff5dbd2382c4467

Contents?: true

Size: 1.14 KB

Versions: 40

Compression:

Stored size: 1.14 KB

Contents

version: 1
style: unit
description: must aggressively timeout threads enqueued longer than waitQueueTimeoutMS
poolOptions:
  maxPoolSize: 1
  waitQueueTimeoutMS: 20
operations:
  # Check out only possible connection
  - name: checkOut
    label: conn0
  # Start a thread, have it enter the wait queue
  - name: start
    target: thread1
  - name: checkOut
    thread: thread1
  # Wait for other thread to time out, then check in connection
  - name: waitForEvent
    event: ConnectionCheckOutFailed
    count: 1
  - name: checkIn
    connection: conn0
  # Rejoin thread1, should experience error
  - name: waitForThread
    target: thread1
error:
  type: WaitQueueTimeoutError
  message: Timed out while checking out a connection from connection pool
events:
  - type: ConnectionCheckOutStarted
    address: 42
  - type: ConnectionCheckedOut
    connectionId: 42
    address: 42
  - type: ConnectionCheckOutStarted
    address: 42
  - type: ConnectionCheckOutFailed
    reason: timeout
    address: 42
  - type: ConnectionCheckedIn
    connectionId: 42
    address: 42
ignore:
  - ConnectionCreated
  - ConnectionReady
  - ConnectionClosed
  - ConnectionPoolCreated

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.17.4 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.18.3 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.18.2 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.17.3 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.18.1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.18.0 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.17.2 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.16.3 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.18.0.beta1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.16.2 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.17.1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.16.1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.17.0 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.16.0 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.13.3 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.14.1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.15.1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.16.0.alpha1 spec/spec_tests/data/cmap/wait-queue-timeout.yml
mongo-2.15.0 spec/spec_tests/data/cmap/wait-queue-timeout.yml