Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove catching NamingException. #12725

Merged
merged 2 commits into from Nov 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -250,7 +250,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