Skip to content

Instantly share code, notes, and snippets.

@otoolep
Created March 28, 2026 13:38
Show Gist options
  • Select an option

  • Save otoolep/bab2ba285ea24e87273150cf5c0e4443 to your computer and use it in GitHub Desktop.

Select an option

Save otoolep/bab2ba285ea24e87273150cf5c0e4443 to your computer and use it in GitHub Desktop.
~/repos/rqlite/src/github.com/rqlite/rqlite/cmd/rqlited (master)$ cd ..
~/repos/rqlite/src/github.com/rqlite/rqlite/cmd (master)$ cd ..
~/repos/rqlite/src/github.com/rqlite/rqlite (master)$ python system_test/e2e/multi_node.py TestNodeRestartConnectionPool
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.18) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
test_connection_pool_stats_check (__main__.TestNodeRestartConnectionPool)
Test to check if we can monitor connection pool stats. ...
Cluster stats: {'num_backup_req': 0, 'num_broadcast_hwm_req': 0, 'num_client_execute_retries': 0, 'num_client_load_retries': 0, 'num_client_query_retries': 0, 'num_client_read_timeouts': 0, 'num_client_request_retries': 0, 'num_client_retries': 0, 'num_client_write_timeouts': 0, 'num_execute_req': 0, 'num_get_node_api_req': 1, 'num_get_node_api_req_local': 1, 'num_get_node_api_req_retries': 0, 'num_get_node_api_resp': 1, 'num_hwm_update_dropped': 0, 'num_join_req': 1, 'num_load_req': 0, 'num_notify_req': 0, 'num_query_req': 0, 'num_remove_node_req': 0, 'num_request_req': 0, 'num_stepdown_req': 0}
No conn_pool_stats found in cluster stats
ok
test_restart_node_connection_pool_issue (__main__.TestNodeRestartConnectionPool)
Test that demonstrates the connection pool stale connection issue. ... Leader is 0
Follower is 1
Filling connection pool with requests...
Connection pool populated
Stopping leader node 0...
Waiting for node to fully stop...
Restarting leader node 0...
Leader 0 is back up
Attempting queries to restarted node...
✓ Query succeeded after 0.00 seconds
Total attempts: 1
Failed attempts: 0
============================================================
TEST RESULTS:
============================================================
Total recovery time: 0.00 seconds
Total attempts: 1
Success: YES
PASSED: Recovery was quick (0.00 seconds)
Connection pool handled the restart properly
============================================================
ok
----------------------------------------------------------------------
Ran 2 tests in 9.268s
OK
~/repos/rqlite/src/github.com/rqlite/rqlite (master)$ git stash pop
Auto-merging system_test/e2e/multi_node.py
HEAD detached at v9.4.5
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: system_test/e2e/multi_node.py
Untracked files:
(use "git add <file>..." to include in what will be committed)
CONTEXT
compass_artifact_wf-b1ca554b-865e-412b-8886-bada60c64412_text_markdown.md
no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (a940dc83da6f8939b42640184ade22ef9c68dc18)
~/repos/rqlite/src/github.com/rqlite/rqlite $ python system_test/e2e/multi_node.py TestNodeRestartConnectionPool
/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.18) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
test_connection_pool_stats_check (__main__.TestNodeRestartConnectionPool)
Test to check if we can monitor connection pool stats. ...
Cluster stats: {'num_backup_req': 0, 'num_broadcast_hwm_req': 0, 'num_client_execute_retries': 0, 'num_client_load_retries': 0, 'num_client_query_retries': 0, 'num_client_read_timeouts': 0, 'num_client_request_retries': 0, 'num_client_retries': 0, 'num_client_write_timeouts': 0, 'num_execute_req': 0, 'num_get_node_api_req': 1, 'num_get_node_api_req_local': 1, 'num_get_node_api_req_retries': 0, 'num_get_node_api_resp': 1, 'num_hwm_update_dropped': 0, 'num_join_req': 1, 'num_load_req': 0, 'num_notify_req': 0, 'num_query_req': 0, 'num_remove_node_req': 0, 'num_request_req': 0, 'num_stepdown_req': 0}
No conn_pool_stats found in cluster stats
ok
test_restart_node_connection_pool_issue (__main__.TestNodeRestartConnectionPool)
Test that demonstrates the connection pool stale connection issue. ... Leader is 0
Follower is 1
Filling connection pool with requests...
Connection pool populated
Stopping leader node 0...
Waiting for node to fully stop...
Restarting leader node 0...
Leader 0 is back up
Attempting queries to restarted node...
✓ Query succeeded after 0.02 seconds
Total attempts: 1
Failed attempts: 0
============================================================
TEST RESULTS:
============================================================
Total recovery time: 0.02 seconds
Total attempts: 1
Success: YES
PASSED: Recovery was quick (0.02 seconds)
Connection pool handled the restart properly
============================================================
ok
----------------------------------------------------------------------
Ran 2 tests in 8.403s
OK
~/repos/rqlite/src/github.com/rqlite/rqlite $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment