]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_objectstore_tool: Add duplicate pg log entries injection
authorNitzanMordhai <nmordech@redhat.com>
Wed, 15 Jun 2022 10:58:26 +0000 (10:58 +0000)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Thu, 25 Aug 2022 18:56:43 +0000 (20:56 +0200)
commiteac6b25da093b549f3ff9f2913d149cdc3ecc13c
treec97b036078e0cd7c752b356ae482305707cd2d63
parent43c38bb47b5c848902b7ac18b796266b785d3841
tools/ceph_objectstore_tool: Add duplicate pg log entries injection

To be able to recreate and test pg log duplicate entries, a new option
added to the COT: --op pg-log-inject-dups we will also need to provide
--file json_arry of dups, it can get as many dups that need to be inject

the json for dups is in the following format:
{"reqid": "client.n.n:n", "version": "n'n", "user_version": n, "return_code": n}

Signed-off-by: Nitzan Mordechai <nmordec@redhat.com>
(cherry picked from commit b59ccfd3fda52121e78ce5d0e04f9ef931480861)

Conflicts:
        src/tools/ceph_objectstore_tool.cc (pacific does not use
        smart points for `cct` nor `fs`).
        src/tools/ceph_objectstore_tool.cc (pacific does not need
        to stringify `obj.type()`)
src/tools/ceph_objectstore_tool.cc