From a51e89f82029b7e8f759352eadb13bf477cf4a9d Mon Sep 17 00:00:00 2001 From: horizonzy Date: Wed, 25 Oct 2023 15:59:22 +0800 Subject: [PATCH] Fix checkstyle. --- .../rackawareness/IsolatedBookieEnsemblePlacementPolicy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pulsar-broker-common/src/main/java/org/apache/pulsar/bookie/rackawareness/IsolatedBookieEnsemblePlacementPolicy.java b/pulsar-broker-common/src/main/java/org/apache/pulsar/bookie/rackawareness/IsolatedBookieEnsemblePlacementPolicy.java index 37ea5632e5ca7..9062c25a21ce0 100644 --- a/pulsar-broker-common/src/main/java/org/apache/pulsar/bookie/rackawareness/IsolatedBookieEnsemblePlacementPolicy.java +++ b/pulsar-broker-common/src/main/java/org/apache/pulsar/bookie/rackawareness/IsolatedBookieEnsemblePlacementPolicy.java @@ -197,7 +197,8 @@ private Set getBlacklistedBookiesWithIsolationGroups(int ensembleSize, try { if (bookieMappingCache != null) { Optional optional = - bookieMappingCache.get(BookieRackAffinityMapping.BOOKIE_INFO_ROOT_PATH).get(30, TimeUnit.SECONDS); + bookieMappingCache.get(BookieRackAffinityMapping.BOOKIE_INFO_ROOT_PATH) + .get(30, TimeUnit.SECONDS); if (!optional.isPresent()) { throw new KeeperException.NoNodeException(ZkBookieRackAffinityMapping.BOOKIE_INFO_ROOT_PATH); }