Skip to content

Commit

Permalink
Remove catching NamingException. (apache#12725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technoboy- authored and eolivelli committed Nov 29, 2021
1 parent 8d17cfb commit 85580f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Expand Up @@ -1353,7 +1353,7 @@ public void openLedgerComplete(ManagedLedger ledger, Object ctx) {

return null;
});
} catch (NamingException | PulsarServerException e) {
} catch (PulsarServerException e) {
log.warn("Failed to create topic {}-{}", topic, e.getMessage());
pulsar.getExecutor().execute(() -> topics.remove(topic, topicFuture));
topicFuture.completeExceptionally(e);
Expand Down
Expand Up @@ -249,7 +249,7 @@ public void reset() {
}
}

public PersistentTopic(String topic, ManagedLedger ledger, BrokerService brokerService) throws NamingException {
public PersistentTopic(String topic, ManagedLedger ledger, BrokerService brokerService) {
super(topic, brokerService);
this.ledger = ledger;
this.subscriptions = new ConcurrentOpenHashMap<>(16, 1);
Expand Down
Expand Up @@ -23,12 +23,10 @@
import org.apache.bookkeeper.mledger.ManagedLedger;
import org.apache.pulsar.broker.PulsarServerException;
import org.apache.pulsar.broker.service.BrokerService;
import org.apache.pulsar.broker.service.BrokerServiceException;

public class SystemTopic extends PersistentTopic {

public SystemTopic(String topic, ManagedLedger ledger, BrokerService brokerService)
throws BrokerServiceException.NamingException, PulsarServerException {
public SystemTopic(String topic, ManagedLedger ledger, BrokerService brokerService) throws PulsarServerException {
super(topic, ledger, brokerService);
}

Expand Down

0 comments on commit 85580f2

Please sign in to comment.