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

ARSN-392 [7.70] Put metadata to a standalone null master breaks CloudServer CRUD #2216

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

nicolas2bert
Copy link
Contributor

@nicolas2bert nicolas2bert commented Feb 12, 2024

NOTE: This change is only impacting the "file" metadata backend logic. Similar fixes will be implemented in scality/Metadata using Arsenal.updateOrAppendNullVersionId() method.

Description:

1653fd2: "File" metadata backend should be "mocking" the V0 scality/Metadata backend. To fix it, we imported the V0 processVersionSpecificPut from scality/Metadata.

58d0622:

  • For "null key" backward compatibility (if isNull is undefined), add the nullVersionId field to the master update. The nullVersionId is needed for listing, retrieving, and deleting null versions.

  • For the new null key implementation (if isNull is defined): add the isNull2 field and set it to true to specify that the new version is null AND has been put with a Cloudserver handling null keys (i.e., supporting S3C-7352).

  • Manage scenarios in which a version is marked with the isNull attribute set to true, but without a version ID. This happens after BackbeatClient.putMetadata() is applied to a standalone null master.

@bert-e
Copy link
Contributor

bert-e commented Feb 12, 2024

Hello nicolas2bert,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Status report is not available.

@bert-e
Copy link
Contributor

bert-e commented Feb 12, 2024

Incorrect fix version

The Fix Version/s in issue ARSN-392 contains:

  • None

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.70.24

  • 8.1.123

Please check the Fix Version/s of ARSN-392, or the target
branch of this pull request.

* _jsonAppend('{"existingKey":"existingValue"}', 'newKey', 'newValue');
* // returns '{"existingKey":"existingValue","newKey":"newValue"}'
*/
static _jsonAppend(stringifiedObject: string, key: string, value: string): string {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you have already reviewed #2215, there's no need to do so again as it is a duplicate.

* @param {string} nullVersionId - The new value for the `nullVersionId` property to be updated or appended.
* @returns {string} The updated JSON-formatted string with the new `nullVersionId` value.
*/
static updateOrAppendNullVersionId(value: string, nullVersionId: string): string {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you have already reviewed #2215, there's no need to do so again as it is a duplicate.

@@ -0,0 +1,55 @@
const { Version } = require('../../../lib/versioning/Version');

describe('Version', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you have already reviewed #2215, there's no need to do so again as it is a duplicate.

@bert-e
Copy link
Contributor

bert-e commented Feb 13, 2024

Incorrect fix version

The Fix Version/s in issue ARSN-392 contains:

  • 7.10.58

  • 7.70.24

  • 8.1.123

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.70.24

  • 8.1.123

Please check the Fix Version/s of ARSN-392, or the target
branch of this pull request.

Copy link
Contributor

@jonathan-gramain jonathan-gramain left a comment

Choose a reason for hiding this comment

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

LGTM (thanks for updating this version-specific PUT function by the way, it was not obvious at all!)

lib/versioning/Version.ts Show resolved Hide resolved
lib/versioning/VersioningRequestProcessor.ts Outdated Show resolved Hide resolved
lib/versioning/VersioningRequestProcessor.ts Outdated Show resolved Hide resolved
lib/versioning/VersioningRequestProcessor.ts Outdated Show resolved Hide resolved
@nicolas2bert nicolas2bert force-pushed the bugfix/ARSN-392/null7.70 branch from dc22643 to 58d0622 Compare February 19, 2024 11:08
@bert-e
Copy link
Contributor

bert-e commented Feb 19, 2024

Incorrect fix version

The Fix Version/s in issue ARSN-392 contains:

  • 7.10.59

  • 7.70.26

  • 8.1.124

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.70.26

  • 8.1.124

Please check the Fix Version/s of ARSN-392, or the target
branch of this pull request.

This logic is used by CRR replication feature to BackbeatClient.putMetadata on top of a null version
- For backward compatibility (if isNull is undefined), add the nullVersionId field to the master update. The nullVersionId is needed for listing, retrieving, and deleting null versions.

- For the new null key implementation (if isNull is defined): add the isNull2 field and set it to true to specify that the new version is null AND has been put with a Cloudserver handling null keys (i.e., supporting S3C-7352).

- Manage scenarios in which a version is marked with the isNull attribute set to true, but without a version ID. This happens after BackbeatClient.putMetadata() is applied to a standalone null master.
@nicolas2bert nicolas2bert force-pushed the bugfix/ARSN-392/null7.70 branch from 58d0622 to 6820444 Compare February 20, 2024 14:20
@nicolas2bert
Copy link
Contributor Author

ping

@bert-e
Copy link
Contributor

bert-e commented Feb 20, 2024

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

@nicolas2bert
Copy link
Contributor Author

/create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Feb 20, 2024

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/6.4
  • development/7.10
  • development/7.4

You can set option create_pull_requests if you need me to create
integration pull requests in addition to integration branches, with:

@bert-e create_pull_requests

The following options are set: create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Feb 20, 2024

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

The following options are set: create_integration_branches

@nicolas2bert
Copy link
Contributor Author

@bert-e approve

@bert-e
Copy link
Contributor

bert-e commented Feb 21, 2024

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/7.70

  • ✔️ development/8.1

The following branches will NOT be impacted:

  • development/6.4
  • development/7.10
  • development/7.4

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve, create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Feb 21, 2024

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/7.70

  • ✔️ development/8.1

The following branches have NOT changed:

  • development/6.4
  • development/7.10
  • development/7.4

Please check the status of the associated issue ARSN-392.

Goodbye nicolas2bert.

@bert-e bert-e merged commit 6820444 into development/7.70 Feb 21, 2024
7 checks passed
@bert-e bert-e deleted the bugfix/ARSN-392/null7.70 branch February 21, 2024 08:40
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.

4 participants