diff options
author | Dan Lambright <dlambrig@redhat.com> | 2015-12-28 10:57:53 -0500 |
---|---|---|
committer | Dan Lambright <dlambrig@redhat.com> | 2016-02-18 05:54:58 -0800 |
commit | 92d08cee31044af4b792ed283011bf7287b00883 (patch) | |
tree | 447931a7b76081a600368e07cbc5d74766a44f56 /tests | |
parent | 3adeb0a15057b97fed75c293a1a85439dc235c31 (diff) |
cluster/tier: allow db queries to be interruptable
A query to the database may take a long time if the database
has many entries. The tier daemon also sends IPC calls to the
bricks which can run slowly, espcially in RHEL6. While it is
possible to track down each such instance, the snapshot
feature should not be affected by database operations. It requires
no migration be underway. Therefore it is okay to pause tiering
at any time except when DHT is moving a file. This fix implements
this strategy by monitoring when control passes to DHT to
migrate a file using the GF_XATTR_FILE_MIGRATE_KEY trigger. If it
is not, the pause operation is successful.
> Change-Id: I21f168b1bd424077ad5f38cf82f794060a1fabf6
> BUG: 1287842
> Signed-off-by: Dan Lambright <dlambrig@redhat.com>
> Reviewed-on: http://review.gluster.org/13104
> Reviewed-by: Joseph Fernandes
> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Signed-off-by: Dan Lambright <dlambrig@redhat.com>
Change-Id: I667e0af24eaa66afefa860c4d73b324e4f39b997
BUG: 1288352
Signed-off-by: Dan Lambright <dlambrig@redhat.com>
Reviewed-on: http://review.gluster.org/13199
Smoke: Gluster Build System <jenkins@build.gluster.com>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/basic/tier/fops-during-migration-pause.t | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/basic/tier/fops-during-migration-pause.t b/tests/basic/tier/fops-during-migration-pause.t index f50d666ef27..20719c8510a 100755 --- a/tests/basic/tier/fops-during-migration-pause.t +++ b/tests/basic/tier/fops-during-migration-pause.t @@ -5,8 +5,8 @@ . $(dirname $0)/../../tier.rc NUM_BRICKS=3 -DEMOTE_FREQ=10 -PROMOTE_FREQ=10 +DEMOTE_FREQ=30 +PROMOTE_FREQ=30 TEST_STR="Testing write and truncate fops on tier migration" @@ -59,8 +59,9 @@ TEST mkdir $M0/dir1 # Create a large file (800MB), so that rebalance takes time # The file will be created on the hot tier + sleep_until_mid_cycle $DEMOTE_FREQ -dd if=/dev/zero of=$M0/dir1/FILE1 bs=256k count=5120 +dd if=/dev/zero of=$M0/dir1/FILE1 bs=256k count=4096 # Get the path of the file on the hot tier HPATH=`find $B0/hot/ -name FILE1` |