|
@@ -183,14 +183,16 @@ class BPOfferService {
|
|
|
return nameserviceId;
|
|
|
}
|
|
|
|
|
|
- String getBlockPoolId() {
|
|
|
+ String getBlockPoolId(boolean quiet) {
|
|
|
readLock();
|
|
|
try {
|
|
|
if (bpNSInfo != null) {
|
|
|
return bpNSInfo.getBlockPoolID();
|
|
|
} else {
|
|
|
- LOG.warn("Block pool ID needed, but service not yet registered with " +
|
|
|
- "NN, trace:", new Exception());
|
|
|
+ if (!quiet) {
|
|
|
+ LOG.warn("Block pool ID needed, but service not yet registered with "
|
|
|
+ + "NN, trace:", new Exception());
|
|
|
+ }
|
|
|
return null;
|
|
|
}
|
|
|
} finally {
|
|
@@ -198,6 +200,10 @@ class BPOfferService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ String getBlockPoolId() {
|
|
|
+ return getBlockPoolId(false);
|
|
|
+ }
|
|
|
+
|
|
|
boolean hasBlockPoolId() {
|
|
|
return getNamespaceInfo() != null;
|
|
|
}
|