This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch etcd-metadata-store-plugin
in repository https://gitbox.apache.org/repos/asf/pulsar-java-contrib.git

commit a4af3415e833525ee33a3ac41e409a1b96c2f985
Author: Matteo Merli <[email protected]>
AuthorDate: Tue Mar 17 09:29:54 2026 -0700

    Add Etcd metadata store provider plugin
    
    Etcd metadata store support is being removed from Pulsar core (PIP-462).
    This module provides it as an external plugin for users who still need it.
    
    The plugin can be loaded by adding the shaded jar to the Pulsar classpath
    and setting the system property:
      
-Dpulsar.metadata.store.providers=org.apache.pulsar.metadata.impl.EtcdMetadataStoreProvider
---
 pom.xml                                            |   1 +
 pulsar-metadata-etcd-contrib/pom.xml               | 175 +++++++
 .../pulsar/metadata/impl/EtcdMetadataStore.java    | 539 +++++++++++++++++++++
 .../metadata/impl/EtcdMetadataStoreProvider.java   |  46 ++
 .../pulsar/metadata/impl/EtcdSessionWatcher.java   | 163 +++++++
 .../metadata/impl/EtcdMetadataStoreTest.java       | 172 +++++++
 .../src/test/resources/ssl/cert/ca.pem             |  18 +
 .../src/test/resources/ssl/cert/client-key-pk8.pem |  28 ++
 .../src/test/resources/ssl/cert/client.pem         |  20 +
 pulsar-metadata-etcd-contrib/target/.plxarc        |   1 +
 .../target/classes/META-INF/DEPENDENCIES           |  99 ++++
 .../target/classes/META-INF/LICENSE                | 202 ++++++++
 .../target/classes/META-INF/NOTICE                 |   8 +
 .../impl/EtcdConfig$EtcdConfigBuilder.class        | Bin 0 -> 2611 bytes
 .../apache/pulsar/metadata/impl/EtcdConfig.class   | Bin 0 -> 4836 bytes
 .../pulsar/metadata/impl/EtcdMetadataStore$1.class | Bin 0 -> 2072 bytes
 .../pulsar/metadata/impl/EtcdMetadataStore$2.class | Bin 0 -> 1042 bytes
 .../pulsar/metadata/impl/EtcdMetadataStore.class   | Bin 0 -> 27039 bytes
 .../metadata/impl/EtcdMetadataStoreProvider.class  | Bin 0 -> 1119 bytes
 .../metadata/impl/EtcdSessionWatcher$1.class       | Bin 0 -> 876 bytes
 .../pulsar/metadata/impl/EtcdSessionWatcher.class  | Bin 0 -> 7319 bytes
 .../META-INF/DEPENDENCIES                          |  99 ++++
 .../META-INF/LICENSE                               | 202 ++++++++
 .../maven-shared-archive-resources/META-INF/NOTICE |   8 +
 .../compile/default-compile/createdFiles.lst       |   8 +
 .../compile/default-compile/inputFiles.lst         |   3 +
 pulsar-metadata-etcd-contrib/target/spotless-index |   6 +
 27 files changed, 1798 insertions(+)

diff --git a/pom.xml b/pom.xml
index e65edca..02b4c3f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,6 +39,7 @@
         <module>pulsar-auth-contrib</module>
         <module>pulsar-rpc-contrib</module>
         <module>pulsar-admin-mcp-contrib</module>
+        <module>pulsar-metadata-etcd-contrib</module>
     </modules>
 
     <properties>
diff --git a/pulsar-metadata-etcd-contrib/pom.xml 
b/pulsar-metadata-etcd-contrib/pom.xml
new file mode 100644
index 0000000..066fb55
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/pom.xml
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed under the Apache License, Version 2.0 (the "License");
+    you may not use this file except in compliance with the License.
+    You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache</groupId>
+        <artifactId>pulsar-java-contrib</artifactId>
+        <version>1.0.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>pulsar-metadata-etcd-contrib</artifactId>
+    <name>Pulsar Metadata Etcd Contrib</name>
+    <description>Etcd metadata store provider plugin for Apache 
Pulsar</description>
+
+    <properties>
+        <jetcd.version>0.7.7</jetcd.version>
+        <grpc.version>1.60.0</grpc.version>
+        
<jackson-dataformat-yaml.version>2.17.2</jackson-dataformat-yaml.version>
+        <failsafe.version>3.3.2</failsafe.version>
+        <pulsar-metadata.version>4.2.0-SNAPSHOT</pulsar-metadata.version>
+    </properties>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>com.fasterxml.jackson.dataformat</groupId>
+            <artifactId>jackson-dataformat-yaml</artifactId>
+            <version>${jackson-dataformat-yaml.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>dev.failsafe</groupId>
+            <artifactId>failsafe</artifactId>
+            <version>${failsafe.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>io.etcd</groupId>
+            <artifactId>jetcd-core</artifactId>
+            <version>${jetcd.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>io.grpc</groupId>
+                    <artifactId>grpc-netty</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>io.netty</groupId>
+                    <artifactId>*</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>javax.annotation</groupId>
+                    <artifactId>javax.annotation-api</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>io.etcd</groupId>
+            <artifactId>jetcd-test</artifactId>
+            <version>${jetcd.version}</version>
+            <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>io.etcd</groupId>
+                    <artifactId>jetcd-api</artifactId>
+                </exclusion>
+                <exclusion>
+                    <groupId>io.etcd</groupId>
+                    <artifactId>jetcd-core</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>io.grpc</groupId>
+            <artifactId>grpc-netty-shaded</artifactId>
+            <version>${grpc.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>io.grpc</groupId>
+            <artifactId>grpc-protobuf</artifactId>
+            <version>${grpc.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>io.grpc</groupId>
+            <artifactId>grpc-stub</artifactId>
+            <version>${grpc.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.pulsar</groupId>
+            <artifactId>pulsar-metadata</artifactId>
+            <version>${pulsar-metadata.version}</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-shade-plugin</artifactId>
+                <version>3.6.0</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>shade</goal>
+                        </goals>
+                        <phase>package</phase>
+                        <configuration>
+                            
<createDependencyReducedPom>true</createDependencyReducedPom>
+                            
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
+                            <minimizeJar>false</minimizeJar>
+                            <artifactSet>
+                                <includes>
+                                    <include>io.etcd:*</include>
+                                    <include>io.vertx:*</include>
+                                </includes>
+                            </artifactSet>
+                            <relocations>
+                                <relocation>
+                                    <pattern>io.vertx</pattern>
+                                    
<shadedPattern>org.apache.pulsar.jetcd.shaded.io.vertx</shadedPattern>
+                                </relocation>
+                                <relocation>
+                                    <pattern>io.grpc.netty</pattern>
+                                    
<shadedPattern>io.grpc.netty.shaded.io.grpc.netty</shadedPattern>
+                                </relocation>
+                                <relocation>
+                                    <pattern>io.netty</pattern>
+                                    
<shadedPattern>io.grpc.netty.shaded.io.netty</shadedPattern>
+                                </relocation>
+                            </relocations>
+                            <filters>
+                                <filter>
+                                    <artifact>*:*</artifact>
+                                    <excludes>
+                                        <exclude>META-INF/*.SF</exclude>
+                                        <exclude>META-INF/*.DSA</exclude>
+                                        <exclude>META-INF/*.RSA</exclude>
+                                    </excludes>
+                                </filter>
+                            </filters>
+                            <transformers>
+                                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+                                    <manifestEntries>
+                                        <Multi-Release>true</Multi-Release>
+                                    </manifestEntries>
+                                </transformer>
+                                <transformer 
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"></transformer>
+                            </transformers>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <inceptionYear>2025</inceptionYear>
+</project>
diff --git 
a/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
 
b/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
new file mode 100644
index 0000000..e94e14c
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
@@ -0,0 +1,539 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pulsar.metadata.impl;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
+import io.etcd.jetcd.ByteSequence;
+import io.etcd.jetcd.Client;
+import io.etcd.jetcd.ClientBuilder;
+import io.etcd.jetcd.KV;
+import io.etcd.jetcd.KeyValue;
+import io.etcd.jetcd.Txn;
+import io.etcd.jetcd.kv.DeleteResponse;
+import io.etcd.jetcd.kv.GetResponse;
+import io.etcd.jetcd.kv.PutResponse;
+import io.etcd.jetcd.kv.TxnResponse;
+import io.etcd.jetcd.lease.LeaseKeepAliveResponse;
+import io.etcd.jetcd.op.Cmp;
+import io.etcd.jetcd.op.CmpTarget;
+import io.etcd.jetcd.op.Op;
+import io.etcd.jetcd.options.DeleteOption;
+import io.etcd.jetcd.options.GetOption;
+import io.etcd.jetcd.options.PutOption;
+import io.etcd.jetcd.options.WatchOption;
+import io.etcd.jetcd.support.CloseableClient;
+import io.etcd.jetcd.watch.WatchEvent;
+import io.etcd.jetcd.watch.WatchResponse;
+import io.grpc.Status;
+import io.grpc.StatusRuntimeException;
+import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts;
+import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext;
+import io.grpc.netty.shaded.io.netty.handler.ssl.SslProvider;
+import io.grpc.stub.StreamObserver;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.EnumSet;
+import java.util.List;
+import java.util.Optional;
+import java.util.Set;
+import java.util.TreeSet;
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.CompletionException;
+import java.util.concurrent.ExecutionException;
+import java.util.concurrent.TimeUnit;
+import java.util.stream.Collectors;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.pulsar.metadata.api.GetResult;
+import org.apache.pulsar.metadata.api.MetadataStoreConfig;
+import org.apache.pulsar.metadata.api.MetadataStoreException;
+import org.apache.pulsar.metadata.api.Notification;
+import org.apache.pulsar.metadata.api.NotificationType;
+import org.apache.pulsar.metadata.api.Stat;
+import org.apache.pulsar.metadata.api.extended.CreateOption;
+import org.apache.pulsar.metadata.api.extended.SessionEvent;
+import org.apache.pulsar.metadata.impl.batching.AbstractBatchedMetadataStore;
+import org.apache.pulsar.metadata.impl.batching.MetadataOp;
+import org.apache.pulsar.metadata.impl.batching.OpDelete;
+import org.apache.pulsar.metadata.impl.batching.OpGet;
+import org.apache.pulsar.metadata.impl.batching.OpGetChildren;
+import org.apache.pulsar.metadata.impl.batching.OpPut;
+
+@Slf4j
+public class EtcdMetadataStore extends AbstractBatchedMetadataStore {
+
+  static final String ETCD_SCHEME = "etcd";
+  static final String ETCD_SCHEME_IDENTIFIER = "etcd:";
+
+  private final int leaseTTLSeconds;
+  private final Client client;
+  private final KV kv;
+  private volatile long leaseId;
+  private volatile CloseableClient leaseClient;
+  private final EtcdSessionWatcher sessionWatcher;
+
+  public EtcdMetadataStore(
+      String metadataURL, MetadataStoreConfig conf, boolean 
enableSessionWatcher)
+      throws MetadataStoreException {
+    super(conf);
+
+    this.leaseTTLSeconds = conf.getSessionTimeoutMillis() / 1000;
+    try {
+      this.client = newEtcdClient(metadataURL, conf);
+      this.kv = client.getKVClient();
+      this.client
+          .getWatchClient()
+          .watch(
+              ByteSequence.from("/", StandardCharsets.UTF_8),
+              WatchOption.newBuilder().isPrefix(true).build(),
+              this::handleWatchResponse);
+      if (enableSessionWatcher) {
+        this.sessionWatcher =
+            new EtcdSessionWatcher(
+                client, conf.getSessionTimeoutMillis(), 
this::receivedSessionEvent);
+
+        // Ensure the lease is created when we start
+        this.createLease(false).join();
+      } else {
+        sessionWatcher = null;
+      }
+    } catch (Exception e) {
+      throw new MetadataStoreException(e);
+    }
+  }
+
+  private Client newEtcdClient(String metadataURL, MetadataStoreConfig conf) 
throws IOException {
+    String etcdUrl = metadataURL.replaceFirst(ETCD_SCHEME_IDENTIFIER, "");
+    ClientBuilder clientBuilder = 
Client.builder().endpoints(etcdUrl.split(","));
+
+    if (StringUtils.isNotEmpty(conf.getConfigFilePath())) {
+      try (InputStream inputStream = 
Files.newInputStream(Paths.get(conf.getConfigFilePath()))) {
+        EtcdConfig etcdConfig =
+            new ObjectMapper(new YAMLFactory()).readValue(inputStream, 
EtcdConfig.class);
+        if (etcdConfig.isUseTls()) {
+          File trustCertsFile = 
readFile(etcdConfig.getTlsTrustCertsFilePath());
+          File keyFile = readFile(etcdConfig.getTlsKeyFilePath());
+          File certFile = readFile(etcdConfig.getTlsCertificateFilePath());
+          SslContext context =
+              GrpcSslContexts.forClient()
+                  .trustManager(trustCertsFile)
+                  .sslProvider(etcdConfig.getTlsProvider())
+                  .keyManager(certFile, keyFile)
+                  .build();
+          clientBuilder.sslContext(context);
+        }
+
+        if (StringUtils.isNotEmpty(etcdConfig.getAuthority())) {
+          clientBuilder.authority(etcdConfig.getAuthority());
+        }
+      }
+    }
+
+    return clientBuilder.build();
+  }
+
+  private File readFile(String path) {
+    return StringUtils.isEmpty(path) ? null : new File(path);
+  }
+
+  @Override
+  public void close() throws Exception {
+    if (isClosed.compareAndSet(false, true)) {
+      super.close();
+
+      if (sessionWatcher != null) {
+        sessionWatcher.close();
+      }
+
+      if (leaseClient != null) {
+        leaseClient.close();
+      }
+
+      if (leaseId != 0) {
+        client.getLeaseClient().revoke(leaseId);
+      }
+
+      kv.close();
+      client.close();
+    }
+  }
+
+  private static final GetOption EXISTS_GET_OPTION =
+      GetOption.newBuilder().withCountOnly(true).build();
+  private static final GetOption SINGLE_GET_OPTION = 
GetOption.newBuilder().withLimit(1).build();
+
+  @Override
+  protected CompletableFuture<Boolean> existsFromStore(String path) {
+    return kv.get(ByteSequence.from(path, StandardCharsets.UTF_8), 
EXISTS_GET_OPTION)
+        .thenApply(gr -> gr.getCount() == 1);
+  }
+
+  @Override
+  protected CompletableFuture<Stat> storePut(
+      String path, byte[] data, Optional<Long> optExpectedVersion, 
EnumSet<CreateOption> options) {
+    if (!options.contains(CreateOption.Sequential)) {
+      return super.storePut(path, data, optExpectedVersion, options);
+    } else {
+      // First get the version from parent
+      String parent = parent(path);
+      if (parent == null) {
+        parent = "/";
+      }
+      return super.storePut(
+              parent, new byte[0], Optional.empty(), 
EnumSet.noneOf(CreateOption.class))
+          // Then create the unique key with the version added in the path
+          .thenCompose(
+              stat -> super.storePut(path + stat.getVersion(), data, 
optExpectedVersion, options));
+    }
+  }
+
+  @Override
+  protected void batchOperation(List<MetadataOp> ops) {
+    try {
+      Txn txn = kv.txn();
+
+      // First, set all the conditions
+      for (int i = 0; i < ops.size(); i++) {
+        MetadataOp op = ops.get(i);
+        switch (op.getType()) {
+          case PUT:
+            {
+              OpPut put = op.asPut();
+              ByteSequence key = ByteSequence.from(put.getPath(), 
StandardCharsets.UTF_8);
+              if (put.getOptExpectedVersion().isPresent()) {
+                long expectedVersion = put.getOptExpectedVersion().get();
+                if (expectedVersion == -1L) {
+                  // Check that key does not exist
+                  txn.If(new Cmp(key, Cmp.Op.EQUAL, 
CmpTarget.createRevision(0)));
+                } else {
+                  txn.If(new Cmp(key, Cmp.Op.EQUAL, 
CmpTarget.version(expectedVersion + 1)));
+                }
+              }
+              break;
+            }
+          case DELETE:
+            {
+              OpDelete del = op.asDelete();
+              ByteSequence key = ByteSequence.from(del.getPath(), 
StandardCharsets.UTF_8);
+              if (del.getOptExpectedVersion().isPresent()) {
+                txn.If(
+                    new Cmp(
+                        key,
+                        Cmp.Op.EQUAL,
+                        CmpTarget.version(del.getOptExpectedVersion().get() + 
1)));
+              }
+              break;
+            }
+          default:
+            break;
+        }
+      }
+
+      // Then the requests
+      for (int i = 0; i < ops.size(); i++) {
+        MetadataOp op = ops.get(i);
+        switch (op.getType()) {
+          case GET:
+            {
+              txn.Then(
+                  Op.get(
+                      ByteSequence.from(op.asGet().getPath(), 
StandardCharsets.UTF_8),
+                      SINGLE_GET_OPTION));
+              break;
+            }
+          case PUT:
+            {
+              OpPut put = op.asPut();
+              ByteSequence key = ByteSequence.from(put.getPath(), 
StandardCharsets.UTF_8);
+              if (!put.getFuture().isDone()) {
+                PutOption.Builder b = PutOption.newBuilder().withPrevKV();
+
+                if (put.isEphemeral()) {
+                  b.withLeaseId(leaseId);
+                }
+
+                txn.Then(Op.put(key, ByteSequence.from(put.getData()), 
b.build()));
+              }
+              break;
+            }
+          case DELETE:
+            {
+              OpDelete del = op.asDelete();
+              ByteSequence key = ByteSequence.from(del.getPath(), 
StandardCharsets.UTF_8);
+              txn.Then(Op.delete(key, DeleteOption.DEFAULT));
+              break;
+            }
+          case GET_CHILDREN:
+            {
+              OpGetChildren opGetChildren = op.asGetChildren();
+              String path = opGetChildren.getPath();
+
+              ByteSequence prefix =
+                  ByteSequence.from(path.equals("/") ? path : path + "/", 
StandardCharsets.UTF_8);
+
+              txn.Then(
+                  Op.get(
+                      prefix,
+                      GetOption.newBuilder()
+                          .withKeysOnly(true)
+                          .withSortField(GetOption.SortTarget.KEY)
+                          .withSortOrder(GetOption.SortOrder.ASCEND)
+                          .isPrefix(true)
+                          .build()));
+              break;
+            }
+          default:
+            break;
+        }
+      }
+
+      txn.commit()
+          .thenAccept(
+              txnResponse -> {
+                handleBatchOperationResult(txnResponse, ops);
+              })
+          .exceptionally(
+              ex -> {
+                Throwable cause = ex.getCause();
+                if (cause instanceof ExecutionException || cause instanceof 
CompletionException) {
+                  cause = cause.getCause();
+                }
+                if (ops.size() > 1 && cause instanceof StatusRuntimeException) 
{
+                  Status.Code code = ((StatusRuntimeException) 
cause).getStatus().getCode();
+                  if (code == Status.Code.INVALID_ARGUMENT
+                      || code == Status.Code.RESOURCE_EXHAUSTED) {
+                    for (int i = 0; i < ops.size(); i++) {
+                      batchOperation(Collections.singletonList(ops.get(i)));
+                    }
+                  }
+                } else {
+                  log.warn("Failed to commit: {}", cause.getMessage());
+                  for (int i = 0; i < ops.size(); i++) {
+                    ops.get(i).getFuture().completeExceptionally(ex);
+                  }
+                }
+                return null;
+              });
+    } catch (Throwable t) {
+      log.warn("Error in committing batch: {}", t.getMessage());
+    }
+  }
+
+  private void handleBatchOperationResult(TxnResponse txnResponse, 
List<MetadataOp> ops) {
+    safeExecuteCallbacks(
+        () -> {
+          if (!txnResponse.isSucceeded()) {
+            if (ops.size() > 1) {
+              // Retry individually
+              for (int i = 0; i < ops.size(); i++) {
+                batchOperation(Collections.singletonList(ops.get(i)));
+              }
+            } else {
+              ops.get(0)
+                  .getFuture()
+                  .completeExceptionally(
+                      new MetadataStoreException.BadVersionException("Bad 
version"));
+            }
+            return;
+          }
+
+          int getIdx = 0;
+          int deletedIdx = 0;
+          int putIdx = 0;
+          for (int i = 0; i < ops.size(); i++) {
+            MetadataOp op = ops.get(i);
+            switch (op.getType()) {
+              case GET:
+                {
+                  OpGet get = op.asGet();
+                  GetResponse gr = txnResponse.getGetResponses().get(getIdx++);
+                  if (gr.getCount() == 0) {
+                    get.getFuture().complete(Optional.empty());
+                  } else {
+                    KeyValue kv = gr.getKvs().get(0);
+                    boolean isEphemeral = kv.getLease() != 0;
+                    boolean createdBySelf = kv.getLease() == leaseId;
+                    get.getFuture()
+                        .complete(
+                            Optional.of(
+                                new GetResult(
+                                    kv.getValue().getBytes(),
+                                    new Stat(
+                                        get.getPath(),
+                                        kv.getVersion() - 1,
+                                        0,
+                                        0,
+                                        isEphemeral,
+                                        createdBySelf))));
+                  }
+                  break;
+                }
+              case PUT:
+                {
+                  OpPut put = op.asPut();
+                  PutResponse pr = txnResponse.getPutResponses().get(putIdx++);
+                  KeyValue prevKv = pr.getPrevKv();
+                  if (prevKv == null) {
+                    put.getFuture()
+                        .complete(new Stat(put.getPath(), 0, 0, 0, 
put.isEphemeral(), true));
+                  } else {
+                    put.getFuture()
+                        .complete(
+                            new Stat(
+                                put.getPath(), prevKv.getVersion(), 0, 0, 
put.isEphemeral(), true));
+                  }
+                  break;
+                }
+              case DELETE:
+                {
+                  OpDelete del = op.asDelete();
+                  DeleteResponse dr = 
txnResponse.getDeleteResponses().get(deletedIdx++);
+                  if (dr.getDeleted() == 0) {
+                    del.getFuture()
+                        .completeExceptionally(new 
MetadataStoreException.NotFoundException());
+                  } else {
+                    del.getFuture().complete(null);
+                  }
+                  break;
+                }
+              case GET_CHILDREN:
+                {
+                  OpGetChildren getChildren = op.asGetChildren();
+                  GetResponse gr = txnResponse.getGetResponses().get(getIdx++);
+                  String basePath =
+                      getChildren.getPath().equals("/") ? "/" : 
getChildren.getPath() + "/";
+
+                  Set<String> children =
+                      gr.getKvs().stream()
+                          .map(kv -> 
kv.getKey().toString(StandardCharsets.UTF_8))
+                          .map(p -> p.replaceFirst(basePath, ""))
+                          // Only return first-level children
+                          .map(k -> k.split("/", 2)[0])
+                          .collect(Collectors.toCollection(TreeSet::new));
+
+                  getChildren.getFuture().complete(new ArrayList<>(children));
+                }
+            }
+          }
+        },
+        ops);
+  }
+
+  private synchronized CompletableFuture<Void> createLease(boolean 
retryOnFailure) {
+    CompletableFuture<Void> future =
+        client
+            .getLeaseClient()
+            .grant(leaseTTLSeconds)
+            .thenAccept(
+                lease -> {
+                  synchronized (this) {
+                    this.leaseId = lease.getID();
+
+                    if (leaseClient != null) {
+                      leaseClient.close();
+                    }
+                    this.leaseClient =
+                        this.client
+                            .getLeaseClient()
+                            .keepAlive(
+                                leaseId,
+                                new StreamObserver<LeaseKeepAliveResponse>() {
+                                  @Override
+                                  public void onNext(
+                                      LeaseKeepAliveResponse 
leaseKeepAliveResponse) {
+                                    if (log.isDebugEnabled()) {
+                                      log.debug("On next: {}", 
leaseKeepAliveResponse);
+                                    }
+                                  }
+
+                                  @Override
+                                  public void onError(Throwable throwable) {
+                                    log.warn("Lease client error :", 
throwable);
+                                    
receivedSessionEvent(SessionEvent.SessionLost);
+                                  }
+
+                                  @Override
+                                  public void onCompleted() {
+                                    log.info("Etcd lease has expired");
+                                    
receivedSessionEvent(SessionEvent.SessionLost);
+                                  }
+                                });
+                  }
+                });
+
+    if (retryOnFailure) {
+      future.exceptionally(
+          ex -> {
+            log.warn("Failed to create Etcd lease. Retrying later", ex);
+            scheduleDelayedTask(1, TimeUnit.SECONDS, () -> createLease(true));
+            return null;
+          });
+    }
+
+    return future;
+  }
+
+  private void handleWatchResponse(WatchResponse watchResponse) {
+    for (WatchEvent we : watchResponse.getEvents()) {
+      String path = we.getKeyValue().getKey().toString(StandardCharsets.UTF_8);
+      if (we.getEventType() == WatchEvent.EventType.PUT) {
+        if (we.getKeyValue().getVersion() == 1) {
+          receivedNotification(new Notification(NotificationType.Created, 
path));
+          notifyParentChildrenChanged(path);
+        } else {
+          receivedNotification(new Notification(NotificationType.Modified, 
path));
+        }
+      } else if (we.getEventType() == WatchEvent.EventType.DELETE) {
+        receivedNotification(new Notification(NotificationType.Deleted, path));
+        notifyParentChildrenChanged(path);
+      }
+    }
+  }
+
+  @Override
+  protected void receivedSessionEvent(SessionEvent event) {
+    if (event == SessionEvent.SessionReestablished) {
+      // Re-create the lease before notifying that we are reconnected
+      createLease(true).thenRun(() -> super.receivedSessionEvent(event));
+    } else {
+      super.receivedSessionEvent(event);
+    }
+  }
+}
+
+@AllArgsConstructor
+@NoArgsConstructor
+@Data
+@Builder
+class EtcdConfig {
+  private boolean useTls;
+
+  private SslProvider tlsProvider;
+  private String tlsTrustCertsFilePath;
+  private String tlsKeyFilePath;
+  private String tlsCertificateFilePath;
+
+  private String authority;
+}
diff --git 
a/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.java
 
b/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.java
new file mode 100644
index 0000000..f3ec39a
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pulsar.metadata.impl;
+
+import org.apache.pulsar.metadata.api.MetadataStore;
+import org.apache.pulsar.metadata.api.MetadataStoreConfig;
+import org.apache.pulsar.metadata.api.MetadataStoreException;
+import org.apache.pulsar.metadata.api.MetadataStoreProvider;
+
+/**
+ * Etcd metadata store provider plugin.
+ *
+ * <p>To use this provider, add the shaded jar to the Pulsar classpath and 
configure the system
+ * property:
+ *
+ * <pre>
+ * 
-Dpulsar.metadata.store.providers=org.apache.pulsar.metadata.impl.EtcdMetadataStoreProvider
+ * </pre>
+ *
+ * <p>Then use {@code etcd:} URLs for your metadata store configuration.
+ */
+public class EtcdMetadataStoreProvider implements MetadataStoreProvider {
+
+  @Override
+  public String urlScheme() {
+    return EtcdMetadataStore.ETCD_SCHEME;
+  }
+
+  @Override
+  public MetadataStore create(
+      String metadataURL, MetadataStoreConfig metadataStoreConfig, boolean 
enableSessionWatcher)
+      throws MetadataStoreException {
+    return new EtcdMetadataStore(metadataURL, metadataStoreConfig, 
enableSessionWatcher);
+  }
+}
diff --git 
a/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.java
 
b/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.java
new file mode 100644
index 0000000..20b237f
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.java
@@ -0,0 +1,163 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pulsar.metadata.impl;
+
+import static 
org.apache.pulsar.common.util.Runnables.catchingAndLoggingThrowables;
+import io.etcd.jetcd.ByteSequence;
+import io.etcd.jetcd.Client;
+import io.netty.util.concurrent.DefaultThreadFactory;
+import java.nio.charset.StandardCharsets;
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.Executors;
+import java.util.concurrent.RejectedExecutionException;
+import java.util.concurrent.ScheduledExecutorService;
+import java.util.concurrent.ScheduledFuture;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
+import java.util.function.Consumer;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.pulsar.metadata.api.extended.SessionEvent;
+
+/** Monitor the Etcd session state every few seconds and send notifications. */
+@Slf4j
+public class EtcdSessionWatcher implements AutoCloseable {
+  private final Client client;
+
+  private SessionEvent currentStatus;
+  private final Consumer<SessionEvent> sessionListener;
+
+  // Maximum time to wait for Etcd lease to be re-connected to quorum (set to 
5/6 of
+  // SessionTimeout)
+  private final long monitorTimeoutMillis;
+
+  // Interval at which we check the state of the Etcd connection (set to 1/15 
of SessionTimeout)
+  private final long tickTimeMillis;
+
+  private final ScheduledExecutorService scheduler;
+  private final ScheduledFuture<?> task;
+
+  private long disconnectedAt = 0;
+
+  public EtcdSessionWatcher(
+      Client client, long sessionTimeoutMillis, Consumer<SessionEvent> 
sessionListener) {
+    this.client = client;
+    this.monitorTimeoutMillis = sessionTimeoutMillis * 5 / 6;
+    this.tickTimeMillis = sessionTimeoutMillis / 15;
+    this.sessionListener = sessionListener;
+
+    this.scheduler =
+        Executors.newSingleThreadScheduledExecutor(
+            new DefaultThreadFactory("metadata-store-etcd-session-watcher"));
+    this.task =
+        scheduler.scheduleAtFixedRate(
+            catchingAndLoggingThrowables(this::checkConnectionStatus),
+            tickTimeMillis,
+            tickTimeMillis,
+            TimeUnit.MILLISECONDS);
+    this.currentStatus = SessionEvent.SessionReestablished;
+  }
+
+  @Override
+  public void close() throws Exception {
+    task.cancel(true);
+    scheduler.shutdownNow();
+    scheduler.awaitTermination(10, TimeUnit.SECONDS);
+  }
+
+  // task that runs every TICK_TIME to check Etcd connection
+  private synchronized void checkConnectionStatus() {
+    try {
+      CompletableFuture<SessionEvent> future = new CompletableFuture<>();
+      client
+          .getKVClient()
+          .get(ByteSequence.from("/".getBytes(StandardCharsets.UTF_8)))
+          .thenRun(
+              () -> {
+                future.complete(SessionEvent.Reconnected);
+              })
+          .exceptionally(
+              ex -> {
+                future.complete(SessionEvent.ConnectionLost);
+                return null;
+              });
+
+      SessionEvent etcdClientState;
+      try {
+        etcdClientState = future.get(tickTimeMillis, TimeUnit.MILLISECONDS);
+      } catch (TimeoutException e) {
+        // Consider etcd disconnection if etcd operation takes more than 
TICK_TIME
+        etcdClientState = SessionEvent.ConnectionLost;
+      }
+
+      checkState(etcdClientState);
+    } catch (RejectedExecutionException | InterruptedException e) {
+      task.cancel(true);
+    } catch (Throwable t) {
+      log.warn("Error while checking Etcd connection status", t);
+    }
+  }
+
+  synchronized void setSessionInvalid() {
+    currentStatus = SessionEvent.SessionLost;
+  }
+
+  private void checkState(SessionEvent etcdClientState) {
+    switch (etcdClientState) {
+      case SessionLost:
+        if (currentStatus != SessionEvent.SessionLost) {
+          log.error("Etcd lease has expired");
+          currentStatus = SessionEvent.SessionLost;
+          sessionListener.accept(currentStatus);
+        }
+        break;
+
+      case ConnectionLost:
+        if (disconnectedAt == 0) {
+          disconnectedAt = System.nanoTime();
+        }
+
+        long timeRemainingMillis =
+            monitorTimeoutMillis
+                - TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - 
disconnectedAt);
+        if (timeRemainingMillis <= 0 && currentStatus != 
SessionEvent.SessionLost) {
+          log.error("Etcd lease keep-alive timeout. Notifying session is 
lost.");
+          currentStatus = SessionEvent.SessionLost;
+          sessionListener.accept(currentStatus);
+        } else if (currentStatus != SessionEvent.SessionLost) {
+          log.warn(
+              "Etcd client is disconnected. Waiting to reconnect, time 
remaining = {} seconds",
+              timeRemainingMillis / 1000.0);
+          if (currentStatus == SessionEvent.SessionReestablished) {
+            currentStatus = SessionEvent.ConnectionLost;
+            sessionListener.accept(currentStatus);
+          }
+        }
+        break;
+
+      default:
+        if (currentStatus != SessionEvent.SessionReestablished) {
+          log.info(
+              "Etcd client reconnection with server quorum. Current status: 
{}", currentStatus);
+          disconnectedAt = 0;
+
+          sessionListener.accept(SessionEvent.Reconnected);
+          if (currentStatus == SessionEvent.SessionLost) {
+            sessionListener.accept(SessionEvent.SessionReestablished);
+          }
+          currentStatus = SessionEvent.SessionReestablished;
+        }
+        break;
+    }
+  }
+}
diff --git 
a/pulsar-metadata-etcd-contrib/src/test/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreTest.java
 
b/pulsar-metadata-etcd-contrib/src/test/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreTest.java
new file mode 100644
index 0000000..ddb8714
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/src/test/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreTest.java
@@ -0,0 +1,172 @@
+/*
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pulsar.metadata.impl;
+
+import static org.testng.Assert.assertEquals;
+import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertTrue;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
+import com.google.common.io.Resources;
+import io.etcd.jetcd.launcher.EtcdCluster;
+import io.etcd.jetcd.test.EtcdClusterExtension;
+import java.net.URI;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.util.List;
+import java.util.Optional;
+import java.util.stream.Collectors;
+import lombok.Cleanup;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.pulsar.metadata.api.GetResult;
+import org.apache.pulsar.metadata.api.MetadataStore;
+import org.apache.pulsar.metadata.api.MetadataStoreConfig;
+import org.apache.pulsar.metadata.api.MetadataStoreException;
+import org.testng.annotations.Test;
+
+@Slf4j
+public class EtcdMetadataStoreTest {
+
+  private String getMetadataUrl(EtcdCluster etcdCluster) {
+    return "etcd:"
+        + etcdCluster.clientEndpoints().stream()
+            .map(URI::toString)
+            .collect(Collectors.joining(","));
+  }
+
+  private MetadataStore createStore(EtcdCluster etcdCluster) throws 
MetadataStoreException {
+    String metadataURL = getMetadataUrl(etcdCluster);
+    return new EtcdMetadataStore(metadataURL, 
MetadataStoreConfig.builder().build(), true);
+  }
+
+  @Test
+  public void testBasicOperations() throws Exception {
+    @Cleanup
+    EtcdCluster etcdCluster =
+        EtcdClusterExtension.builder()
+            .withClusterName("test-basic")
+            .withNodes(1)
+            .withSsl(false)
+            .build()
+            .cluster();
+    etcdCluster.start();
+
+    @Cleanup MetadataStore store = createStore(etcdCluster);
+
+    // Test put and get
+    store.put("/test", "value".getBytes(StandardCharsets.UTF_8), 
Optional.empty()).join();
+    assertTrue(store.exists("/test").join());
+
+    Optional<GetResult> result = store.get("/test").join();
+    assertTrue(result.isPresent());
+    assertEquals(new String(result.get().getValue(), StandardCharsets.UTF_8), 
"value");
+
+    // Test update
+    store
+        .put(
+            "/test",
+            "value2".getBytes(StandardCharsets.UTF_8),
+            Optional.of(result.get().getStat().getVersion()))
+        .join();
+    result = store.get("/test").join();
+    assertTrue(result.isPresent());
+    assertEquals(new String(result.get().getValue(), StandardCharsets.UTF_8), 
"value2");
+
+    // Test delete
+    store.delete("/test", Optional.empty()).join();
+    assertFalse(store.exists("/test").join());
+  }
+
+  @Test
+  public void testGetChildren() throws Exception {
+    @Cleanup
+    EtcdCluster etcdCluster =
+        EtcdClusterExtension.builder()
+            .withClusterName("test-children")
+            .withNodes(1)
+            .withSsl(false)
+            .build()
+            .cluster();
+    etcdCluster.start();
+
+    @Cleanup MetadataStore store = createStore(etcdCluster);
+
+    store.put("/parent/child1", "v1".getBytes(StandardCharsets.UTF_8), 
Optional.empty()).join();
+    store.put("/parent/child2", "v2".getBytes(StandardCharsets.UTF_8), 
Optional.empty()).join();
+    store.put("/parent/child3", "v3".getBytes(StandardCharsets.UTF_8), 
Optional.empty()).join();
+
+    List<String> children = store.getChildren("/parent").join();
+    assertEquals(children.size(), 3);
+    assertTrue(children.contains("child1"));
+    assertTrue(children.contains("child2"));
+    assertTrue(children.contains("child3"));
+  }
+
+  @Test
+  public void testCluster() throws Exception {
+    @Cleanup
+    EtcdCluster etcdCluster =
+        EtcdClusterExtension.builder()
+            .withClusterName("test-cluster")
+            .withNodes(3)
+            .withSsl(false)
+            .build()
+            .cluster();
+    etcdCluster.start();
+
+    @Cleanup MetadataStore store = createStore(etcdCluster);
+
+    store.put("/test", "value".getBytes(StandardCharsets.UTF_8), 
Optional.empty()).join();
+    assertTrue(store.exists("/test").join());
+  }
+
+  @Test
+  public void testClusterWithTls() throws Exception {
+    @Cleanup
+    EtcdCluster etcdCluster =
+        EtcdClusterExtension.builder()
+            .withClusterName("test-cluster-tls")
+            .withNodes(3)
+            .withSsl(true)
+            .build()
+            .cluster();
+    etcdCluster.start();
+
+    EtcdConfig etcdConfig =
+        EtcdConfig.builder()
+            .useTls(true)
+            .tlsProvider(null)
+            .authority("etcd0")
+            
.tlsTrustCertsFilePath(Resources.getResource("ssl/cert/ca.pem").getPath())
+            
.tlsKeyFilePath(Resources.getResource("ssl/cert/client-key-pk8.pem").getPath())
+            
.tlsCertificateFilePath(Resources.getResource("ssl/cert/client.pem").getPath())
+            .build();
+
+    Path etcdConfigPath = Files.createTempFile("etcd_config_cluster_ssl", 
".yml");
+    new ObjectMapper(new YAMLFactory()).writeValue(etcdConfigPath.toFile(), 
etcdConfig);
+
+    String metadataURL = getMetadataUrl(etcdCluster);
+
+    @Cleanup
+    MetadataStore store =
+        new EtcdMetadataStore(
+            metadataURL,
+            
MetadataStoreConfig.builder().configFilePath(etcdConfigPath.toString()).build(),
+            true);
+
+    store.put("/test", "value".getBytes(StandardCharsets.UTF_8), 
Optional.empty()).join();
+    assertTrue(store.exists("/test").join());
+  }
+}
diff --git a/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/ca.pem 
b/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/ca.pem
new file mode 100644
index 0000000..34a8593
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/ca.pem
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE-----
+MIIC6jCCAdKgAwIBAgIUXHRN1WrCXk813Zz/mWdg3YAu9OIwDQYJKoZIhvcNAQEL
+BQAwDTELMAkGA1UEAxMCQ0EwHhcNMjIwNDI5MDQyMjAwWhcNMjcwNDI4MDQyMjAw
+WjANMQswCQYDVQQDEwJDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+AMlF30dWtxQLGGo55GGAElYLzgWPY4ha1njX4vR2bAxesbOft73pqWeRWMPbJsyQ
+cUcFe6+oPEyW11uFdNw647pN2PVUmX5Obsmlk97c69LmFe4WEfZDN0cm4pjdXG7V
+BCyuyyr3YN2PoB67xT00NyNIK1yOIHghnw4dO5j2BZh/EqrQGNtqiW/LBQWiKu+n
+bLbipl+eWmxCVl0BuQdgl8bmGGrHsncwCTZPMvsxHyVWbOKVoDXAuAqM40HJdjbK
+JF/DyBPzmgsSMGmwcNTjRRx3ApRcFu4p154qdX2BPknut+PFOrDlcArdsExmJwST
+qi2cNb7mWWF1FMHYKdGPuqUCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1Ud
+EwEB/wQFMAMBAf8wHQYDVR0OBBYEFB0oynraPRsiMaCbp4VFErPtqn79MA0GCSqG
+SIb3DQEBCwUAA4IBAQAsOdb6+QjABRa7LMIERRy45V1l3lVy04WzLUWEGOeakakE
+I58NDopYY2NDfGPi/gPkErAo8Jo8ruRKPccguHlTYGTwjUBjKGBSySMpalw5DhN0
+iygHdKh9qzqL1ChqcQsQPlmhKgsAYkZyQzD2Gh6c/GpNMe6/NUmjlg0KcnKY3+Vx
+kzy3qWXxiNfSywJlbk6UVWOy0cCxHV+fE0gzy+DgNrcWm6euSPAD4Qz8kXvQKevB
+syTpCxqsKNKG+aVZDoW2BTyrROnnk/lqZQ7k4sKZTcYgTrpNSgylbg7rxVqOIyBk
+G+jAW18vmOlsZpXE306Pqsng6csUJ3IXoHqaBbrm
+-----END CERTIFICATE-----
diff --git 
a/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/client-key-pk8.pem 
b/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/client-key-pk8.pem
new file mode 100644
index 0000000..a7fec9b
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/client-key-pk8.pem
@@ -0,0 +1,28 @@
+-----BEGIN PRIVATE KEY-----
+MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC/RbW6dJqk2+BN
+SZKAs1M0RQt6PrhIHHhxBBPXFM3XOqKwacrQihuZQSGLgaxfzXbRejwQ9VBg5Ia/
+tOokwDY3tK9Kp4J0bsqgNXZKTRYtnJ4JYh9566jsD47Qpj6xuQZmo3b1QKLEh+Fh
+9buWTEvvdUY8AQTASwvOGAWyzrZgaKuagQQNkZ49TM8gtsy9uJPWS2PZQpW/qk56
+5jRck8Xb8COQ0QV2wPiqwmEtA7/jEeQViQ49HLdfBTi90Hh4Q8XBv8TPW+sQpN5R
+5fvZEz+iwrGm20kIrtVQ+hMCkbywTlA5rSGW7onnakDyqybt10dBzn609/wg5Dee
+LjMZ3dEvAgMBAAECggEAR1r5NcsEWhZQ8mRNDEhZ9PkBFCTL2NMON5M+15FCTVXp
+lYiSCgRL0XuTyRiiNsdO2U0RlX3+83atsl0KsJUoZNW6Q06Eg21FmEj5jTR+3ps7
+9eIuPeylgxM2wy4R23lcIvQ+j7YCQvEyKrpitepWtcl5Xy8+F4Knr8YUciVdsk8T
+a2DxkjXRXG6RW71Hqdd4bpXszM2E22trjKgouy/PV4LOhSCzyDdwAq4fKLBmS7l5
+2j57Ag0/hDZ7L4nW6jtRG1NBonBk7FhPrd4UCGqxaYwfTYvDWDKpQkJgbkWSYCwc
+pUVAqreYi5+udKhL0dXsKrZGE9I20tQlZkaoBBgreQKBgQDAmu73weinuMp9nC6M
+gSXQxuWL02ybEQFsZioP8oGSP+wZDCrSn1HD52iSSZqEoNLoYm0u8u3D9FbWoiw/
+n8BPqTLjLXUozhDdVuvg6YkKxHG2So7ve04UOXBQqCd/pOuNXRUUYUQ+FMq8vmjD
+dRqVo1gH/qUExa4SeTzoOWUXawKBgQD+Onb9+ExPweZjy+T0eAO1FMFP//KsNwSI
+vlf22jUbCqiu6Pem1m/31Rju04AGydWhdHgd+7PG8/arVyLcgNQtTotXtD7zTCVe
+jkr42R/zbG46c0/z8brUXpYOHOjdgFbY62vwWjykulFsruf36hit9/D+tKVNOgep
+tduFS8DSTQKBgC+oJmj3efHGL5RVCM+LRSgbjsDCV6Um2AtSXCYGAzmEx46LDC2B
+bmHi6GUKAUm/4W/OquVrBpnt427IQdqcVKFhZE4B+XNXSaT61PKZ1mbrpJdOa3+m
+KvOmIrxSXzOeQwp/da/NQW17B48cLh/u4d0Uxbt0rrA3mZLInOF5EiJxAoGBAPGS
+GHOntsuq0gNOQZbTW6J7wF0GNk/ST6qoQ+m62u+BJ1xc3sZXyTlT8kcuDd9ldmve
+wiyred64/1E8kVG50OPkWJ/UFGUXnALHbxIbLzMde3hrDjQdJIyb/DYY3mVriBrD
+SWOwOyPEL474fE+k0CKvEP7WJKTHWXS364ozu1uZAoGBAMBXRwDQZgs+Xn3lTohu
+1NLlHhNIuUzcb+4ROn2StoxZS3mEv2W0KWRTzNJGRr4+kbLMcY7K1jOk0qm6fwcG
+HAJnKkxu9E3hFQVUT14CIKPwi3TQCNjmZqj+LaEwe+75w4rXTajwl3WY58KngA5/
+XVn2W3KsXAKOAteL/07xtDEi
+-----END PRIVATE KEY-----
diff --git 
a/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/client.pem 
b/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/client.pem
new file mode 100644
index 0000000..6e3d149
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/src/test/resources/ssl/cert/client.pem
@@ -0,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDPDCCAiSgAwIBAgIUdYkf8VBmJYG6HvKxh84BHYaTIH8wDQYJKoZIhvcNAQEL
+BQAwDTELMAkGA1UEAxMCQ0EwIBcNMjIwNDI5MDQyMjAwWhgPMjEyMjA0MDUwNDIy
+MDBaMBExDzANBgNVBAMTBmNsaWVudDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBAL9Ftbp0mqTb4E1JkoCzUzRFC3o+uEgceHEEE9cUzdc6orBpytCKG5lB
+IYuBrF/NdtF6PBD1UGDkhr+06iTANje0r0qngnRuyqA1dkpNFi2cngliH3nrqOwP
+jtCmPrG5BmajdvVAosSH4WH1u5ZMS+91RjwBBMBLC84YBbLOtmBoq5qBBA2Rnj1M
+zyC2zL24k9ZLY9lClb+qTnrmNFyTxdvwI5DRBXbA+KrCYS0Dv+MR5BWJDj0ct18F
+OL3QeHhDxcG/xM9b6xCk3lHl+9kTP6LCsabbSQiu1VD6EwKRvLBOUDmtIZbuiedq
+QPKrJu3XR0HOfrT3/CDkN54uMxnd0S8CAwEAAaOBjTCBijAOBgNVHQ8BAf8EBAMC
+BaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAw
+HQYDVR0OBBYEFB/UlCHqPmkA3xcYzddO9kD1w8o1MB8GA1UdIwQYMBaAFB0oynra
+PRsiMaCbp4VFErPtqn79MAsGA1UdEQQEMAKCADANBgkqhkiG9w0BAQsFAAOCAQEA
+AneFIIHBZ21J24+lln995ofX+92Yeu528IVy1WJtTGIpHVN6Fc+jZbsAZqzdhDDd
+q9pKawKlDR2bW6mg7ItF2coYprMoLtHeFAwSUIg5WcMFUgGHxITFDQlscD2mR54Y
+I1otVWegrL2PDyKs2uk5B4Jwm+O/0fbyG+D3FIje9y++gh6Oqi/uwn8YUgnLl/4e
+Yf8POmMrUcOmJn4tXX4y6HtacNR3n0leby8T1dBShNAESuBdmEo8bmgAADh/brfP
+kzGHBdO+AyHEs87TRMZ4ofhspM6m1ZNyazy861xhoYjUcjIoD4vaVsEGIRT9/2HM
+4l8oq0OyarhZRLIpJ11SJQ==
+-----END CERTIFICATE-----
diff --git a/pulsar-metadata-etcd-contrib/target/.plxarc 
b/pulsar-metadata-etcd-contrib/target/.plxarc
new file mode 100644
index 0000000..67ea6ee
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/target/.plxarc
@@ -0,0 +1 @@
+maven-shared-archive-resources
\ No newline at end of file
diff --git a/pulsar-metadata-etcd-contrib/target/classes/META-INF/DEPENDENCIES 
b/pulsar-metadata-etcd-contrib/target/classes/META-INF/DEPENDENCIES
new file mode 100644
index 0000000..adeaee5
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/target/classes/META-INF/DEPENDENCIES
@@ -0,0 +1,99 @@
+// ------------------------------------------------------------------
+// Transitive dependencies of this project determined from the
+// maven pom organized by organization.
+// ------------------------------------------------------------------
+
+Pulsar Metadata Etcd Contrib
+
+
+From: 'an unknown organization'
+  - Google Android Annotations Library (http://source.android.com/) 
com.google.android:annotations:jar:4.1.1.4
+    License: Apache 2.0  (http://www.apache.org/licenses/LICENSE-2.0)
+  - FindBugs-jsr305 (http://findbugs.sourceforge.net/) 
com.google.code.findbugs:jsr305:jar:3.0.2
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Gson (https://github.com/google/gson/gson) 
com.google.code.gson:gson:jar:2.8.9
+    License: Apache-2.0  (https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Guava InternalFutureFailureAccess and InternalFutures 
(https://github.com/google/guava/failureaccess) 
com.google.guava:failureaccess:bundle:1.0.2
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Guava: Google Core Libraries for Java (https://github.com/google/guava) 
com.google.guava:guava:bundle:33.0.0-jre
+    License: Apache License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Guava ListenableFuture only 
(https://github.com/google/guava/listenablefuture) 
com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Protocol Buffers [Core] 
(https://developers.google.com/protocol-buffers/protobuf-java/) 
com.google.protobuf:protobuf-java:jar:3.24.0
+    License: BSD-3-Clause  (https://opensource.org/licenses/BSD-3-Clause)
+  - Protocol Buffers [Util] 
(https://developers.google.com/protocol-buffers/protobuf-java-util/) 
com.google.protobuf:protobuf-java-util:jar:3.25.5
+    License: BSD-3-Clause  (https://opensource.org/licenses/BSD-3-Clause)
+  - Failsafe (https://failsafe.dev/failsafe) dev.failsafe:failsafe:jar:3.3.2
+    License: Apache License, Version 2.0  
(http://apache.org/licenses/LICENSE-2.0)
+  - jetcd-api (https://github.com/etcd-io/jetcd) io.etcd:jetcd-api:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jetcd-common (https://github.com/etcd-io/jetcd) 
io.etcd:jetcd-common:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jetcd-core (https://github.com/etcd-io/jetcd) io.etcd:jetcd-core:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jetcd-grpc (https://github.com/etcd-io/jetcd) io.etcd:jetcd-grpc:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - io.grpc:grpc-api (https://github.com/grpc/grpc-java) 
io.grpc:grpc-api:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-context (https://github.com/grpc/grpc-java) 
io.grpc:grpc-context:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-core (https://github.com/grpc/grpc-java) 
io.grpc:grpc-core:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-grpclb (https://github.com/grpc/grpc-java) 
io.grpc:grpc-grpclb:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-netty-shaded (https://github.com/grpc/grpc-java) 
io.grpc:grpc-netty-shaded:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-protobuf (https://github.com/grpc/grpc-java) 
io.grpc:grpc-protobuf:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-protobuf-lite (https://github.com/grpc/grpc-java) 
io.grpc:grpc-protobuf-lite:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-stub (https://github.com/grpc/grpc-java) 
io.grpc:grpc-stub:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-util (https://github.com/grpc/grpc-java) 
io.grpc:grpc-util:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - perfmark:perfmark-api (https://github.com/perfmark/perfmark) 
io.perfmark:perfmark-api:jar:0.26.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - Checker Qual (https://checkerframework.org/) 
org.checkerframework:checker-qual:jar:3.41.0
+    License: The MIT License  (http://opensource.org/licenses/MIT)
+  - Project Lombok (https://projectlombok.org) 
org.projectlombok:lombok:jar:1.18.32
+    License: The MIT License  (https://projectlombok.org/LICENSE)
+  - SnakeYAML (https://bitbucket.org/snakeyaml/snakeyaml) 
org.yaml:snakeyaml:bundle:2.2
+    License: Apache License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Eclipse'
+  - Vert.x Core 
(http://nexus.sonatype.org/oss-repository-hosting.html/vertx-parent/vertx-core) 
io.vertx:vertx-core:jar:4.5.1
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)    License: Eclipse Public 
License - v 2.0  (http://www.eclipse.org/legal/epl-v20.html)
+  - Vert.x gRPC 
(http://nexus.sonatype.org/oss-repository-hosting.html/vertx-parent/vertx-ext/vertx-ext-parent/vertx-grpc-parent/vertx-grpc)
 io.vertx:vertx-grpc:jar:4.5.1
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)    License: Eclipse Public 
License - v 1.0  (http://www.eclipse.org/legal/epl-v10.html)
+
+From: 'FasterXML' (http://fasterxml.com/)
+  - Jackson-annotations (https://github.com/FasterXML/jackson) 
com.fasterxml.jackson.core:jackson-annotations:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Jackson-core (https://github.com/FasterXML/jackson-core) 
com.fasterxml.jackson.core:jackson-core:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jackson-databind (https://github.com/FasterXML/jackson) 
com.fasterxml.jackson.core:jackson-databind:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Jackson-dataformat-YAML 
(https://github.com/FasterXML/jackson-dataformats-text) 
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Google LLC' (http://www.google.com)
+  - error-prone annotations (https://errorprone.info/error_prone_annotations) 
com.google.errorprone:error_prone_annotations:jar:2.20.0
+    License: Apache 2.0  (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Google LLC'
+  - proto-google-common-protos 
(https://github.com/googleapis/sdk-platform-java) 
com.google.api.grpc:proto-google-common-protos:jar:2.22.0
+    License: Apache-2.0  (https://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'MojoHaus' (https://www.mojohaus.org)
+  - Animal Sniffer Annotations 
(https://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations) 
org.codehaus.mojo:animal-sniffer-annotations:jar:1.24
+    License: MIT license  (https://spdx.org/licenses/MIT.txt)
+
+From: 'QOS.ch' (http://www.qos.ch)
+  - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:2.0.13
+    License: MIT License  (http://www.opensource.org/licenses/mit-license.php)
+  - SLF4J Simple Provider (http://www.slf4j.org) 
org.slf4j:slf4j-simple:jar:2.0.13
+    License: MIT License  (http://www.opensource.org/licenses/mit-license.php)
+
+
+
+
diff --git a/pulsar-metadata-etcd-contrib/target/classes/META-INF/LICENSE 
b/pulsar-metadata-etcd-contrib/target/classes/META-INF/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/target/classes/META-INF/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/pulsar-metadata-etcd-contrib/target/classes/META-INF/NOTICE 
b/pulsar-metadata-etcd-contrib/target/classes/META-INF/NOTICE
new file mode 100644
index 0000000..fd39e2b
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/target/classes/META-INF/NOTICE
@@ -0,0 +1,8 @@
+
+Pulsar Metadata Etcd Contrib
+Copyright 2025-2022 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdConfig$EtcdConfigBuilder.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdConfig$EtcdConfigBuilder.class
new file mode 100644
index 0000000..b175f98
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdConfig$EtcdConfigBuilder.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdConfig.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdConfig.class
new file mode 100644
index 0000000..0286f68
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdConfig.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore$1.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore$1.class
new file mode 100644
index 0000000..e57e854
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore$1.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore$2.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore$2.class
new file mode 100644
index 0000000..6c6ffee
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore$2.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore.class
new file mode 100644
index 0000000..fa7eae4
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStore.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.class
new file mode 100644
index 0000000..94be12e
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdSessionWatcher$1.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdSessionWatcher$1.class
new file mode 100644
index 0000000..fe285e9
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdSessionWatcher$1.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.class
 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.class
new file mode 100644
index 0000000..782e718
Binary files /dev/null and 
b/pulsar-metadata-etcd-contrib/target/classes/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.class
 differ
diff --git 
a/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/DEPENDENCIES
 
b/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/DEPENDENCIES
new file mode 100644
index 0000000..adeaee5
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/DEPENDENCIES
@@ -0,0 +1,99 @@
+// ------------------------------------------------------------------
+// Transitive dependencies of this project determined from the
+// maven pom organized by organization.
+// ------------------------------------------------------------------
+
+Pulsar Metadata Etcd Contrib
+
+
+From: 'an unknown organization'
+  - Google Android Annotations Library (http://source.android.com/) 
com.google.android:annotations:jar:4.1.1.4
+    License: Apache 2.0  (http://www.apache.org/licenses/LICENSE-2.0)
+  - FindBugs-jsr305 (http://findbugs.sourceforge.net/) 
com.google.code.findbugs:jsr305:jar:3.0.2
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Gson (https://github.com/google/gson/gson) 
com.google.code.gson:gson:jar:2.8.9
+    License: Apache-2.0  (https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Guava InternalFutureFailureAccess and InternalFutures 
(https://github.com/google/guava/failureaccess) 
com.google.guava:failureaccess:bundle:1.0.2
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Guava: Google Core Libraries for Java (https://github.com/google/guava) 
com.google.guava:guava:bundle:33.0.0-jre
+    License: Apache License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Guava ListenableFuture only 
(https://github.com/google/guava/listenablefuture) 
com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Protocol Buffers [Core] 
(https://developers.google.com/protocol-buffers/protobuf-java/) 
com.google.protobuf:protobuf-java:jar:3.24.0
+    License: BSD-3-Clause  (https://opensource.org/licenses/BSD-3-Clause)
+  - Protocol Buffers [Util] 
(https://developers.google.com/protocol-buffers/protobuf-java-util/) 
com.google.protobuf:protobuf-java-util:jar:3.25.5
+    License: BSD-3-Clause  (https://opensource.org/licenses/BSD-3-Clause)
+  - Failsafe (https://failsafe.dev/failsafe) dev.failsafe:failsafe:jar:3.3.2
+    License: Apache License, Version 2.0  
(http://apache.org/licenses/LICENSE-2.0)
+  - jetcd-api (https://github.com/etcd-io/jetcd) io.etcd:jetcd-api:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jetcd-common (https://github.com/etcd-io/jetcd) 
io.etcd:jetcd-common:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jetcd-core (https://github.com/etcd-io/jetcd) io.etcd:jetcd-core:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jetcd-grpc (https://github.com/etcd-io/jetcd) io.etcd:jetcd-grpc:jar:0.7.7
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+  - io.grpc:grpc-api (https://github.com/grpc/grpc-java) 
io.grpc:grpc-api:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-context (https://github.com/grpc/grpc-java) 
io.grpc:grpc-context:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-core (https://github.com/grpc/grpc-java) 
io.grpc:grpc-core:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-grpclb (https://github.com/grpc/grpc-java) 
io.grpc:grpc-grpclb:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-netty-shaded (https://github.com/grpc/grpc-java) 
io.grpc:grpc-netty-shaded:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-protobuf (https://github.com/grpc/grpc-java) 
io.grpc:grpc-protobuf:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-protobuf-lite (https://github.com/grpc/grpc-java) 
io.grpc:grpc-protobuf-lite:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-stub (https://github.com/grpc/grpc-java) 
io.grpc:grpc-stub:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - io.grpc:grpc-util (https://github.com/grpc/grpc-java) 
io.grpc:grpc-util:jar:1.60.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - perfmark:perfmark-api (https://github.com/perfmark/perfmark) 
io.perfmark:perfmark-api:jar:0.26.0
+    License: Apache 2.0  (https://opensource.org/licenses/Apache-2.0)
+  - Checker Qual (https://checkerframework.org/) 
org.checkerframework:checker-qual:jar:3.41.0
+    License: The MIT License  (http://opensource.org/licenses/MIT)
+  - Project Lombok (https://projectlombok.org) 
org.projectlombok:lombok:jar:1.18.32
+    License: The MIT License  (https://projectlombok.org/LICENSE)
+  - SnakeYAML (https://bitbucket.org/snakeyaml/snakeyaml) 
org.yaml:snakeyaml:bundle:2.2
+    License: Apache License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Eclipse'
+  - Vert.x Core 
(http://nexus.sonatype.org/oss-repository-hosting.html/vertx-parent/vertx-core) 
io.vertx:vertx-core:jar:4.5.1
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)    License: Eclipse Public 
License - v 2.0  (http://www.eclipse.org/legal/epl-v20.html)
+  - Vert.x gRPC 
(http://nexus.sonatype.org/oss-repository-hosting.html/vertx-parent/vertx-ext/vertx-ext-parent/vertx-grpc-parent/vertx-grpc)
 io.vertx:vertx-grpc:jar:4.5.1
+    License: The Apache Software License, Version 2.0  
(http://www.apache.org/licenses/LICENSE-2.0.txt)    License: Eclipse Public 
License - v 1.0  (http://www.eclipse.org/legal/epl-v10.html)
+
+From: 'FasterXML' (http://fasterxml.com/)
+  - Jackson-annotations (https://github.com/FasterXML/jackson) 
com.fasterxml.jackson.core:jackson-annotations:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Jackson-core (https://github.com/FasterXML/jackson-core) 
com.fasterxml.jackson.core:jackson-core:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - jackson-databind (https://github.com/FasterXML/jackson) 
com.fasterxml.jackson.core:jackson-databind:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+  - Jackson-dataformat-YAML 
(https://github.com/FasterXML/jackson-dataformats-text) 
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.17.2
+    License: The Apache Software License, Version 2.0  
(https://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Google LLC' (http://www.google.com)
+  - error-prone annotations (https://errorprone.info/error_prone_annotations) 
com.google.errorprone:error_prone_annotations:jar:2.20.0
+    License: Apache 2.0  (http://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'Google LLC'
+  - proto-google-common-protos 
(https://github.com/googleapis/sdk-platform-java) 
com.google.api.grpc:proto-google-common-protos:jar:2.22.0
+    License: Apache-2.0  (https://www.apache.org/licenses/LICENSE-2.0.txt)
+
+From: 'MojoHaus' (https://www.mojohaus.org)
+  - Animal Sniffer Annotations 
(https://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations) 
org.codehaus.mojo:animal-sniffer-annotations:jar:1.24
+    License: MIT license  (https://spdx.org/licenses/MIT.txt)
+
+From: 'QOS.ch' (http://www.qos.ch)
+  - SLF4J API Module (http://www.slf4j.org) org.slf4j:slf4j-api:jar:2.0.13
+    License: MIT License  (http://www.opensource.org/licenses/mit-license.php)
+  - SLF4J Simple Provider (http://www.slf4j.org) 
org.slf4j:slf4j-simple:jar:2.0.13
+    License: MIT License  (http://www.opensource.org/licenses/mit-license.php)
+
+
+
+
diff --git 
a/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/LICENSE
 
b/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/LICENSE
@@ -0,0 +1,202 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git 
a/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/NOTICE
 
b/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/NOTICE
new file mode 100644
index 0000000..fd39e2b
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/target/maven-shared-archive-resources/META-INF/NOTICE
@@ -0,0 +1,8 @@
+
+Pulsar Metadata Etcd Contrib
+Copyright 2025-2022 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+
diff --git 
a/pulsar-metadata-etcd-contrib/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
 
b/pulsar-metadata-etcd-contrib/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
new file mode 100644
index 0000000..19aacfc
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
@@ -0,0 +1,8 @@
+org/apache/pulsar/metadata/impl/EtcdMetadataStore$1.class
+org/apache/pulsar/metadata/impl/EtcdSessionWatcher.class
+org/apache/pulsar/metadata/impl/EtcdConfig.class
+org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.class
+org/apache/pulsar/metadata/impl/EtcdMetadataStore.class
+org/apache/pulsar/metadata/impl/EtcdSessionWatcher$1.class
+org/apache/pulsar/metadata/impl/EtcdConfig$EtcdConfigBuilder.class
+org/apache/pulsar/metadata/impl/EtcdMetadataStore$2.class
diff --git 
a/pulsar-metadata-etcd-contrib/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
 
b/pulsar-metadata-etcd-contrib/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
new file mode 100644
index 0000000..7d79b66
--- /dev/null
+++ 
b/pulsar-metadata-etcd-contrib/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
@@ -0,0 +1,3 @@
+/Users/mmerli/prg/pulsar-java-contrib/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
+/Users/mmerli/prg/pulsar-java-contrib/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.java
+/Users/mmerli/prg/pulsar-java-contrib/pulsar-metadata-etcd-contrib/src/main/java/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.java
diff --git a/pulsar-metadata-etcd-contrib/target/spotless-index 
b/pulsar-metadata-etcd-contrib/target/spotless-index
new file mode 100644
index 0000000..eba2012
--- /dev/null
+++ b/pulsar-metadata-etcd-contrib/target/spotless-index
@@ -0,0 +1,6 @@
+2f0rQ2My722NMDiVdMLQmwaC0uwXNbEDS/Y9/h4SDVA=
+pom.xml 2026-03-17T16:17:56.223403543Z
+src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java 
2026-03-17T16:17:56.141360643Z
+src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreProvider.java 
2026-03-17T16:15:23.132796353Z
+src/main/java/org/apache/pulsar/metadata/impl/EtcdSessionWatcher.java 
2026-03-17T16:15:13.893294291Z
+src/test/java/org/apache/pulsar/metadata/impl/EtcdMetadataStoreTest.java 
2026-03-17T16:17:55.963684235Z

Reply via email to