Skip to content

Potential issue in io.dapr.client.DaprClientHttp#executeStateTransaction #514

Description

@beiwei30

In io.dapr.client.DaprClientHttp#executeStateTransaction, there's one line of code like below:

operations.add(new TransactionalStateOperation<>(operation.getOperation(),

Instead, I believe the right logic should be:

        // Custom serializer, so everything is byte[].
        internalOperationObjects.add(new TransactionalStateOperation<>(operation.getOperation(),
            new State<>(state.getKey(), data, state.getEtag(), state.getMetadata(), state.getOptions())));

Activity

  1. artursouza commented on Mar 16, 2021

    @artursouza
    Contributor

    @beiwei30 Yes, this is a bug. We need to fix this ASAP. I was planning on releasing 1.0.1 today but I will work on this instead and add it to the hotfix release. We also need IT to make sure this bug does not come back. nice catch!

  2. artursouza commented on Mar 16, 2021

    @artursouza
    Contributor

    This issue is not present in the gRPC client, which is what is used by default in the SDK. So, it is not as urgent. Still, I am working on the fix.

  3. self-assigned this
    on Mar 17, 2021
  4. added this to the v1.1 milestone on Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1kind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions