From 9c122c8660ed112d67eaf49fe7cfbb65dd60823a Mon Sep 17 00:00:00 2001 From: Valentin Kovalenko Date: Wed, 3 Jan 2024 08:24:01 -0700 Subject: [PATCH] DRIVERS-2774 Delete `pool-clear-interrupt-immediately` (#1487) SDAM already have tests covering the functionality, for example https://github.com/mongodb/specifications/blob/fe95775ad9f4d0599c4b5e02516181d963bc2626/source/server-discovery-and-monitoring/tests/unified/interruptInUse-pool-clear.yml#L23. Given that currently pool-clear-interrupt-immediately cannot possibly work in Python and requires modifying the test runner, it seems better to remove the test. --- .../pool-clear-interrupt-immediately.json | 77 ------------------- .../pool-clear-interrupt-immediately.yml | 46 ----------- 2 files changed, 123 deletions(-) delete mode 100644 source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.json delete mode 100644 source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.yml diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.json b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.json deleted file mode 100644 index 54e2566ede..0000000000 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "version": 1, - "style": "unit", - "description": "Connections MUST be interrupted as soon as possible (interruptInUseConnections=true)", - "poolOptions": { - "backgroundThreadIntervalMS": 10000 - }, - "operations": [ - { - "name": "ready" - }, - { - "name": "checkOut" - }, - { - "name": "checkOut", - "label": "conn" - }, - { - "name": "clear", - "interruptInUseConnections": true - }, - { - "name": "waitForEvent", - "event": "ConnectionPoolCleared", - "count": 1, - "timeout": 1000 - }, - { - "name": "waitForEvent", - "event": "ConnectionClosed", - "count": 2, - "timeout": 1000 - }, - { - "name": "close" - } - ], - "events": [ - { - "type": "ConnectionCheckedOut", - "connectionId": 1, - "address": 42 - }, - { - "type": "ConnectionCheckedOut", - "connectionId": 2, - "address": 42 - }, - { - "type": "ConnectionPoolCleared", - "interruptInUseConnections": true - }, - { - "type": "ConnectionClosed", - "reason": "stale", - "address": 42 - }, - { - "type": "ConnectionClosed", - "reason": "stale", - "address": 42 - }, - { - "type": "ConnectionPoolClosed", - "address": 42 - } - ], - "ignore": [ - "ConnectionCreated", - "ConnectionPoolReady", - "ConnectionReady", - "ConnectionCheckOutStarted", - "ConnectionPoolCreated", - "ConnectionCheckedIn" - ] -} diff --git a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.yml b/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.yml deleted file mode 100644 index 67d9739aa9..0000000000 --- a/source/connection-monitoring-and-pooling/tests/cmap-format/pool-clear-interrupt-immediately.yml +++ /dev/null @@ -1,46 +0,0 @@ -version: 1 -style: unit -description: Connections MUST be interrupted as soon as possible (interruptInUseConnections=true) -poolOptions: - # ensure it's not involved by default - backgroundThreadIntervalMS: 10000 -operations: - - name: ready - - name: checkOut - - name: checkOut - label: conn - - name: clear - interruptInUseConnections: true - - name: waitForEvent - event: ConnectionPoolCleared - count: 1 - timeout: 1000 - - name: waitForEvent - event: ConnectionClosed - count: 2 - timeout: 1000 - - name: close -events: - - type: ConnectionCheckedOut - connectionId: 1 - address: 42 - - type: ConnectionCheckedOut - connectionId: 2 - address: 42 - - type: ConnectionPoolCleared - interruptInUseConnections: true - - type: ConnectionClosed - reason: stale - address: 42 - - type: ConnectionClosed - reason: stale - address: 42 - - type: ConnectionPoolClosed - address: 42 -ignore: - - ConnectionCreated - - ConnectionPoolReady - - ConnectionReady - - ConnectionCheckOutStarted - - ConnectionPoolCreated - - ConnectionCheckedIn