Commit e1ac09e
Shilpa Jagannath
rgw/multisite: reset RGW_ATTR_OBJ_REPLICATION_TRACE during object attr changes.
otherwise, if a zone receives request for any s3 object api requests like PutObjectAcl, PutObjectTagging etc. and this zone
was originally the source zone for the object put request, then such subsequent sync ops will fail. this is because the
zone id was added to the replication trace to ensure that we don't sync the object back to it.
for example in a put/delete race during full sync(https://tracker.ceph.com/issues/58911)
so, if the same zone ever becomes the destination for subsequent sync requests on the same object, we compare this zone as
the destination zone against the zone entries in replication trace and because it's entry is already present in the trace,
the sync operation returns -ERR_NOT_MODIFIED.
Signed-off-by: Shilpa Jagannath <[email protected]>1 parent 9bebe32 commit e1ac09e
File tree
3 files changed
+27
-8
lines changed- src
- rgw/driver/rados
- test/rgw/rgw_multi
3 files changed
+27
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7421 | 7421 | | |
7422 | 7422 | | |
7423 | 7423 | | |
| 7424 | + | |
7424 | 7425 | | |
| 7426 | + | |
| 7427 | + | |
| 7428 | + | |
| 7429 | + | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
7425 | 7438 | | |
7426 | 7439 | | |
7427 | 7440 | | |
| |||
7540 | 7553 | | |
7541 | 7554 | | |
7542 | 7555 | | |
| 7556 | + | |
| 7557 | + | |
| 7558 | + | |
| 7559 | + | |
7543 | 7560 | | |
7544 | 7561 | | |
7545 | 7562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2848 | 2848 | | |
2849 | 2849 | | |
2850 | 2850 | | |
2851 | | - | |
2852 | | - | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
2853 | 2855 | | |
2854 | 2856 | | |
2855 | 2857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2317 | 2317 | | |
2318 | 2318 | | |
2319 | 2319 | | |
2320 | | - | |
2321 | | - | |
2322 | | - | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
2323 | 2323 | | |
2324 | | - | |
| 2324 | + | |
2325 | 2325 | | |
2326 | | - | |
2327 | | - | |
| 2326 | + | |
| 2327 | + | |
2328 | 2328 | | |
2329 | 2329 | | |
2330 | 2330 | | |
| |||
0 commit comments