Skip to content

Blocking Call on DigestAlgorithm #6590

Open

Description

@jonathannaguin

Describe the bug

Hello,

While using BlockHound to detect blocking calls on our service, we found out a blocking call on https://github.com/aws/aws-sdk-java-v2/blob/master/core/checksums/src/main/java/software/amazon/awssdk/checksums/internal/DigestAlgorithm.java#L55 . It seems this is related to a recent change in this class (c137348) that introduced a LinkedBlockingDeque.

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

The Async version of the SDK shouldn't block threads.

Current Behavior

Due to the internal code of LinkedBlockingDeque, the modified DigestAlgorithm blocks.

Reproduction Steps

Any HTTP request will trigger this issue, example the Async SDK for DynamoDB (GetItem).

Possible Solution

Use ConcurrentLinkedDeque or ThreadLocal perhaps.

Additional Information/Context

No response

AWS Java SDK version used

2.33.11

JDK version used

21

Operating System and version

Mac

Activity

  1. added
    needs-reviewThis issue or PR needs review from the team.
    and removed
    needs-triageThis issue or PR still needs to be triaged.
    on Dec 2, 2025
  2. debora-ito commented on Dec 11, 2025

    @debora-ito
    Member

    @jonathannaguin thank you for reporting this. We have a task in our backlog to remove blocking calls from async codepaths, and we'll add this to our tracking list.

  3. added
    p2This is a standard priority issue
    on Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions