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

SNAP and CHECKPOINT sync modes - now production ready #6405

Merged
merged 15 commits into from
Feb 2, 2024

Conversation

macfarla
Copy link
Contributor

@macfarla macfarla commented Jan 15, 2024

  • prefer SNAP and CHECKPOINT
  • still support X_SNAP and X_CHECKPOINT - mark for deprecation in 24.4.0
  • all help and log messages now use SNAP and CHECKPOINT

refs #6311

Signed-off-by: Sally MacFarlane <[email protected]>
Copy link

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.
  • I thought about the changelog and included a changelog update if required.
  • If my PR includes database changes (e.g. KeyValueSegmentIdentifier) I have thought about compatibility and performed forwards and backwards compatibility tests

Signed-off-by: Sally MacFarlane <[email protected]>
@macfarla macfarla marked this pull request as draft January 17, 2024 02:06
Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
@macfarla macfarla changed the title remove X flag from SNAP sync mode SNAP and CHECKPOINT sync modes - now production ready Jan 17, 2024
@@ -1829,7 +1829,7 @@ public void syncMode_invalid() {
assertThat(commandOutput.toString(UTF_8)).isEmpty();
assertThat(commandErrorOutput.toString(UTF_8))
.contains(
"Invalid value for option '--sync-mode': expected one of [FULL, FAST, X_SNAP, X_CHECKPOINT] (case-insensitive) but was 'bogus'");
"Invalid value for option '--sync-mode': expected one of [FULL, FAST, SNAP, CHECKPOINT, X_SNAP, X_CHECKPOINT] (case-insensitive) but was 'bogus'");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't love this but it was not easy to remove so I figure we can live with it until 24.4.0

Signed-off-by: Sally MacFarlane <[email protected]>
Signed-off-by: Sally MacFarlane <[email protected]>
@macfarla macfarla marked this pull request as ready for review January 19, 2024 03:46
@macfarla
Copy link
Contributor Author

confirmed these flags are working by starting SNAP, CHECKPOINT, X_SNAP, X_CHECKPOINT syncs - the new flags are the equivalent of the old ones and work the same

Copy link
Contributor

@gfukushima gfukushima left a comment

Choose a reason for hiding this comment

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

lgtm

@macfarla macfarla enabled auto-merge (squash) February 2, 2024 07:47
@macfarla macfarla merged commit dbea838 into hyperledger:main Feb 2, 2024
11 checks passed
@macfarla macfarla added the doc-change-required Indicates an issue or PR that requires doc to be updated label Feb 18, 2024
@alexandratran alexandratran removed the doc-change-required Indicates an issue or PR that requires doc to be updated label Feb 27, 2024
@macfarla macfarla deleted the snap-no-x branch July 16, 2024 05:55
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.

3 participants