Repository navigation
osd: add processed_subop_count for cls_cxx_subop_version() - #18610
Conversation
|
@cbodley This change will most likely break async read handling since |
|
... if you want to revert the logic of |
85cbd10 to
2fd5bc5
Compare
|
@dillaman thanks for pointing out the interaction with async reads what do you think about using the i worried at first that the |
|
@cbodley Probably a better question for a core developer since I don't know if the pointers are stable. If so, it lgtm. You probably also want to generate teuthology tests to ensure that |
|
Yeah I would prefer to introduce another int counter that is the subop_index, and rename the other field to be unrelated to the index. I worry about teh vector item pointer in the map |
|
@liewegas okay, will do |
cls_log_add() relies on cls_cxx_subop_version() to generate unique keys
for log entries with the same timestamp. because cls calls back into
do_osd_ops(), resetting current_osd_subop_num means that cls_log_add()
will keep seeing the same subop version and generating the same keys.
this causes the following failure in ceph_test_cls_log:
[ RUN ] cls_rgw.test_log_add_same_time
/home/cbodley/ceph/src/test/cls_log/test_cls_log.cc:144: Failure
Expected: 10
To be equal to: (int)entries.size()
Which is: 1
[ FAILED ] cls_rgw.test_log_add_same_time (1180 ms)
Fixes: http://tracker.ceph.com/issues/21964
Signed-off-by: Casey Bodley <[email protected]>
2fd5bc5 to
95faac9
Compare
|
updated with a separate this allows for some further cleanup to make |
|
@cbodley Thanks -- can you also add a script for |
Signed-off-by: Casey Bodley <[email protected]>
|
updated, thanks @dillaman |
|
teuthology run failed with: it looks like i need to add some packaging stuff |
Signed-off-by: Casey Bodley <[email protected]>
|
thanks @yuriw, the rerun was all green and i see the test running successfully here: |
cls_log_add() relies on cls_cxx_subop_version() to generate unique keys
for log entries with the same timestamp. because cls calls back into
do_osd_ops(), resetting current_osd_subop_num means that cls_log_add()
will keep seeing the same subop version and generating the same keys.
this causes the following failure in ceph_test_cls_log:
Fixes: http://tracker.ceph.com/issues/21964