Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
1.0.0
Description
In HA, in validateAndUpdateCache when resolveBucket, it checks the permission using checkAcls. But it will have not any RpcContext and it will fail with NPE in checkAcls when getting hostName.
For this same reason, we added the required information to check ACLs into OMRequest.
java.lang.NullPointerException at org.apache.hadoop.ozone.om.OzoneManager.checkAcls(OzoneManager.java:1604) at org.apache.hadoop.ozone.om.OzoneManager.resolveBucketLink(OzoneManager.java:3497) at org.apache.hadoop.ozone.om.OzoneManager.resolveBucketLink(OzoneManager.java:3465) at org.apache.hadoop.ozone.om.OzoneManager.resolveBucketLink(OzoneManager.java:3452) at org.apache.hadoop.ozone.om.request.key.OMKeyRequest.resolveBucketLink(OMKeyRequest.java:96) at org.apache.hadoop.ozone.om.request.key.OMKeyCreateRequest.validateAndUpdateCache(OMKeyCreateRequest.java:215) at org.apache.hadoop.ozone.protocolPB.OzoneManagerRequestHandler.handleWriteRequest(OzoneManagerRequestHandler.java:227) at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.runCommand(OzoneManagerStateMachine.java:428) at org.apache.hadoop.ozone.om.ratis.OzoneManagerStateMachine.lambda$applyTransaction$1(OzoneManagerStateMachine.java:246) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Attachments
Issue Links
- is related to
-
HDDS-3612 Allow mounting bucket under other volume
- Resolved
- links to