diff options
author | Vijay Bellur <vbellur@redhat.com> | 2015-04-18 18:40:55 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendra@redhat.com> | 2015-04-29 07:03:11 -0700 |
commit | 797e923da9f5f1eca4a51da177b1a7cbef75b5ad (patch) | |
tree | 18765214d0605ee8c14c4516bdf6c6f0d6b3a08f /tests/include.rc | |
parent | 6bde16f7dc4a43d85e488f25ad679abfd24e72d1 (diff) |
tests: Await for graph switch before testing open fop count
In performance/open-behind.t, a test for open fop reaching the brick is done by
switching off open-behind and performing a read operation. If the read operation
is performed before a graph switch, the read happens on the old graph and hence
open does not get accounted in the brick.
To overcome this EXPECT_WITHIN 10 seconds has now been added to ensure that a
graph switch has happened. The read operation happens subsequently after the
graph switch.
Cleaned up a "No volumes present" message from stderr while doing this.
Change-Id: I1e1c0d7e4bd2057520b4dd46157d18f30837b8c9
BUG: 1213066
Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-on: http://review.gluster.org/10293
Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
Tested-by: Raghavendra Bhat <raghavendra@redhat.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r-- | tests/include.rc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/include.rc b/tests/include.rc index d4772bd42f4..94e4bc4bb67 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -65,6 +65,7 @@ JANITOR_TIMEOUT=60 UMOUNT_TIMEOUT=5 CONFIG_UPDATE_TIMEOUT=5 AUTH_REFRESH_INTERVAL=10 +GRAPH_SWITCH_TIMEOUT=10 statedumpdir=`gluster --print-statedumpdir`; # Default directory for statedump |