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 update ledger metadata option bk-cli #3821

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

rdhabalia
Copy link
Contributor

Motivation

Bk-CLI api supports creating ledger metadata from the metadata binary payload-file but it doesn't support updating metadata for existing ledger which will require some time during updating metadata in some operational update usecases. Therefore, support update metadata if ledger already exists by adding a flag.

Changes

bookkeeper shell ledgermetadata -restorefromfile command can update ledger-metadata by passing additional --update flag.

@rdhabalia rdhabalia added this to the 4.17.0 milestone Feb 27, 2023
@rdhabalia rdhabalia self-assigned this Feb 27, 2023
@rdhabalia rdhabalia force-pushed the led_update branch 2 times, most recently from bc526be to 6e085a6 Compare February 27, 2023 20:06
@codecov-commenter
Copy link

codecov-commenter commented Feb 27, 2023

Codecov Report

Merging #3821 (461b69f) into master (1e02853) will decrease coverage by 17.24%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master    #3821       +/-   ##
=============================================
- Coverage     49.79%   32.55%   -17.24%     
+ Complexity     4817     3107     -1710     
=============================================
  Files           473      473               
  Lines         40963    40972        +9     
  Branches       5240     5241        +1     
=============================================
- Hits          20397    13340     -7057     
- Misses        18542    25968     +7426     
+ Partials       2024     1664      -360     
Flag Coverage Δ
bookie ?
remaining 29.52% <0.00%> (-0.02%) ⬇️
tls 20.95% <0.00%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...java/org/apache/bookkeeper/bookie/BookieShell.java 0.00% <0.00%> (-37.22%) ⬇️
...ols/cli/commands/client/LedgerMetaDataCommand.java 0.00% <0.00%> (ø)
...java/org/apache/bookkeeper/proto/BookieClient.java 0.00% <0.00%> (-100.00%) ⬇️
...org/apache/bookkeeper/bookie/ReadOnlyFileInfo.java 0.00% <0.00%> (-100.00%) ⬇️
...org/apache/bookkeeper/bookie/datainteg/Events.java 0.00% <0.00%> (-100.00%) ⬇️
...rg/apache/bookkeeper/client/api/CreateBuilder.java 0.00% <0.00%> (-100.00%) ⬇️
.../apache/bookkeeper/bookie/storage/EntryLogger.java 0.00% <0.00%> (-100.00%) ⬇️
...che/bookkeeper/bookie/storage/ldb/LongWrapper.java 0.00% <0.00%> (-100.00%) ⬇️
...eeper/bookie/storage/directentrylogger/Events.java 0.00% <0.00%> (-100.00%) ⬇️
...per/bookie/storage/ldb/KeyValueStorageFactory.java 0.00% <0.00%> (-100.00%) ⬇️
... and 190 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Lgtm

@merlimat merlimat merged commit e0ee708 into apache:master Feb 28, 2023
@hangc0276 hangc0276 modified the milestones: 4.17.0, 4.16.0 Mar 21, 2023
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants