From: Sage Weil Date: Wed, 17 May 2017 15:55:42 +0000 (-0400) Subject: ceph_test_rados_api_list: more fix LibRadosListNP.ListObjectsError X-Git-Tag: v12.1.0~10^2~77^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3bb9dd475bf9d6961cc8b5e9f7bb0965d6637a7b;p=ceph.git ceph_test_rados_api_list: more fix LibRadosListNP.ListObjectsError Follow-on to d7e6e8d60309e4800389b36f786b633d0ca2ec07; we need to make sure the client gets the updated osdmap. Fixes: http://tracker.ceph.com/issues/19963 Signed-off-by: Sage Weil --- diff --git a/src/test/librados/list.cc b/src/test/librados/list.cc index 54f4459b28d8..f3ca8107d9d9 100644 --- a/src/test/librados/list.cc +++ b/src/test/librados/list.cc @@ -974,6 +974,7 @@ TEST_F(LibRadosListNP, ListObjectsError) { "\",\"sure\": \"--yes-i-really-really-mean-it-not-faking\"}"; const char *cmd[2] = { c.c_str(), 0 }; ASSERT_EQ(0, rados_mon_command(cluster, (const char **)cmd, 1, "", 0, &buf, &buflen, &st, &stlen)); + ASSERT_EQ(0, rados_wait_for_latest_osdmap(cluster)); } rados_list_ctx_t ctx;