-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The test did not ensure that the previous Sync run was finished when the next Sync run was started. It was reproducible locally wiht: GOMAXPROCS=1 go test -race -count=100 ./syncer | grep -A30 'DATA RACE' Output: WARNING: DATA RACE Write at 0x00c000161e60 by goroutine 71: runtime.mapassign_faststr() /usr/local/Cellar/go/1.19.4/libexec/src/runtime/map_faststr.go:203 +0x0 powerdns.com/platform/lightningstream/syncer.(*Syncer).LoadOnce() /Users/wojas/pdns/work-ls/lightningstream/syncer/sync.go:505 +0xc66 ... Previous read at 0x00c000161e60 by goroutine 64: runtime.mapiterinit() /usr/local/Cellar/go/1.19.4/libexec/src/runtime/map.go:815 +0x0 powerdns.com/platform/lightningstream/syncer/cleaner.(*Worker).SetCommitted() /Users/wojas/pdns/work-ls/lightningstream/syncer/cleaner/cleaner.go:55 +0xee ...
- Loading branch information
Showing
3 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters