Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(SUPPORT) services/object: Fix concurrent map writes in traverser #2037

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Nov 10, 2022

fatal error: concurrent map writes

goroutine 4337 [running]:
github.com/nspcc-dev/neofs-node/pkg/services/object/put.(*traversal).submitProcessed(...)
        github.com/nspcc-dev/neofs-node/pkg/services/object/put/distributed.go:78
github.com/nspcc-dev/neofs-node/pkg/services/object/put.(*distributedTarget).iteratePlacement.func1()
        github.com/nspcc-dev/neofs-node/pkg/services/object/put/distributed.go:198 +0x265
github.com/panjf2000/ants/v2.(*goWorker).run.func1()
        github.com/panjf2000/ants/v2@v2.4.0/worker.go:68 +0x97
created by github.com/panjf2000/ants/v2.(*goWorker).run
        github.com/panjf2000/ants/v2@v2.4.0/worker.go:48 +0x65

Signed-off-by: Evgenii Stratonikov evgeniy@morphbits.ru

@codecov
Copy link

codecov bot commented Nov 10, 2022

Codecov Report

Merging #2037 (44467d8) into support/v0.34 (110f6e7) will not change coverage.
The diff coverage is n/a.

❗ Current head 44467d8 differs from pull request most recent head f15f47b. Consider uploading reports for the commit f15f47b to get more accurate results

@@              Coverage Diff               @@
##           support/v0.34    #2037   +/-   ##
==============================================
  Coverage          30.57%   30.57%           
==============================================
  Files                380      380           
  Lines              27790    27790           
==============================================
  Hits                8497     8497           
  Misses             18593    18593           
  Partials             700      700           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

cthulhu-rider
cthulhu-rider previously approved these changes Nov 10, 2022
```
fatal error: concurrent map writes

goroutine 4337 [running]:
github.com/nspcc-dev/neofs-node/pkg/services/object/put.(*traversal).submitProcessed(...)
        github.com/nspcc-dev/neofs-node/pkg/services/object/put/distributed.go:78
github.com/nspcc-dev/neofs-node/pkg/services/object/put.(*distributedTarget).iteratePlacement.func1()
        github.com/nspcc-dev/neofs-node/pkg/services/object/put/distributed.go:198 +0x265
github.com/panjf2000/ants/v2.(*goWorker).run.func1()
        github.com/panjf2000/ants/v2@v2.4.0/worker.go:68 +0x97
created by github.com/panjf2000/ants/v2.(*goWorker).run
        github.com/panjf2000/ants/v2@v2.4.0/worker.go:48 +0x65
```

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
@fyrchik
Copy link
Contributor Author

fyrchik commented Nov 10, 2022

Only fixed the commit message.

@fyrchik fyrchik merged commit 01a226b into nspcc-dev:support/v0.34 Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working neofs-storage Storage node application issues U0 Needs to be resolved immediately
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants