Skip to content

HDDS-14851. [STS] Better Handling for PayloadTooLarge and Small Perf Fix#9938

Draft
fmorg-git wants to merge 7 commits intoapache:HDDS-13323-stsfrom
fmorg-git:HDDS-14851
Draft

HDDS-14851. [STS] Better Handling for PayloadTooLarge and Small Perf Fix#9938
fmorg-git wants to merge 7 commits intoapache:HDDS-13323-stsfrom
fmorg-git:HDDS-14851

Conversation

@fmorg-git
Copy link
Contributor

Please describe your PR in detail:

  • Currently, when the request payload for an STS call is greater than the current max (around 32KB), an Unknown error is thrown in the AWS CLI. This ticket updates the error to give a proper PayloadTooLarge error.
  • Also, separately, JAXBContext.newInstance() is a relatively expensive call (some estimates between 100ms and several seconds). We don't want to do this for every STS response, especially since JAXBContext is thread-safe, so cache the first invocation of it and reuse.
  • This PR depends on HDDS-14847. [STS] Expose ExpiredToken Error #9935

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14851

How was this patch tested?

unit tests, smoke tests

Fabian Morgan added 6 commits March 13, 2026 09:49
@fmorg-git fmorg-git marked this pull request as draft March 17, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant