mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
ceph_test_rados_api_watch_notify: wait longer for osd to time us out
If cluster is thrashing this can fail. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
78eed527e7
commit
1e32e3bd82
@ -231,7 +231,7 @@ TEST_F(LibRadosWatchNotify, Watch2Delete) {
|
|||||||
watch_notify2_test_cb,
|
watch_notify2_test_cb,
|
||||||
watch_notify2_test_errcb, NULL));
|
watch_notify2_test_errcb, NULL));
|
||||||
ASSERT_EQ(0, rados_remove(ioctx, notify_oid));
|
ASSERT_EQ(0, rados_remove(ioctx, notify_oid));
|
||||||
int left = 180;
|
int left = 300;
|
||||||
std::cout << "waiting up to " << left << " for disconnect notification ..."
|
std::cout << "waiting up to " << left << " for disconnect notification ..."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
while (notify_err == 0 && --left) {
|
while (notify_err == 0 && --left) {
|
||||||
@ -262,7 +262,7 @@ TEST_F(LibRadosWatchNotify, Watch2Timeout) {
|
|||||||
ASSERT_LT(age, age_bound * 1000);
|
ASSERT_LT(age, age_bound * 1000);
|
||||||
ASSERT_GT(age, 0);
|
ASSERT_GT(age, 0);
|
||||||
rados_conf_set(cluster, "objecter_inject_no_watch_ping", "true");
|
rados_conf_set(cluster, "objecter_inject_no_watch_ping", "true");
|
||||||
int left = 180;
|
int left = 300;
|
||||||
std::cout << "waiting up to " << left << " for osd to time us out ..."
|
std::cout << "waiting up to " << left << " for osd to time us out ..."
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
while (notify_err == 0 && --left) {
|
while (notify_err == 0 && --left) {
|
||||||
|
Loading…
Reference in New Issue
Block a user