Skip to content

[3.4] panic: runtime error: index out of range [0] with length 0 [recovered] #14259

@ahrtr

Description

@ahrtr

The issue was found in 3.4 pipeline.

--- FAIL: TestWatchReconnRequest (1.12s)
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0
goroutine 68799 [running]:
testing.tRunner.func1.2(0xef8e00, 0xc000a222a0)
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1153 +0x332
testing.tRunner.func1(0xc0005dc780)
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1156 +0x4b6
panic(0xef8e00, 0xc000a222a0)
	/opt/hostedtoolcache/go/1.16.15/x64/src/runtime/panic.go:965 +0x1b9
go.etcd.io/etcd/clientv3/integration.putAndWatch(0xc0005dc780, 0xc0002864c0, 0x10a3890, 0x1, 0x10a3890, 0x1)
	/home/runner/work/etcd/etcd/clientv3/integration/watch_test.go:341 +0x40c
go.etcd.io/etcd/clientv3/integration.testWatchReconnRequest(0xc0005dc780, 0xc0002864c0)
	/home/runner/work/etcd/etcd/clientv3/integration/watch_test.go:220 +0x290
go.etcd.io/etcd/clientv3/integration.runWatchTest(0xc0005dc780, 0xfc87b0)
	/home/runner/work/etcd/etcd/clientv3/integration/watch_test.go:64 +0x24f
go.etcd.io/etcd/clientv3/integration.TestWatchReconnRequest(0xc0005dc780)
	/home/runner/work/etcd/etcd/clientv3/integration/watch_test.go:181 +0x37
testing.tRunner(0xc0005dc780, 0xfc86d8)
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1203 +0xe5
created by testing.(*T).Run
	/opt/hostedtoolcache/go/1.16.15/x64/src/testing/testing.go:1248 +0x2b3
FAIL	go.etcd.io/etcd/clientv3/integration	260.996s
FAIL
Error: Process completed with exit code 1.

Refer to https://github.com/etcd-io/etcd/runs/7462977558?check_suite_focus=true

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions