-
Notifications
You must be signed in to change notification settings - Fork 694
fix: Operate does not correctly convert snapshot endTime #33920
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
Conversation
94f4b02
to
1ce4d12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some small comments but I'm pre-approving because the rest LGTM.
@@ -43,5 +43,18 @@ public void shouldPreferExtractingFromMetadataField() { | |||
metadata.getVersion()), | |||
""); | |||
assertThat(extracted).isEqualTo(metadata); | |||
assertThat(extracted.getBackupId()) | |||
.isEqualTo( | |||
metadata.getBackupId()); // why backupId is not part of the Metadata.equals() method?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I don't see a good reason why it wouldn't be part of the Metadata.equals(), so I suggest adding it there instead of the separate assertion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to add any risk :) But I will consider it later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
|
||
@Test | ||
public void shouldExtractingBackupIdAsIntegerFromMetadataField() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naming nitpick: this should be shouldExtractBackupIdAsIntegerFromMetadataField
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-33920-to-stable/operate-8.5
git worktree add --checkout .worktree/backport-33920-to-stable/operate-8.5 backport-33920-to-stable/operate-8.5
cd .worktree/backport-33920-to-stable/operate-8.5
git reset --hard HEAD^
git cherry-pick -x 1ce4d123e9290b1913c2ce312081390443a54d3e
git push --force-with-lease |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin stable/8.6
git worktree add -d .worktree/backport-33920-to-stable/8.6 origin/stable/8.6
cd .worktree/backport-33920-to-stable/8.6
git switch --create backport-33920-to-stable/8.6
git cherry-pick -x 1ce4d123e9290b1913c2ce312081390443a54d3e |
Successfully created backport PR for |
Successfully created backport PR for |
Successfully created backport PR for |
Description
Other problems were reported during Opensearch backup testing.
With opensearch,
snapshot.endTimeInMillis
can contain integer (0) or be null, and this is not well handled by OperateChecklist
Related issues
closes #