Skip to content

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

Merged
sodonnel merged 1 commit intoapache:HDDS-13323-stsfrom
fmorg-git:HDDS-14851
Apr 14, 2026
Merged

HDDS-14851. [STS] Better Handling for PayloadTooLarge and Small Perf Fix#9938
sodonnel merged 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
Copy link
Copy Markdown
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

LGTM pending green CI.

@sodonnel sodonnel merged commit 1f723f7 into apache:HDDS-13323-sts Apr 14, 2026
72 of 74 checks passed
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.

2 participants