Skip to content

Commit

Permalink
[ISSUE #8829] Keep data version while reload and XXXConfigManagerV2 t…
Browse files Browse the repository at this point in the history
…urns off sync

Signed-off-by: Li Zhanhui <[email protected]>
  • Loading branch information
lizhanhui authored Nov 6, 2024
1 parent 5600684 commit 311b831
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ protected void initOptions() {
protected void initAbleWalWriteOptions() {
this.ableWalWriteOptions = new WriteOptions();

// For metadata, prioritize data integrity
this.ableWalWriteOptions.setSync(true);
// Given that fdatasync is kind of expensive, sync-WAL for every write cannot be afforded.
this.ableWalWriteOptions.setSync(false);

// We need WAL for config changes
this.ableWalWriteOptions.setDisableWAL(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private boolean loadSubscriptions() {
while (iterator.isValid()) {
SubscriptionGroupConfig subscriptionGroupConfig = parseSubscription(iterator.key(), iterator.value());
if (null != subscriptionGroupConfig) {
super.updateSubscriptionGroupConfigWithoutPersist(subscriptionGroupConfig);
super.putSubscriptionGroupConfig(subscriptionGroupConfig);
}
iterator.next();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private boolean loadTopicConfig() {
byte[] value = iterator.value();
TopicConfig topicConfig = parseTopicConfig(key, value);
if (null != topicConfig) {
super.updateSingleTopicConfigWithoutPersist(topicConfig);
super.putTopicConfig(topicConfig);
}
iterator.next();
}
Expand Down

0 comments on commit 311b831

Please sign in to comment.