-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
master branch, 3.5-pre have found panic: KeyValue: illegal tag #12845
Comments
"error":"proto: illegal wireType 7"{"level":"panic","ts":"2021-04-08T19:23:00.281+0800","caller":"mvcc/watchable_store.go:417","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: illegal wireType 7","stacktrace":"go.etcd.io/etcd/v3/mvcc.kvsToEvents\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:417\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchers\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:362\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:224"} |
1 similar comment
"error":"proto: illegal wireType 7"{"level":"panic","ts":"2021-04-08T19:23:00.281+0800","caller":"mvcc/watchable_store.go:417","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: illegal wireType 7","stacktrace":"go.etcd.io/etcd/v3/mvcc.kvsToEvents\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:417\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchers\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:362\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:224"} |
"error":"proto: KeyValue: wiretype end group for non-group"{"level":"panic","ts":"2021-04-09T11:25:21.520+0800","caller":"mvcc/watchable_store.go:417","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: wiretype end group for non-group","stacktrace":"go.etcd.io/etcd/v3/mvcc.kvsToEvents\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:417\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchers\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:362\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:224"} |
Maybe updates to protobuf runtime 3.5 that we done post 3.5.0-alpha.0 solved this issue. Have you tried to repro using the master branch ? |
For this problem, the business at the time used etcd client version 3.3 and etcd server side 3.5-pre. Normally, there was no problem. This problem occurred several times online. At that time, the business failed to create the vitess container, and this problem occurred. Later, the business was asked to delete several vitess containers that failed, and they did not appear afterwards. It stands to reason that this problem should not occur. The code logic is proto.unmarsal(), and the key is read from the disk to the watch. Since proto.marsal() is okay, there shouldn't be a problem with unmarsal()? ?? So it feels weird. |
This bug still exists, until release 3.5.0. |
I met the same error. v3.5.0 |
I also met the same case in v3.5.0 date: 2021-09-23T10:59:41.354+0800 {"level":"panic","ts":"2021-09-23T07:00:40.717+0800","caller":"mvcc/watchable_store.go:414","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: illegal tag 0 (wire type 0)","stacktrace":"go.etcd.io/etcd/server/v3/mvcc.kvsToEvents\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/mvcc/watchable_store.go:414\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchers\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/mvcc/watchable_store.go:359\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/mvcc/watchable_store.go:222"} goroutine 136 [running]: |
I also met the same case in v3.5.0 {"level":"panic","ts":"2021-09-28T11:26:39.702+0800","caller":"mvcc/watchable_store.go:414","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: illegal tag 0 (wire type 0)","stacktrace":"go.etcd.io/etcd/server/v3/mvcc.kvsToEvents\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/mvcc/watchable_store.go:414\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchers\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/mvcc/watchable_store.go:359\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/tmp/etcd-release-3.5.0/etcd/release/etcd/server/mvcc/watchable_store.go:222"} |
i also met the same case in v3.5.1 ,two kinds of log {"level":"panic","ts":"2021-12-26T22:23:59.728+0800","caller":"mvcc/watchable_store.go:414","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: wiretype end group for non-group","stacktrace":"go.etcd.io/etcd/server/v3/mvcc.kvsToEvents\n\t/tmp/etcd-release-3.5.1/etcd/release/etcd/server/mvcc/watchable_store.go:414\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchers\n\t/tmp/etcd-release-3.5.1/etcd/release/etcd/server/mvcc/watchable_store.go:359\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/tmp/etcd-release-3.5.1/etcd/release/etcd/server/mvcc/watchable_store.go:222"} goroutine 166 [running]: {"level":"panic","ts":"2021-12-24T06:49:58.950+0800","caller":"mvcc/watchable_store.go:414","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: illegal tag 0 (wire type 0)","stacktrace":"go.etcd.io/etcd/server/v3/mvcc.kvsToEvents\n\t/tmp/etcd-release-3.5.1/etcd/release/etcd/server/mvcc/watchable_store.go:414\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchers\n\t/tmp/etcd-release-3.5.1/etcd/release/etcd/server/mvcc/watchable_store.go:359\ngo.etcd.io/etcd/server/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/tmp/etcd-release-3.5.1/etcd/release/etcd/server/mvcc/watchable_store.go:222"} goroutine 61 [running]: Are they all the same reason ? and will fix in 3.5.2? |
i got same panic use log info
some warning log
|
Should be fixed by #13505 |
{"level":"panic","ts":"2021-04-08T21:26:57.399+0800","caller":"mvcc/watchable_store.go:417","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: illegal tag 0 (wire type 0)","stacktrace":"go.etcd.io/etcd/v3/mvcc.kvsToEvents\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:417\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchers\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:362\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:224"}
{"level":"panic","ts":"2021-04-09T09:11:21.902+0800","caller":"mvcc/watchable_store.go:417","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: illegal tag 0 (wire type 2)","stacktrace":"go.etcd.io/etcd/v3/mvcc.kvsToEvents\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:417\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchers\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:362\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:224"}
{"level":"panic","ts":"2021-04-09T09:13:02.609+0800","caller":"mvcc/watchable_store.go:417","msg":"failed to unmarshal mvccpb.KeyValue","error":"proto: KeyValue: illegal tag 0 (wire type 0)","stacktrace":"go.etcd.io/etcd/v3/mvcc.kvsToEvents\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:417\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchers\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:362\ngo.etcd.io/etcd/v3/mvcc.(*watchableStore).syncWatchersLoop\n\t/export/working/src/github.com/etcd-io/etcd/mvcc/watchable_store.go:224"}
{"level":"warn","ts":"2021-04-08T19:40:33.831+0800","caller":"etcdserver/util.go:158","msg":"apply request took too long","took":"128.022295ms","expected-duration":"100ms","prefix":"","request":"header:<ID:10681543059563361494 > txn:<compare:<key:"/vt/global/keyspaces/poporder3/locks/1458171022708585683" version:0 > success:<request_put:<key:"/vt/global/keyspaces/poporder3/locks/1458171022708585683" value_size:156 lease:1458171022708585683 >> failure:<>>","response":"size:20"}
{"level":"warn","ts":"2021-04-08T19:40:36.968+0800","caller":"etcdserver/util.go:158","msg":"apply request took too long","took":"124.063469ms","expected-duration":"100ms","prefix":"","request":"header:<ID:11411126198913509988 > lease_revoke:id:1e5c76d1b564aa5b","response":"size:31"}
It seems may reference /XXX/locks/XXX
The text was updated successfully, but these errors were encountered: