HDFS-8821. Explain message "Operation category X is not supported in state standby". Contributed by Gautam Gopalakrishnan.

This commit is contained in:
Harsh J 2015-07-31 08:58:22 +05:30
parent 88d8736dde
commit c5caa25b8f
2 changed files with 5 additions and 1 deletions

View File

@ -357,6 +357,9 @@ Release 2.8.0 - UNRELEASED
IMPROVEMENTS IMPROVEMENTS
HDFS-8821. Explain message "Operation category X is not supported
in state standby" (Gautam Gopalakrishnan via harsh)
HDFS-3918. EditLogTailer shouldn't log WARN when other node HDFS-3918. EditLogTailer shouldn't log WARN when other node
is in standby mode (todd via harsh) is in standby mode (todd via harsh)

View File

@ -82,8 +82,9 @@ public void checkOperation(HAContext context, OperationCategory op)
(op == OperationCategory.READ && context.allowStaleReads())) { (op == OperationCategory.READ && context.allowStaleReads())) {
return; return;
} }
String faq = ". Visit https://s.apache.org/sbnn-error";
String msg = "Operation category " + op + " is not supported in state " String msg = "Operation category " + op + " is not supported in state "
+ context.getState(); + context.getState() + faq;
throw new StandbyException(msg); throw new StandbyException(msg);
} }