-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
[ISSUE #8058] Support for upgrading metadata in json to rocksdb (#8045) #8571
Conversation
@@ -103,6 +123,20 @@ public void delete(final byte[] keyBytes) throws Exception { | |||
this.configRocksDBStorage.delete(keyBytes); | |||
} | |||
|
|||
public void updateKvDataVersion() throws Exception { | |||
kvDataVersion.nextVersion(); | |||
this.configRocksDBStorage.updateKvDataVersion(JSON.toJSONString(kvDataVersion).getBytes(StandardCharsets.UTF_8)); |
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.
JSON.toJSONBytes()
|
||
private boolean merge() { | ||
if (!brokerController.getMessageStoreConfig().isTransferMetadataJsonToRocksdb()) { | ||
log.info("The switch is off, no merge operation is needed."); |
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.
switch what?
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.
LGTM
Which Issue(s) This PR Fixes
Fixes #8058
Brief Description
How Did You Test This Change?