Skip to content

runtime: TestMapIterOrder flaky #7096

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

Closed
randall77 opened this issue Jan 10, 2014 · 1 comment
Closed

runtime: TestMapIterOrder flaky #7096

randall77 opened this issue Jan 10, 2014 · 1 comment

Comments

@randall77
Copy link
Contributor

An overnight run of all.bashes shows this test to be flaky.

    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]
    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]
    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]
    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]
    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]
    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]
    map_test.go:438: Map with n=9 elements had consistent iteration order: [0 1 2 3 4 5 6 7 8]

This will happen if all 9 elements get mapped to one bucket, which will happen with
probability 2^-9 = 1 in 512.

This bug should get fixed as part of fixing bug 6719.
@randall77
Copy link
Contributor Author

Comment 1:

CL 47370043 should have fixed this.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants