Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-11587. Ozone Manager not processing file put requests with multi-tenancy enabled #7316

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,12 @@ public RangerClientMultiTenantAccessController(OzoneConfiguration conf)

LOG.info("authType = {}, login user = {}", authType, usernameOrPrincipal);

UserGroupInformation loginUser = UserGroupInformation.getLoginUser();
client = new RangerClient(rangerHttpsAddress,
authType, usernameOrPrincipal, passwordOrKeytab,
rangerServiceName, OzoneConsts.OZONE);
// set back the expected login user
UserGroupInformation.setLoginUser(loginUser);
adoroszlai marked this conversation as resolved.
Show resolved Hide resolved

// Whether or not the Ranger credentials are valid is unknown right after
// RangerClient initialization here. Because RangerClient does not perform
Expand Down