Repository navigation
Conversation
b6215ac to
c9cf8ae
Compare
|
Still requires multisite suite to be run. |
|
jenkins retest make check |
| if (copy_if_newer) { | ||
| /* need to get mtime for destination */ | ||
| ret = get_obj_state(&obj_ctx, dest_bucket_info, dest_obj, &dest_state, false, null_yield); | ||
| ret = get_obj_state(&obj_ctx, dest_bucket_info, src_obj, &dest_state, true, null_yield); |
There was a problem hiding this comment.
ok i'm glad this fix works! before merge though, i'd like to find a way to preserve the ability for fetch_remote_obj() to use a different src_obj and dest_obj
my only idea here is to add two separate args to fetch_remote_obj() (which unfortunately already has a million arguments) for stat_dest_obj and stat_follow_olh
then for normal multisite replication, we'd pass stat_dest_obj=dest_obj and stat_follow_olh=false
and for the archive zone sync module, RGWArchiveDataSyncModule::sync_object() would pass stat_dest_obj=key and stat_follow_olh=true in the /* force version if not set */ case
There was a problem hiding this comment.
@cbodley @smanjara I agree that we should make sure fetch_remote_obj() still does what it does now, but does this fix even work if there are multiple concurrent writes to the different zones on the same object? Seems to me that following the olh for mtime will only work consistently if there's only a single change. Maybe the way to go would be to identify the correct dest by searching for the mtime at the sync module level?
There was a problem hiding this comment.
i'm not sure what is meant by finding the correct change; is it related to requiring archive of all unique versions of an object? I'm unconvinced that this is a requirement--but if it is, I'm not certain that modification time is a valid selector for same
There was a problem hiding this comment.
@mattbenjamin the problem here is archiving too many versions of the same object instance. The fix here (if I understand it correctly) tries to eliminate it by identifying that that current versioned head object (on the archive zone) has the same mtime as the source object (which is not necessarily versioned). However, I don't believe that checking the current head object is reliable.
There was a problem hiding this comment.
but does this fix even work if there are multiple concurrent writes to the different zones on the same object?
it doesn't, no. with concurrent writes to a non-versioned bucket on active-active zones A and B, replication will converge on the copy with the latest mtime. an archive zone C has no way to guarantee that it can fetch both copies of the object, because the replication between A and B is racing to overwrite one of them
even considering a simpler configuration with a single zone A and archive zone C, what guarantees can the archive zone make about its ability to archive overwrites to an object? if zone A overwrites the object every 10 minutes, and the archive zone's replication delta is lower than that, then it should archive every copy. but the time between overwrites could be arbitratily small, and the replication delta could be arbitrarily large
Maybe the way to go would be to identify the correct dest by searching for the mtime at the sync module level?
even if we do find a copy older than the 'current' archived version and include that mtime in the If-Modified-Since header, if the replication between A and B converges first, we'd still fetch two copies of that latest version and end up with duplicates
There was a problem hiding this comment.
I made essentially this argument in a conversation with Casey last week--with the quibble that it satisfies "works" for some definition of consistency. It appeared to me that, as above, it feels too strong to require that every version that existed transiently needs to be captured at the archive zone (but someone might ask for it); meanwhile, it feels almost expected that we would be able to remove duplicates, especially ones arriving at the same time, but maybe in general; with some bound on the number of versions we permit in the archive zone, we could use etag/checksum checks to do that?
| overrides: | ||
| rgw-multisite: |
| @@ -15,7 +15,7 @@ overrides: | |||
| endpoints: [c1.client.0] | |||
| if (copy_if_newer) { | ||
| /* need to get mtime for destination */ | ||
| ret = get_obj_state(&obj_ctx, dest_bucket_info, dest_obj, &dest_state, false, null_yield); | ||
| ret = get_obj_state(&obj_ctx, dest_bucket_info, src_obj, &dest_state, true, null_yield); |
There was a problem hiding this comment.
i'm not sure what is meant by finding the correct change; is it related to requiring archive of all unique versions of an object? I'm unconvinced that this is a requirement--but if it is, I'm not certain that modification time is a valid selector for same
|
@mattbenjamin to clarify, and following our conversation, I do not believe that requiring archive of all unique versions of an object is a requirement. When implemented this feature we specifically said that this is not going to happen (not with this architecture). |
c9cf8ae to
6620f30
Compare
|
@yehudasa @cbodley @mattbenjamin I have tried to preserve fetch_remote_obj()'s original capability by using stat_follow_olh as the differentiator. Please review again. Thanks. Will be fixing test scripts to enable archive zone and run a round of multisite tests. |
|
@smanjara it looks like the normal multisite tests are trying to create buckets on the archive zone, which shouldn't be supported. i'd try changing AZone.is_read_only() to return False |
|
ping @smanjara |
|
2019-12-09T13:27:30.106 INFO:tasks.rgw_multisite_tests:test versioning support on zones ... FAIL Tests fail for cases when bucket name on master zone is deleted. Since bucket removal is not allowed on archive zone, it gets renamed on archive zone to something like "my-bucket-deleted-cc8b5f17f3f7b0b93843609e93fb5d4f". A GETBucket fails to query this new name. The problem seems to come from the bucket remove cleanup part of RGWArchiveBucketMetadataHandler Tracker opened to address this: https://tracker.ceph.com/issues/43221 |
0db2687 to
ecc135b
Compare
@cbodley can you please take a look? |
|
11 out of 12 tests passed. |
| - rgw-multisite: | ||
| - rgw-multisite-tests: | ||
| args: | ||
| - tasks.rgw_multi.tests_az |
There was a problem hiding this comment.
other than the new realm description in realms/two-zone-archive.yaml, this tasks.rgw_multi.tests_az line seems to be the only difference from the rgw/multisite suite. do you think there's a way to put two-zone-archive.yaml under rgw/multisite/realms/ and teach the rgw_multisite_tests.py task (or the rgw_multi tests themselves) how to filter the tests based on cluster configuration?
i'd like to make a similar change for pubsub tests, and would rather not duplicate the entire suite again
There was a problem hiding this comment.
@cbodley I have removed the archive yamls from here. Will open a new PR for test fixes. I think it is safe to merge.
020604a to
1cc790d
Compare
|
jenkins test make check |
|
jenkins test make check |
|
make check looks broken here, could you try rebasing? |
1cc790d to
108cb1a
Compare
|
@smanjara can you please prioritize rebasing this? we need to get it merged |
…oned source zone, fetch the current version of src_obj. Signed-off-by: Shilpa Jagannath <[email protected]>
108cb1a to
b862520
Compare
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
|
Replacing this PR with #50841 |
Fixes: https://tracker.ceph.com/issues/42167
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docs