mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
Fix NullPointerException of checking namespace and topic deduplication status.
This commit is contained in:
parent
647bd7d430
commit
eb5f42f46d
@ -461,7 +461,7 @@ public class ReadyPulsarOp implements OpDispenser<PulsarOp> {
|
|||||||
try {
|
try {
|
||||||
nsMsgDedup = pulsarAdmin.namespaces().getDeduplicationStatus(namespace);
|
nsMsgDedup = pulsarAdmin.namespaces().getDeduplicationStatus(namespace);
|
||||||
}
|
}
|
||||||
catch (PulsarAdminException pae) {
|
catch (Exception e) {
|
||||||
// it is fine if we're unable to check namespace level setting; use default
|
// it is fine if we're unable to check namespace level setting; use default
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -471,7 +471,7 @@ public class ReadyPulsarOp implements OpDispenser<PulsarOp> {
|
|||||||
try {
|
try {
|
||||||
topicMsgDedup = pulsarAdmin.topics().getDeduplicationStatus(topic);
|
topicMsgDedup = pulsarAdmin.topics().getDeduplicationStatus(topic);
|
||||||
}
|
}
|
||||||
catch (PulsarAdminException pae) {
|
catch (Exception e) {
|
||||||
// it is fine if we're unable to check topic level setting; use default
|
// it is fine if we're unable to check topic level setting; use default
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user