As LU-7329, llog_test_10 trigger OOM again. So add
dt_sync on subtest beginning to flush out journal
callback data accumulated by previous subtest.
Test-Parameters: envdefinitions=ONLY=60a testlist=sanity,sanity,sanity,sanity,sanity,sanity
Signed-off-by: Yang Sheng <yang.sheng@intel.com>
Change-Id: I25c3a5d5a6184b4f51f29948af9c3c0dff1abfaa
Reviewed-on: http://review.whamcloud.com/19005
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
cat_logid = cath->lgh_id;
dt = lu2dt_dev(cath->lgh_obj->do_lu.lo_dev);
+ /* sync device to commit all recent LLOG changes to disk and avoid
+ * to consume a huge space with delayed journal commit callbacks
+ * particularly on low memory nodes or VMs */
+ rc = dt_sync(env, dt);
+ if (rc) {
+ CERROR("10c: sync failed: %d\n", rc);
+ GOTO(out, rc);
+ }
+
/* force catalog wrap for 5th plain LLOG */
cfs_fail_loc = CFS_FAIL_SKIP|OBD_FAIL_CAT_RECORDS;
cfs_fail_val = 4;