cockroachdb / cockroach

CockroachDB — the cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement.
https://www.cockroachlabs.com
Other
29.96k stars 3.79k forks source link

acceptance: TestDockerCLI_test_socket_name failed #127046

Open cockroach-teamcity opened 2 months ago

cockroach-teamcity commented 2 months ago

acceptance.TestDockerCLI_test_socket_name failed with artifacts on master @ 2ee6332c73b7469719610b36bf73b1101fdc14f0:

=== RUN   TestDockerCLI_test_socket_name
    test_log_scope.go:170: test logs captured to: /home/agent/work/.go/src/github.com/cockroachdb/cockroach/artifacts/acceptance/_tmp/c08ff262c750a522d8c02a8762e12dc5/logTestDockerCLI_test_socket_name3840231649
    test_log_scope.go:81: use -show-logs to present logs inline
    generated_cli_test.go:411: -- test log scope end --
test logs left over in: /home/agent/work/.go/src/github.com/cockroachdb/cockroach/artifacts/acceptance/_tmp/c08ff262c750a522d8c02a8762e12dc5/logTestDockerCLI_test_socket_name3840231649
--- FAIL: TestDockerCLI_test_socket_name (61.59s)
=== RUN   TestDockerCLI_test_socket_name/test_socket_name.tcl
    util_docker.go:260: non-zero exit code: 1
    --- FAIL: TestDockerCLI_test_socket_name/test_socket_name.tcl (54.34s)
Help

See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)

/cc @cockroachdb/sql-foundations

This test on roachdash | Improve this report!

Jira issue: CRDB-40252

rafiss commented 2 months ago

The failing test is: https://github.com/cockroachdb/cockroach/blob/641b78b0824e65ffa248a669dda6e35da0588139/pkg/cli/interactive_tests/test_socket_name.tcl#L44-L50

It seems like it intentionally is starting on the same port after killing the first process. It seems like the kill -9 step may not have worked, since the error the test has is:

* ERROR: ERROR: cannot dial server.
* Is the server running?
* If the server is running, check --host client-side and --advertise server-side.
* 
* server startup failed: cockroach server exited with error: consider changing the port via --listen-addr: listen tcp 127.0.0.1:40085: bind: address already in use
*
ERROR: cannot dial server.
Is the server running?
If the server is running, check --host client-side and --advertise server-side.

server startup failed: cockroach server exited with error: consider changing the port via --listen-addr: listen tcp 127.0.0.1:40085: bind: address already in use
Failed running "start-single-node"
shubhamdhama commented 1 month ago

Related PR: https://github.com/cockroachdb/cockroach/pull/84910