Skip to content

Conversation

@HeartSaVioR
Copy link
Contributor

This patch ensures that all token identifiers extending AbstractS3ATokenIdentifier to have issue date as the time the identifier instance is created.

@HeartSaVioR
Copy link
Contributor Author

cc. @steveloughran Appreciate your review. Thanks!

@HeartSaVioR
Copy link
Contributor Author

Btw, while we can't set max date on AbstractS3ATokenIdentifier, there looks to be the chance for SessionTokenIdentifier to set max date as same as expiry time if marshalledCredentials is provided. Would it make sense?

I also have the fix for this, though I'm not 100% sure my theory is correct so minimized the fix for HADOOP-17379.
HeartSaVioR@b7e1d17

If the fix makes sense, either updating the PR or having a separate JIRA issue is fine for me. Please guide which is preferred for you.

@apache apache deleted a comment from hadoop-yetus Nov 17, 2020
@steveloughran steveloughran added bug fs/s3 changes related to hadoop-aws; submitter must declare test endpoint labels Nov 17, 2020
@steveloughran
Copy link
Contributor

or having a separate JIRA issue is fine for me. Please guide which is preferred for you.

make it a separate JIRA, as that will need more thinking about.

for this one, +1 as is

@steveloughran steveloughran merged commit a7b923c into apache:trunk Nov 17, 2020
@steveloughran
Copy link
Contributor

patch is in trunk; not in branch-3.3 just yet...soon

asfgit pushed a commit that referenced this pull request Nov 17, 2020
…2466)

Unless you explicitly set it, the issue date of a delegation token identifier is 0, which confuses spark renewal (SPARK-33440). This patch makes sure that all S3A DT identifiers have the current time as issue date, fixing the problem as far as S3A tokens are concerned.

Contributed by Jungtaek Lim.

Change-Id: Ic80ac7895612a1aa669459c73a78a9c17ecf0c0d
@apache apache deleted a comment from hadoop-yetus Nov 17, 2020
@HeartSaVioR
Copy link
Contributor Author

Thanks for the quick reviewing and merging!

@dongjoon-hyun
Copy link
Member

Thank you for this, @HeartSaVioR and @steveloughran .

jojochuang pushed a commit to jojochuang/hadoop that referenced this pull request May 23, 2023
…e == now. (apache#2466)

Unless you explicitly set it, the issue date of a delegation token identifier is 0, which confuses spark renewal (SPARK-33440). This patch makes sure that all S3A DT identifiers have the current time as issue date, fixing the problem as far as S3A tokens are concerned.

Contributed by Jungtaek Lim.

Change-Id: Ib365f5b3f14d4b400ebdc232c9e270d889507064
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fs/s3 changes related to hadoop-aws; submitter must declare test endpoint

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants