This is an automated email from the ASF dual-hosted git repository.
eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 14ef56f BookieId can not be cast to BookieSocketAddress (#2843)
14ef56f is described below
commit 14ef56fb7dd99c59b8c05df8c4faef1ef2b06c67
Author: Prashant Kumar <[email protected]>
AuthorDate: Fri Oct 22 14:58:40 2021 -0700
BookieId can not be cast to BookieSocketAddress (#2843)
Co-authored-by: Prashant Kumar <[email protected]>
---
.../src/main/java/org/apache/bookkeeper/proto/BookieClientImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieClientImpl.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieClientImpl.java
index 03e3c06..1ae3205 100644
---
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieClientImpl.java
+++
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/BookieClientImpl.java
@@ -655,7 +655,7 @@ public class BookieClientImpl implements BookieClient,
PerChannelBookieClientFac
ScheduledExecutorService scheduler =
Executors.newSingleThreadScheduledExecutor(
new DefaultThreadFactory("BookKeeperClientScheduler"));
BookieClientImpl bc = new BookieClientImpl(new ClientConfiguration(),
eventLoopGroup,
- null, executor, scheduler, NullStatsLogger.INSTANCE, b ->
BookieSocketAddress.class.cast(b));
+ null, executor, scheduler, NullStatsLogger.INSTANCE,
BookieSocketAddress.LEGACY_BOOKIEID_RESOLVER);
BookieId addr = new BookieSocketAddress(args[0],
Integer.parseInt(args[1])).toBookieId();
for (int i = 0; i < 100000; i++) {