Skip to content

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

Open
fmorg-git wants to merge 1 commit intoapache:HDDS-13323-stsfrom
fmorg-git:HDDS-14851
Open

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

Conversation

@fmorg-git
Copy link
Copy Markdown
Contributor

@fmorg-git fmorg-git commented Mar 17, 2026

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.

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

@fmorg-git fmorg-git marked this pull request as ready for review April 1, 2026 18:28
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