diff options
author | kshithijiyer <kshithij.ki@gmail.com> | 2020-09-14 18:19:52 +0530 |
---|---|---|
committer | kshithijiyer <kshithij.ki@gmail.com> | 2020-09-14 18:40:27 +0530 |
commit | 09306cd0736f44fedfbc64694ce3861a0ccd0a11 (patch) | |
tree | 51445a53270155da601c61d1c9999a38a98be8e8 /tests/functional/dht/test_stack_overflow.py | |
parent | e76b089062a55967aa39d408aadfe05e42a87b15 (diff) |
[Testfix] Increase timeouts and fix I/O errors
Problem:
--------
Problem 1:
In the latest runs the following testcases fail
with wait timeout mostly on rebalance with an exception
on test_stack_overflow which fails on layout:
1.functional.dht.test_stack_overflow.TestStackOverflow_cplex_dispersed_glusterfs.test_stack_overflow
2.functional.dht.test_rebalance_dir_file_from_multiple_clients.RebalanceValidation_cplex_dispersed_glusterfs.test_expanding_volume_when_io_in_progress
3.functional.dht.test_restart_glusterd_after_rebalance.RebalanceValidation_cplex_dispersed_glusterfs.test_restart_glusterd_after_rebalance
4.functional.dht.test_stop_glusterd_while_rebalance_in_progress.RebalanceValidation_cplex_dispersed_glusterfs.test_stop_glusterd_while_rebalance_in_progress
5.functional.dht.test_rebalance_with_hidden_files.RebalanceValidation_cplex_dispersed_glusterfs.test_rebalance_with_hidden_files
This is mostly observed on disprese volumes which
is expected as in most cases disprese volumes take
more time than pure replicated or distributed volumes
due to it's design.
Problem 2:
Another issue which was observed was that
test_rebalance_with_hidden_files failing on I/O with
distributed volume type with the below stack trace:
Traceback (most recent call last):
File "/usr/share/glustolibs/io/scripts/file_dir_ops.py", line 1246, in <module>
rc = args.func(args)
File "/usr/share/glustolibs/io/scripts/file_dir_ops.py", line 374, in create_files
base_file_name, file_types)
File "/usr/share/glustolibs/io/scripts/file_dir_ops.py", line 341, in _create_files
ret = pool.map(lambda file_tuple: _create_file(*file_tuple), files)
File "/usr/lib64/python2.7/multiprocessing/pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get
raise self._value
IOError: [Errno 17] File exists: '/mnt/testvol_distributed_glusterfs/.1.txt'
Solution:
--------
Problem 1
Increasing or adding timeout so that wait timeouts are not observed.
Problem 2
Adding counter logic to fix the I/O failure.
Change-Id: I917137abdeb2e3844ee666258235f6ccc854ee9f
Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
Diffstat (limited to 'tests/functional/dht/test_stack_overflow.py')
-rw-r--r-- | tests/functional/dht/test_stack_overflow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/dht/test_stack_overflow.py b/tests/functional/dht/test_stack_overflow.py index b165bdf65..c371add63 100644 --- a/tests/functional/dht/test_stack_overflow.py +++ b/tests/functional/dht/test_stack_overflow.py @@ -110,7 +110,7 @@ class TestStackOverflow(GlusterBaseClass): # Wait for fix-layout to complete ret = wait_for_fix_layout_to_complete(self.mnode, self.volname, - timeout=300) + timeout=3000) self.assertTrue(ret, ("Fix-layout failed on volume %s", self.volname)) g.log.info("Fix-layout is successful on " |