HDFS-16305.Record the remote NameNode address when the rolling log is triggered. (#3629)
This commit is contained in:
parent
1c1cf64616
commit
3d692c0936
@ -413,6 +413,8 @@ Callable<Void> getNameNodeProxy() {
|
|||||||
return new MultipleNameNodeProxy<Void>() {
|
return new MultipleNameNodeProxy<Void>() {
|
||||||
@Override
|
@Override
|
||||||
protected Void doWork() throws IOException {
|
protected Void doWork() throws IOException {
|
||||||
|
LOG.info("Triggering log rolling to the remote NameNode, " +
|
||||||
|
"active NameNode = {}", currentNN.getIpcAddress());
|
||||||
cachedActiveProxy.rollEditLog();
|
cachedActiveProxy.rollEditLog();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -424,7 +426,6 @@ protected Void doWork() throws IOException {
|
|||||||
*/
|
*/
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
void triggerActiveLogRoll() {
|
void triggerActiveLogRoll() {
|
||||||
LOG.info("Triggering log roll on remote NameNode");
|
|
||||||
Future<Void> future = null;
|
Future<Void> future = null;
|
||||||
try {
|
try {
|
||||||
future = rollEditsRpcExecutor.submit(getNameNodeProxy());
|
future = rollEditsRpcExecutor.submit(getNameNodeProxy());
|
||||||
|
Loading…
Reference in New Issue
Block a user