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

Fix GCSV2UnderFileSystem initialization #18184

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

jja725
Copy link
Contributor

@jja725 jja725 commented Sep 20, 2023

What changes are proposed in this pull request?

Fix GCSV2UnderFileSystem initialization

Why are the changes needed?

not able to create ufs instance if not set access key, which should not be a requirement for gcs v2

Does this PR introduce any user facing changes?

na

} else {
if (conf.getInt(PropertyKey.UNDERFS_GCS_VERSION) == GCS_VERSION_TWO) {
try {
return GCSV2UnderFileSystem.createInstance(new AlluxioURI(path), conf);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why checkgcscredentials doesnt apply to this anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GCS v2 only need to provide json file, only v1 is using access key. #17985 make the wrong check so I just revert it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then why it was merged in the first place? sorry I don't have the context and I don't want to make the call of LGTM, if some bugs are introduced as part of other PR, can u plz let the related group know?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is OK for GCS v2.

Copy link
Contributor

@JiamingMai JiamingMai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JiamingMai JiamingMai added the type-feature This issue is a feature request label Sep 21, 2023
@jja725
Copy link
Contributor Author

jja725 commented Sep 21, 2023

Tested locally and it works

@jja725
Copy link
Contributor Author

jja725 commented Sep 21, 2023

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit 765048c into Alluxio:main Sep 21, 2023
12 checks passed
@jja725
Copy link
Contributor Author

jja725 commented Sep 21, 2023

@zhezhidashi fixed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-feature This issue is a feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants