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

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

Open github-actions[bot] opened 16 hours ago

github-actions[bot] commented 16 hours ago

pkg/ccl/workloadccl/workloadccl_test.TestImportFixtureCSVServer failed on master @ 0ea9ae61bfe16ba95414c287753c67334e92e578:

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 2396 [running]:
testing.tRunner.func1.2({0x6507c60, 0xca9ca70})
    GOROOT/src/testing/testing.go:1631 +0x24a
testing.tRunner.func1()
    GOROOT/src/testing/testing.go:1634 +0x377
panic({0x6507c60?, 0xca9ca70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/util/leaktest.AfterTest.func2()
    pkg/util/leaktest/leaktest.go:132 +0x3aa
panic({0x6507c60?, 0xca9ca70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).recover(0x49caa5?, {0x893e4d0, 0xd318240})
    pkg/util/stop/stopper.go:226 +0x65
panic({0x6507c60?, 0xca9ca70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/util/stop.(*Stopper).Stop(0xc0050610e0, {0x893e4d0, 0xd318240})
    pkg/util/stop/stopper.go:535 +0x170
panic({0x6507c60?, 0xca9ca70?})
    GOROOT/src/runtime/panic.go:770 +0x132
github.com/cockroachdb/cockroach/pkg/ccl/workloadccl.csvServerPaths({0xc001d84f90?, 0x0?}, {0x7f98f2ad6138?, 0xc00392b000?}, {{0x6fea1fe, 0x2}, 0x0, {0x70b5ee4, 0x20}, {0xa, ...}, ...}, ...)
    pkg/ccl/workloadccl/fixture.go:171 +0x6ba
github.com/cockroachdb/cockroach/pkg/ccl/workloadccl.ImportFixture({0x893e4d0, 0xd318240}, 0xc0064aa750, {0x7f98f2ad6138, 0xc00392b000}, {0x88a7228, 0x1}, 0x1, 0x0, {0xc001d84f90, ...})
    pkg/ccl/workloadccl/fixture.go:430 +0x6b7
pkg/ccl/workloadccl/workloadccl_test_test.TestImportFixtureCSVServer(0xc005855a00)
    pkg/ccl/workloadccl/fixture_test.go:259 +0x44f
testing.tRunner(0xc005855a00, 0x74d7530)
    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/logTestImportFixtureCSVServer3604763791 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/logTestImportFixtureCSVServer3604763791 stopper.go:226: panic: runtime error: integer divide by zero --- FAIL: TestImportFixtureCSVServer (3.12s) ```

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-45143

blathers-crl[bot] commented 16 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 16 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.

rafiss commented 10 hours ago

Same error appeared in https://github.com/cockroachdb/cockroach/issues/136599 and https://github.com/cockroachdb/cockroach/issues/136541