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())));

Metadata

Metadata

Assignees

Labels

P1kind/bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions