Skip to content

Commit

Permalink
BookieId can not be cast to BookieSocketAddress (#2843)
Browse files Browse the repository at this point in the history
Co-authored-by: Prashant Kumar <prashantk@splunk.com>
  • Loading branch information
pkumar-singh and Prashant Kumar authored Oct 22, 2021
1 parent e10f3fe commit 14ef56f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ public void writeComplete(int rc, long ledger, long entry, BookieId addr, Object
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++) {
Expand Down

0 comments on commit 14ef56f

Please sign in to comment.