Skip to content

Commit 9112341

Browse files
committed
tests: Temporary disable part of Sess.pool_ttl which fails randomly
1 parent 0bc1bd6 commit 9112341

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

devapi/tests/session-t.cc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1889,24 +1889,25 @@ TEST_F(Sess, pool_ttl)
18891889

18901890
#endif
18911891

1892-
{
1892+
// Temporary disabled, bug#30532629
18931893

1894+
#if 0
1895+
{
18941896
std::cout << "Not threaded" << std::endl;
18951897

18961898
settings.set(ClientOption::POOL_QUEUE_TIMEOUT, std::chrono::seconds(100),
1897-
ClientOption::POOL_MAX_IDLE_TIME, std::chrono::seconds(10));
1899+
ClientOption::POOL_MAX_IDLE_TIME, std::chrono::seconds(10));
18981900

18991901
mysqlx::Client client(settings);
19001902

19011903

1902-
auto get_sessions = [&client, &max_connections] ()
1904+
auto get_sessions = [&client, &max_connections]()
19031905
{
19041906
std::list<mysqlx::Session> sessions;
1905-
for(int i = 0; i < max_connections; ++i)
1907+
for (int i = 0; i < max_connections; ++i)
19061908
{
19071909
sessions.emplace_back(client);
19081910
EXPECT_EQ(1, sessions.back().sql("select 1").execute()
1909-
.fetchOne()[0].get<int>());
19101911
}
19111912
};
19121913

@@ -1918,15 +1919,13 @@ TEST_F(Sess, pool_ttl)
19181919

19191920
int this_thread_id = sql("SELECT CONNECTION_ID()").fetchOne()[0].get<int>();
19201921

1921-
std::list<Row> rows =sql("show processlist").fetchAll();
1922+
std::list<Row> rows = sql("show processlist").fetchAll();
19221923

19231924
for (auto row : rows)
19241925
{
19251926
auto val = row.get(7);
19261927
int thread_id = row.get(0).get<int>();
19271928
if (val.isNull() ||
1928-
val.get<string>() != string("PLUGIN") ||
1929-
thread_id == this_thread_id)
19301929
continue;
19311930

19321931
proccess_ids.push_back(thread_id);
@@ -1955,6 +1954,9 @@ TEST_F(Sess, pool_ttl)
19551954
client.getSession().sql("set global mysqlx_wait_timeout=28800").execute();
19561955
}
19571956

1957+
#endif // 0
1958+
1959+
19581960
{
19591961
settings.set(ClientOption::POOL_MAX_SIZE, 1);
19601962

0 commit comments

Comments
 (0)