From 4013b0afdce8827fc64e468c2478c1565c8a199f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Tue, 27 Jul 2021 15:26:57 +0200 Subject: [PATCH] Fixed replication issues in 'test_unsupported_queries-t' tap test --- test/tap/tests/test_unsupported_queries-t.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tap/tests/test_unsupported_queries-t.cpp b/test/tap/tests/test_unsupported_queries-t.cpp index e0e9b42ea..2c02045ef 100644 --- a/test/tap/tests/test_unsupported_queries-t.cpp +++ b/test/tap/tests/test_unsupported_queries-t.cpp @@ -283,7 +283,8 @@ void helper_test_load_data_local_infile( } // Check that the data has actually been loaded to the database - int myerr = mysql_query(proxysql, "SELECT * FROM test.load_data_local"); + // NOTE: Specifically target 'hostgroup=0' to avoid replication lag. + int myerr = mysql_query(proxysql, "SELECT * /*+ ;hostgroup=0 */ FROM test.load_data_local"); if (myerr) { diag( "Query 'SELECT * FROM test.load_data_local' for table preparation failed"