s3-tests/s3tests
Abhishek Lekshmanan 9204283def lc: Give more flexibility for LC expiration times
Earlier values expected a lc debug interval of 2s, which is a pretty
short time window and can often lead to failures if the processing
didn't complete within the next day. This commit assumes the currently
configured LC debug interval of 10s, and gives time intervals using the
following logic:

Worst case:
LC start-time : 00:00
obj upload    : 00:01
LC run1       : 00:10 -> object not expired as it is only 9s old
LC run2       : 00:20 -> object will expire in this run, however we
can't exactly guess when this run will complete, for a moderate amount
of objects this can take anywhere between 1 to a max of 10s, let us give
it a wiggle room to complete around 8s, given the amount of objects in a
teuthology run, it should be mostly probable that the object is already
deleted within this time, so at 28s, we should have seen day1 objects being
expired.

Best case:
LC start-time: 00:00
obj upload : 00:09
LC run1 : 00:10
LC run2 : 00:20 -> obj expires, so elapsed time is around 11->19s (of
course it would almost close to 10s too), We should probably configure
the LC lock time to 10s as well just so as to ensure that the lock isn't
held for the default 60s in which case it is possible that the object
might expire in a time greater than the lock interval.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-09-07 11:50:00 +02:00
..
analysis readwrite analysis tool 2011-12-20 00:06:17 +00:00
functional lc: Give more flexibility for LC expiration times 2017-09-07 11:50:00 +02:00
fuzz tests must have unique names, otherwise they override existing tests. 2015-06-14 22:10:35 -07:00
tests fix broken/commented tests 2014-12-12 13:53:43 -05:00
__init__.py Move test_s3 into s3tests.functional, so it can be split to multiple files nicely. 2011-07-11 15:24:39 -07:00
common.py website: Improve XML handling and x-amz-website-redirect-location tests 2016-04-20 16:08:57 -07:00
generate_objects.py generate_objects: use rewind=True in upload_objects 2013-03-01 15:45:28 -08:00
readwrite.py gevent: bump to >=1.0 2016-04-11 16:01:34 +08:00
realistic.py use the new helpers for realistic files 2014-12-12 13:53:19 -05:00
roundtrip.py fix rgw_roundtrip test fail 2016-07-04 19:13:14 +08:00