dapr / js-sdk

Dapr SDK for Javascript
Apache License 2.0
194 stars 82 forks source link

State store etag doesn't work #551

Closed duylddev closed 4 months ago

duylddev commented 10 months ago

Expected Behavior

    for (let i = 0; i < 10; i++) {
      await daprClient.state.save('statestore', [
        {
          key: 'key',
          value: random(),
          etag: 'x',
        },
      ])
    }

This code should throw etag mismatch error

Actual Behavior

state save success without any error, etag increase one each time

Steps to Reproduce the Problem

Just run that code above

dapr-bot commented 4 months ago

This issue has been automatically marked as stale because it has not had activity in the last 60 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot commented 4 months ago

This issue has been automatically closed because it has not had activity in the last 67 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue, help wanted or triaged/resolved. Thank you for your contributions.