• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nats-io / nats-server / 10824300123
83%

Build:
DEFAULT BRANCH: main
Ran 12 Sep 2024 05:39AM UTC
Jobs 1
Files 57
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Sep 2024 07:41PM UTC coverage: 85.293% (-0.05%) from 85.344%
10824300123

push

github

web-flow
Fix data race when moving a stream (#5880)

There was a data race that triggered in
`TestJetStreamSuperClusterMoveCancel` due to the addition of JetStream
asset version metadata.

All JS API requests receive user-provided
`StreamConfig`/`ConsumerConfig`, which ensures that any mutations done
in `setStaticStreamMetadata` for example is safe.

However, `jsLeaderServerStreamMoveRequest` and
`jsLeaderServerStreamCancelMoveRequest` would use the `sa.Config` from
the stream assignment and call into `jsClusteredStreamUpdateRequest`.
This resulted in a reference to the same `Metadata` map being available
and modified.

To ensure any changes made to config defaults or metadata doesn't result
in a data race, a `StreamConfig.clone` method is added.


[data-race-TestJetStreamSuperClusterMoveCancel.txt](https://github.com/user-attachments/files/16968281/data-race-TestJetStreamSuperClusterMoveCancel.txt)


Signed-off-by: Maurice van Veen <github@mauricevanveen.com>

---------

Signed-off-by: Maurice van Veen <github@mauricevanveen.com>

66625 of 78113 relevant lines covered (85.29%)

1439791.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10824300123.1 12 Sep 2024 05:39AM UTC 0
85.29
GitHub Action Run
Source Files on build 10824300123
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10824300123
  • 93d173c4 on github
  • Prev Build on main (#10766679656)
  • Next Build on main (#10843180417)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc