Skip to content

Commit dbc4b23

Browse files
committed
tests: Temporary disable part of Sess.pool_ttl which fails randomly
1 parent 2b751e1 commit dbc4b23

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
@@ -1888,24 +1888,25 @@ TEST_F(Sess, pool_ttl)
18881888

18891889
#endif
18901890

1891-
{
1891+
// Temporary disabled, bug#30532629
18921892

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

18951897
settings.set(ClientOption::POOL_QUEUE_TIMEOUT, std::chrono::seconds(100),
1896-
ClientOption::POOL_MAX_IDLE_TIME, std::chrono::seconds(10));
1898+
ClientOption::POOL_MAX_IDLE_TIME, std::chrono::seconds(10));
18971899

18981900
mysqlx::Client client(settings);
18991901

19001902

1901-
auto get_sessions = [&client, &max_connections] ()
1903+
auto get_sessions = [&client, &max_connections]()
19021904
{
19031905
std::list<mysqlx::Session> sessions;
1904-
for(int i = 0; i < max_connections; ++i)
1906+
for (int i = 0; i < max_connections; ++i)
19051907
{
19061908
sessions.emplace_back(client);
19071909
EXPECT_EQ(1, sessions.back().sql("select 1").execute()
1908-
.fetchOne()[0].get<int>());
19091910
}
19101911
};
19111912

@@ -1917,15 +1918,13 @@ TEST_F(Sess, pool_ttl)
19171918

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

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

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

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

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

0 commit comments

Comments
 (0)