Data race in TestListWithCursor()
#609
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#609
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://git.frostfs.info/TrueCloudLab/frostfs-node/actions/runs/888/jobs/3
Fix data race it TestListWithCursorto Fix data race in TestListWithCursorFix data race in TestListWithCursorto Data race inTestListWithCursor()
Duplicate of #326.
Not a duplicate, there we had different results, here we have data race.
We had this problem already and it seems one cannot log in
Cleanup()
(it executes after the test has ended):https://github.com/uber-go/zap/issues/687
https://github.com/golang/go/issues/40343
Suggestions:
defer
. This may complicate tests a bit becauset.Cleanup
can be hidden inside constructors anddefer
needs to be called explicitly by every caller.test.v
flag is used. Good, but some tests may fail only time-to-time and having logs is somewhat useful.zap.NewNop()
everywhere.Check if logger prints in stdout - when tests have success pass