Skip to content

Commit

Permalink
[cleanup][broker] cleanup deprecated method of metadata store etcd (a…
Browse files Browse the repository at this point in the history
…pache#21253)

Signed-off-by: Lan Liang <[email protected]>
  • Loading branch information
liangyuanpeng authored Dec 8, 2023
1 parent fd0dd65 commit 2e31e71
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public EtcdMetadataStore(String metadataURL, MetadataStoreConfig conf, boolean e
try {
this.client = newEtcdClient(metadataURL, conf);
this.kv = client.getKVClient();
this.client.getWatchClient().watch(ByteSequence.from("\0", StandardCharsets.UTF_8),
this.client.getWatchClient().watch(ByteSequence.from("/", StandardCharsets.UTF_8),
WatchOption.newBuilder()
.withPrefix(ByteSequence.from("/", StandardCharsets.UTF_8))
.isPrefix(true)
.build(), this::handleWatchResponse);
if (enableSessionWatcher) {
this.sessionWatcher =
Expand Down Expand Up @@ -285,7 +285,7 @@ protected void batchOperation(List<MetadataOp> ops) {
.withKeysOnly(true)
.withSortField(GetOption.SortTarget.KEY)
.withSortOrder(GetOption.SortOrder.ASCEND)
.withPrefix(prefix)
.isPrefix(true)
.build()));
break;
}
Expand Down

0 comments on commit 2e31e71

Please sign in to comment.