]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: test_alloc_hint: flush journal before prodding the FS 1502/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 18 Mar 2014 16:06:12 +0000 (18:06 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Wed, 19 Mar 2014 08:59:27 +0000 (10:59 +0200)
OSDs that for some reason get behind on processing their op queue break
expect_alloc_hint_eq(), as it pokes the FS and not the journal.  Fix it
by flushing the journal before proceeding with anything else.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
qa/workunits/rados/test_alloc_hint.sh

index 14cf22d5beb8aead00170926fe566c36ac5caf43..52fa6ea67f4da86ecfc31503bb449c9dc25ea7ab 100755 (executable)
@@ -54,6 +54,11 @@ function expect_alloc_hint_eq() {
     local expected_extsize="$1"
 
     for (( i = 0 ; i < "${NUM_OSDS}" ; i++ )); do
+        # Make sure that stuff is flushed from the journal to the store
+        # by the time we get to it, as we prod the actual files and not
+        # the journal.
+        sudo ceph daemon "osd.${i}" "flush_journal"
+
         # e.g., .../25.6_head/foo__head_7FC1F406__19
         #       .../26.bs1_head/bar__head_EFE6384B__1a_ffffffffffffffff_1
         local fns=(${OSD_DATA[i]}/current/${PGID}*_head/${OBJ}_*)