Repository navigation
Bug fixed for ceph RGW diff fix - #248
Conversation
|
Hi @sarwottamdev, thank you for pointing this out. The issue appears to be slightly wider and relates to how keys are treated by back end. In a short, some back ends respect byte-to-byte keys on put, some are trying to transform them.
We'll check how that can be addressed and will get back. |
|
Hi @sarwottamdev. Your concern has been addressed in #251 We've decided to drop off normalization completely, as it is apparently not addressing the problem it was intended for. |
arttor
left a comment
There was a problem hiding this comment.
one of the log statements still using warn level.
|
@sarwottamdev CI is failing. Please sign off your commits https://github.com/clyso/chorus/blob/main/CONTRIBUTING.md#submitting-changes |
49cf615 to
756a7cd
Compare
|
@arttor Fixed. The branch bug-diff-fix-ceph-RGW has been rewritten with Signed-off-by on all 6 commits and force-pushed. The DCO check should now pass. The final tree against origin/main:
|
|
@sarwottamdev thanks, can you also rebase onto main to resolve conflicts? maybe in this case it is also makes sense to squash commits. |
756a7cd to
597f20b
Compare
- Remove early return in EnsureObjectsDeleted when no objects to remove, ensuring diff-fix copy tasks are always enqueued - Bypass version check for diff-fix copy tasks to prevent valid copies from being skipped - Fix log level for diff-fix version bypass message (cherry picked from commit 800c78a) Signed-off-by: Sarwottam-choudhary1 <sarwottamtinku@gmail.com>
597f20b to
f84ccf2
Compare
|
@arttor Rebased onto main and squashed into a single commit. Conflicts resolved. |
Diff Fix for Ceph RGW
Description
This PR addresses issues identified during diff migrations against Ceph RGW and fixes cases where valid copy operations were not executed.
1. Object Key Normalization Fix
Updated the
normalizeOutputNameandnormalizeInputNamefunctions to stop prepending a leading/to object keys.Previously, object keys for non-MinIO providers (such as Ceph RGW) were normalized with a leading slash, causing S3 operations including:
StatObjectGetObjectPutObjectto fail with errors such as:
Object keys are now preserved as-is, ensuring compatibility with Ceph RGW object lookups.
2. Diff Pipeline Fix
File:
service/worker/handler/diff_handlers.goChanges:
len(objectsToRemove) == 0early return fromEnsureObjectsDeleted()fixCopySetStore.Drop()to clean up stale Redis state before creating new diff-fix copy tasksThis prevents scenarios where the diff-fix workflow exits prematurely and skips required copy operations.
3. Diff Fix Copy Version Check Bypass
File:
service/worker/handler/migration_obj_copy_handler.goAdded an
isDiffFixcheck to bypass the version validation below for diff-fix copy tasks:This prevents valid diff-fix copy operations from being skipped due to version comparison logic that is intended for normal migration workflows rather than repair or reconciliation tasks.
Checklist
Signed-off-byline to certify agreement with the pdated documentation in README.md if applicable.Note: By submitting this PR, you agree to license your contributions under the Apache 2.0 License _CONDUCT.md.