ssulav commented on code in PR #9201:
URL: https://github.com/apache/ozone/pull/9201#discussion_r2487819922
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/protocol/StorageContainerLocationProtocolServerSideTranslatorPB.java:
##########
@@ -208,9 +209,10 @@ public
StorageContainerLocationProtocolServerSideTranslatorPB(
@Override
public ScmContainerLocationResponse submitRequest(RpcController controller,
ScmContainerLocationRequest request) throws ServiceException {
- // not leader or not belong to admin command.
+ // not leader or not belong to admin command or follower-readable command.
if (!scm.checkLeader()
- && !ADMIN_COMMAND_TYPE.contains(request.getCmdType())) {
+ && !ADMIN_COMMAND_TYPE.contains(request.getCmdType())
+ && !FOLLOWER_READABLE_COMMAND_TYPE.contains(request.getCmdType())) {
Review Comment:
Have we tried this to check the safemode status of the follower node
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]