#!watchflakes
default <- pkg == "unique" && test == "TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys"
Issue created automatically to collect these failures.
Example (log):
=== RUN TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys
canonmap_test.go:121: expected key 1000-13 to be missing from map, got 0x8826d68
canonmap_test.go:121: expected key 1001-13 to be missing from map, got 0x8826d78
canonmap_test.go:121: expected key 1010-13 to be missing from map, got 0x8826d88
canonmap_test.go:121: expected key 1011-13 to be missing from map, got 0x8826d98
canonmap_test.go:121: expected key 1100-13 to be missing from map, got 0x8826da8
canonmap_test.go:121: expected key 1101-13 to be missing from map, got 0x8826db8
canonmap_test.go:121: expected key 1110-13 to be missing from map, got 0x8826dc8
canonmap_test.go:121: expected key 1111-13 to be missing from map, got 0x8826dd8
canonmap_test.go:121: expected key 10000-13 to be missing from map, got 0x8826de8
canonmap_test.go:121: expected key 10001-13 to be missing from map, got 0x8826df8
canonmap_test.go:121: expected key 10010-13 to be missing from map, got 0x8826e08
canonmap_test.go:121: expected key 10011-13 to be missing from map, got 0x8826e18
canonmap_test.go:121: expected key 10100-13 to be missing from map, got 0x8826e28
canonmap_test.go:121: expected key 10101-13 to be missing from map, got 0x8826e38
canonmap_test.go:121: expected key 10110-13 to be missing from map, got 0x8826e48
canonmap_test.go:121: expected key 10111-13 to be missing from map, got 0x8826e58
canonmap_test.go:121: expected key 11000-13 to be missing from map, got 0x8826e68
canonmap_test.go:121: expected key 11001-13 to be missing from map, got 0x8826e78
canonmap_test.go:121: expected key 11010-13 to be missing from map, got 0x8826e88
canonmap_test.go:121: expected key 11011-13 to be missing from map, got 0x8826e98
canonmap_test.go:121: expected key 11100-13 to be missing from map, got 0x8826ea8
canonmap_test.go:121: expected key 11101-13 to be missing from map, got 0x8826eb8
canonmap_test.go:121: expected key 11110-13 to be missing from map, got 0x8826ec8
canonmap_test.go:121: expected key 11111-13 to be missing from map, got 0x8826ed8
--- FAIL: TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys (0.12s)
Comment From: gopherbot
Found new dashboard test flakes for:
#!watchflakes
default <- pkg == "unique" && test == "TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys"
2025-06-09 18:15 gotip-linux-386 go@985d600f unique.TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys (log)
=== RUN TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys canonmap_test.go:121: expected key 1000-13 to be missing from map, got 0x8826d68 canonmap_test.go:121: expected key 1001-13 to be missing from map, got 0x8826d78 canonmap_test.go:121: expected key 1010-13 to be missing from map, got 0x8826d88 canonmap_test.go:121: expected key 1011-13 to be missing from map, got 0x8826d98 canonmap_test.go:121: expected key 1100-13 to be missing from map, got 0x8826da8 canonmap_test.go:121: expected key 1101-13 to be missing from map, got 0x8826db8 canonmap_test.go:121: expected key 1110-13 to be missing from map, got 0x8826dc8 canonmap_test.go:121: expected key 1111-13 to be missing from map, got 0x8826dd8 canonmap_test.go:121: expected key 10000-13 to be missing from map, got 0x8826de8 canonmap_test.go:121: expected key 10001-13 to be missing from map, got 0x8826df8 canonmap_test.go:121: expected key 10010-13 to be missing from map, got 0x8826e08 canonmap_test.go:121: expected key 10011-13 to be missing from map, got 0x8826e18 canonmap_test.go:121: expected key 10100-13 to be missing from map, got 0x8826e28 canonmap_test.go:121: expected key 10101-13 to be missing from map, got 0x8826e38 canonmap_test.go:121: expected key 10110-13 to be missing from map, got 0x8826e48 canonmap_test.go:121: expected key 10111-13 to be missing from map, got 0x8826e58 canonmap_test.go:121: expected key 11000-13 to be missing from map, got 0x8826e68 canonmap_test.go:121: expected key 11001-13 to be missing from map, got 0x8826e78 canonmap_test.go:121: expected key 11010-13 to be missing from map, got 0x8826e88 canonmap_test.go:121: expected key 11011-13 to be missing from map, got 0x8826e98 canonmap_test.go:121: expected key 11100-13 to be missing from map, got 0x8826ea8 canonmap_test.go:121: expected key 11101-13 to be missing from map, got 0x8826eb8 canonmap_test.go:121: expected key 11110-13 to be missing from map, got 0x8826ec8 canonmap_test.go:121: expected key 11111-13 to be missing from map, got 0x8826ed8 --- FAIL: TestCanonMap/LoadOrStore/ConcurrentUnsharedKeys (0.12s)Comment From: manishkandari9
This issue may be caused by a race condition during concurrent access. Since the keys are unshared, LoadOrStore
is expected to safely handle them in parallel. However, the presence of unexpected keys in the map suggests that synchronization may not be working as intended.
Running the test with the -race
flag might help detect data races. It may also be worth reviewing how CanonMap
handles internal state for unique keys during concurrent operations, to identify any potential flaws in synchronization logic.