You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by GitBox <gi...@apache.org> on 2019/10/23 19:42:26 UTC

[GitHub] [hadoop-ozone] adoroszlai opened a new pull request #76: HDDS-2352. Client gets internal error instead of volume not found in secure cluster

adoroszlai opened a new pull request #76: HDDS-2352. Client gets internal error instead of volume not found in secure cluster
URL: https://github.com/apache/hadoop-ozone/pull/76
 
 
   ## What changes were proposed in this pull request?
   
   Let `checkAccess` propagate original `OMException` with `VOLUME_NOT_FOUND` result code instead of new one with `INTERNAL_ERROR`.  This is similar to [existing logic](https://github.com/apache/hadoop-ozone/blob/59d078605fd54b320412f4882af9f90ffaea9456/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/BucketManagerImpl.java#L578-L585) for buckets.
   
   https://issues.apache.org/jira/browse/HDDS-2352
   
   ## How was this patch tested?
   
   Tested original steps to reproduce:
   
   ```
   $ cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozonesecure
   $ docker-compose exec scm bash
   $ kinit -kt /etc/security/keytabs/testuser.keytab testuser/scm@EXAMPLE.COM
   $ ozone freon ockg -n 1 -t 1
   ...
   2019-10-23 18:52:25,424 [main] INFO       - Creating Volume: vol1, with testuser/scm@EXAMPLE.COM as owner.
   2019-10-23 18:52:25,542 [main] INFO       - Creating Bucket: vol1/bucket1, with Versioning false and Storage Type set to DISK and Encryption set to false
   ...
   Successful executions: 1
   ```
   
   Also ran `ozonesecure` acceptance test.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org