Skip to content

Commit 905d9cb

Browse files
lkotuladahlerlend
authored andcommitted
Bug#37539314 - HTTP request and response should be logged conditionally [POSTFIX]
Description =========== Following test was toggling at PB2: developer_request_log. The test was restarting router, and waiting for the router to update its entry in `router` table. The problem is that router does it twice, before first fetch of metadata and after successful fetch. Thus we do not have the information if HTTP endpoints are available after restart. (POST-PUSH FIX WL#15440) Change-Id: Ia923c8933c03ff75392eb5d24d69f88ecafc1d9c
1 parent c8a4127 commit 905d9cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mysql-test/suite/router/t/developer_request_log.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ EOF
6666
--source ../include/mrs/wait_mrs_read_metadata.inc
6767

6868
--let $mrs_client_arg_path='/svc/basic/tab/1'
69+
--let $mrs_client_arg_wait_until_status=60
6970
--let $mrs_client_arg_display=none
7071
--source ../include/mrs/mrs_client.inc
7172

@@ -82,5 +83,12 @@ EOF
8283
--source ../include/mrs/wait_mrs_read_metadata.inc
8384
--connection default
8485

86+
# Next step makes sure that we are synced with HTTP state (all endpoints are exposed).
87+
# Its needed for cleanup.
88+
--let $mrs_client_arg_path='/svc/basic/tab/1'
89+
--let $mrs_client_arg_wait_until_status=60
90+
--let $mrs_client_arg_display=none
91+
--source ../include/mrs/mrs_client.inc
92+
8593
remove_file $MYSQL_TMP_DIR/extra_router_config.cnf;
8694
--source ../include/mrs/cleanup.inc

0 commit comments

Comments
 (0)