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
30.22k stars 3.82k forks source link

pkg/ccl/workloadccl/workloadccl_test: TestImportFixtureCSVServer failed [integer divide by zero] #136663

Open github-actions[bot] opened 12 hours ago

github-actions[bot] commented 12 hours ago

pkg/ccl/workloadccl/workloadccl_test.TestImportFixtureCSVServer failed on master @ 59848e274abde8644a3f005d711e0c5e484b8d20:

Fatal error:

panic: runtime error: integer divide by zero [recovered]
    panic: runtime error: integer divide by zero [recovered]
    panic: runtime error: integer divide by zero [recovered]
    panic: runtime error: integer divide by zero [recovered]
    panic: runtime error: integer divide by zero

Stack:

goroutine 3518 [running]:
testing.tRunner.func1.2({0x6506120, 0xca9ba70})
    GOROOT/src/testing/testing.go:1631 +0x24a
testing.tRunner.func1()
    GOROOT/src/testing/testing.go:1634 +0x377
panic({0x6506120?, 0xca9ba70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/util/leaktest.AfterTest.func2()
    pkg/util/leaktest/leaktest.go:132 +0x3aa
panic({0x6506120?, 0xca9ba70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).recover(0x49bc65?, {0x893d890, 0xd316600})
    pkg/util/stop/stopper.go:226 +0x65
panic({0x6506120?, 0xca9ba70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).Stop(0xc0077a6ea0, {0x893d890, 0xd316600})
    pkg/util/stop/stopper.go:535 +0x170
panic({0x6506120?, 0xca9ba70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/ccl/workloadccl.csvServerPaths({0xc0021927f8?, 0x0?}, {0x7f638e88d1f8?, 0xc00b1e9100?}, {{0x6fe8b3e, 0x2}, 0x0, {0x70b48d3, 0x20}, {0xa, ...}, ...}, ...)
    pkg/ccl/workloadccl/fixture.go:171 +0x6ba
github.com/cockroachdb/cockroach/pkg/ccl/workloadccl.ImportFixture({0x893d890, 0xd316600}, 0xc00b08d790, {0x7f638e88d1f8, 0xc00b1e9100}, {0x88a65f0, 0x1}, 0x1, 0x0, {0xc0021927f8, ...})
    pkg/ccl/workloadccl/fixture.go:430 +0x6b7
pkg/ccl/workloadccl/workloadccl_test_test.TestImportFixtureCSVServer(0xc004207a00)
    pkg/ccl/workloadccl/fixture_test.go:259 +0x44f
testing.tRunner(0xc004207a00, 0x74d60f0)
    GOROOT/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 1
    GOROOT/src/testing/testing.go:1742 +0x390
Log preceding fatal error

``` === RUN TestImportFixtureCSVServer test_log_scope.go:165: test logs captured to: outputs.zip/logTestImportFixtureCSVServer3930782724 test_log_scope.go:76: use -show-logs to present logs inline * * ERROR: a panic has occurred! * runtime error: integer divide by zero * (1) attached stack trace * -- stack trace: * | runtime.gopanic * | GOROOT/src/runtime/panic.go:770 * | github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).Stop * | pkg/util/stop/stopper.go:535 * | runtime.gopanic * | GOROOT/src/runtime/panic.go:770 * | runtime.panicdivide * | GOROOT/src/runtime/panic.go:240 * | github.com/cockroachdb/cockroach/pkg/ccl/workloadccl.csvServerPaths * | pkg/ccl/workloadccl/fixture.go:171 * | github.com/cockroachdb/cockroach/pkg/ccl/workloadccl.ImportFixture * | pkg/ccl/workloadccl/fixture.go:430 * | pkg/ccl/workloadccl/workloadccl_test_test.TestImportFixtureCSVServer * | pkg/ccl/workloadccl/fixture_test.go:259 * | testing.tRunner * | GOROOT/src/testing/testing.go:1689 * | runtime.goexit * | src/runtime/asm_amd64.s:1695 * Wraps: (2) runtime error: integer divide by zero * Error types: (1) *withstack.withStack (2) runtime.errorString * stopper.go:226: -- test log scope end -- ERROR: a panic has occurred! Details cannot be printed yet because we are still unwinding. Hopefully the test harness prints the panic below, otherwise check the test logs. test logs left over in: outputs.zip/logTestImportFixtureCSVServer3930782724 stopper.go:226: panic: runtime error: integer divide by zero --- FAIL: TestImportFixtureCSVServer (3.00s) ```

Parameters:

See also: How To Investigate a Go Test Failure (internal)

/cc @cockroachdb/test-eng @cockroachdb/sql-foundations

This test on roachdash | Improve this report!

Jira issue: CRDB-45179

blathers-crl[bot] commented 12 hours ago

This issue has multiple T-eam labels. Please make sure it only has one, or else issue synchronization will not work correctly.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

blathers-crl[bot] commented 12 hours ago

This issue has multiple T-eam labels. Please make sure it only has one, or else issue synchronization will not work correctly.

:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

fqazi commented 1 hour ago

The test somehow got zero nodes at: https://github.com/cockroachdb/cockroach/blob/535f8f31b122261c54e0b27f803010c71b25377f/pkg/ccl/workloadccl/fixture.go#L171

which is computed by the caller: https://github.com/cockroachdb/cockroach/blob/535f8f31b122261c54e0b27f803010c71b25377f/pkg/ccl/workloadccl/fixture.go#L430

fqazi commented 1 hour ago

Dup of https://github.com/cockroachdb/cockroach/issues/136579