[
https://issues.apache.org/jira/browse/HDDS-15854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Huang Kuan Hao updated HDDS-15854:
----------------------------------
Description:
HDDS-15467 (#10469) removed the getUserIfNotExists fallback in OMClientRequest.
This breaks OM-internal writes that carry their identity via ugi.doAs().
For example, the object TTL service creating a .Trash/.../Current directory
fails on the Ratis apply path with UNAUTHORIZED:
{code:java}
UNAUTHORIZED ... AuthenticationException: User info is not set. Please check
client auth credentials
at OMClientRequest.createUGIForApi(OMClientRequest.java:391)
at OMKeyRequest.getAclsForDir(OMKeyRequest.java:388)
at OMKeyRequest.createDirectoryInfoWithACL(...)
at OMKeyRequest.getAllMissingParentDirInfo(...)
at OMDirectoryCreateRequestWithFSO.validateAndUpdateCache(...)
{code}
https://github.com/apache/ozone/pull/10469#issuecomment-4965827488
was:
HDDS-15467 (#10469) removed the getUserIfNotExists fallback in OMClientRequest.
This breaks OM-internal writes that carry their identity via ugi.doAs().
For example, the object TTL service creating a .Trash/.../Current directory
fails on the Ratis apply path with UNAUTHORIZED:
{code:java}
UNAUTHORIZED ... AuthenticationException: User info is not set. Please check
client auth credentials
at OMClientRequest.createUGIForApi(OMClientRequest.java:391)
at OMKeyRequest.getAclsForDir(OMKeyRequest.java:388)
at OMKeyRequest.createDirectoryInfoWithACL(...)
at OMKeyRequest.getAllMissingParentDirInfo(...)
at OMDirectoryCreateRequestWithFSO.validateAndUpdateCache(...){code}
> Revert HDDS-15467 : removing the OM starter-user fallback breaks internal
> doAs writes
> -------------------------------------------------------------------------------------
>
> Key: HDDS-15854
> URL: https://issues.apache.org/jira/browse/HDDS-15854
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Huang Kuan Hao
> Assignee: Huang Kuan Hao
> Priority: Major
>
> HDDS-15467 (#10469) removed the getUserIfNotExists fallback in
> OMClientRequest. This breaks OM-internal writes that carry their identity via
> ugi.doAs().
> For example, the object TTL service creating a .Trash/.../Current directory
> fails on the Ratis apply path with UNAUTHORIZED:
> {code:java}
> UNAUTHORIZED ... AuthenticationException: User info is not set. Please check
> client auth credentials
> at OMClientRequest.createUGIForApi(OMClientRequest.java:391)
> at OMKeyRequest.getAclsForDir(OMKeyRequest.java:388)
> at OMKeyRequest.createDirectoryInfoWithACL(...)
> at OMKeyRequest.getAllMissingParentDirInfo(...)
> at OMDirectoryCreateRequestWithFSO.validateAndUpdateCache(...)
> {code}
>
> https://github.com/apache/ozone/pull/10469#issuecomment-4965827488
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]