Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support proxying of tagging requests in replication #18649

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

poornas
Copy link
Contributor

@poornas poornas commented Dec 14, 2023

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.

Description

Motivation and Context

Intended for active-active replication setup with peers under a GLB - where upload goes to one site and tagging request is received on this object on a peer before replication has a chance to complete.

How to test this PR?

site replication setup for A <-> B
upload a very large file on A, and send tagging request to B before replication completes on B.
Note: tag replication will be proxied to A, the tag set request on B will return 200 as Return code with an extra header X-Minio-Tagging-Proxied to indicate tagging was proxied to peer.
In case there are more than one replication targets - proxying will return 200 OK, even if one tag operation succeeded.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the test as well? @poornas

@harshavardhana
Copy link
Member

PTAL at the conflicts @poornas

@poornas poornas force-pushed the proxytagging branch 2 times, most recently from 147aa06 to d518faa Compare December 20, 2023 02:15
@poornas poornas changed the title support proxying of tagging requests in site replication setup support proxying of tagging requests in replication Dec 20, 2023
Note: even if proxying is successful, PutObjectTagging/DeleteObjectTagging
will continue to report a 404 since the object is not present locally.
@harshavardhana harshavardhana merged commit b2b26d9 into minio:master Jan 13, 2024
19 checks passed
@harshavardhana harshavardhana deleted the proxytagging branch January 13, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants