Manno15 commented on a change in pull request #2321:
URL: https://github.com/apache/accumulo/pull/2321#discussion_r738383077
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java
##########
@@ -47,10 +47,17 @@ public HighlyAvailableServiceInvocationHandler(I instance,
HighlyAvailableServic
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws
Throwable {
+
+ // If the service is upgrading, throw an exception
+ if (service.isUpgrading()) {
+ throw new ThriftNotActiveServiceException(service.toString(),
+ "Service can not be accessed while it is upgrading");
+ }
+
// If the service is not active, throw an exception
if (!service.isActiveService()) {
- LOG.trace("Denying access to RPC service as this instance is not the
active instance.");
- throw new ThriftNotActiveServiceException();
+ throw new ThriftNotActiveServiceException(service.toString(),
+ "Denying access to RPC service as this instance is not the active
instance");
}
Review comment:
done in
https://github.com/apache/accumulo/pull/2321/commits/80aae5a075bf00a6ba67ef68cd3640140ed018a3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]