Manno15 commented on a change in pull request #2321:
URL: https://github.com/apache/accumulo/pull/2321#discussion_r735892098
##########
File path:
server/base/src/main/java/org/apache/accumulo/server/rpc/HighlyAvailableServiceInvocationHandler.java
##########
@@ -49,8 +49,12 @@ public HighlyAvailableServiceInvocationHandler(I instance,
HighlyAvailableServic
public Object invoke(Object proxy, Method method, Object[] args) throws
Throwable {
// 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();
+ if (!service.isUpgrading()) {
+ LOG.trace("Denying access to RPC service as this instance is not the
active instance.");
+ throw new ThriftNotActiveServiceException();
+ }
+ LOG.warn("Cannot access service while it is upgrading.");
+ return null;
Review comment:
Based on the function inside manager and the comments above it, yes.
--
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]