]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/osd/TestRados.cc: run test after finishing redirect setup 15385/head
authormyoungwon oh <omwmw@sk.com>
Wed, 31 May 2017 14:13:56 +0000 (23:13 +0900)
committermyoungwon oh <omwmw@sk.com>
Wed, 31 May 2017 14:25:00 +0000 (23:25 +0900)
commita058ebbda407cc102c255e41c033b5ae5561a12d
treeb0cc280a83c90fa0744e3081f3276edac35210e7
parent37b7a1e85ff34a8d8171a4c12e49df840d8257da
test/osd/TestRados.cc: run test after finishing redirect setup

set-redirect test creates more objects than default due to redirect mapping
(let's assume that we create 500 objects, oid 1 -> oid 501, oid 2 -> oid 502)
But the test should use objects within pre-defined range. For example,
If the number of object is 500, only 1~500 oid are allowed for test operations.

In the failure cases, test operation tried to use wrong oids (which means
higher than 500). This is because the bug in the setup phase.
If max_inflights > 1, set-redirect can be finished after setup is completed.
(so wrong oid is included in oid_in_use).
We need to completely remove redirect objects in oid_in_use before start the test.

Fixes: http://tracker.ceph.com/issues/20114
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
src/test/osd/TestRados.cc