Skip to content

Commit 9453c23

Browse files
committed
Fixes #1801: Update the oldestValidOrdinal on the listener so that expired_ordinal_connection_scrubber() in qd_listener.c will be invoked
1 parent 9c01acd commit 9453c23

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/system_tests_cert_rotation.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,28 @@ def test_01_ordinal_updates(self):
193193
self.assertEqual(2 * (data_conn_count + 1),
194194
len([c for c in irc if c['groupOrdinal'] == 3]),
195195
f"Unexpected conns: {irc}")
196+
197+
# We are going to update the ordinal on the ConnectorSslProfile one more time which then leads
198+
# to a bunch of additional inter-router connections.
199+
router_C.management.update(type=SSL_PROFILE_TYPE,
200+
attributes={'ordinal': 4},
201+
name='ConnectorSslProfile')
202+
self.wait_inter_router_conns(router_C, 2 * (data_conn_count + 1))
203+
self.wait_inter_router_conns(router_L, 2 * (data_conn_count + 1))
204+
205+
206+
router_L.management.update(type=SSL_PROFILE_TYPE,
207+
attributes={'ordinal': 4},
208+
name='ListenerSslProfile')
209+
210+
# Update oldestValidOrdinal to 4 on the listener
211+
# so many of the inter-router connections will get torn down using the expired_ordinal_connection_scrubber().
212+
router_L.management.update(type=SSL_PROFILE_TYPE,
213+
attributes={'oldestValidOrdinal': 4},
214+
name='ListenerSslProfile')
215+
self.wait_inter_router_conns(router_L, data_conn_count + 1)
216+
self.wait_inter_router_conns(router_C, data_conn_count + 1)
217+
196218
router_L.teardown()
197219

198220
# Router L has now been torn down, check to see if the RouterC's OPER_STATUS on the LINK record is "down"

0 commit comments

Comments
 (0)