Skip to content
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

json codec met panic: interface conversion: interface {} is string, not []uint8 #2758

Closed
Tracked by #4737
amyangfei opened this issue Sep 7, 2021 · 0 comments · Fixed by #2764
Closed
Tracked by #4737

json codec met panic: interface conversion: interface {} is string, not []uint8 #2758

amyangfei opened this issue Sep 7, 2021 · 0 comments · Fixed by #2764
Labels
affects-4.0 affects-5.0 affects-5.1 affects-5.2 area/ticdc Issues or PRs related to TiCDC. component/open-protocol Open TiCDC protocol component. severity/major type/bug The issue is confirmed as a bug.

Comments

@amyangfei
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a recipe for reproducing the error.
panic: interface conversion: interface {} is string, not []uint8

goroutine 3552 [running]:
github.com/pingcap/ticdc/cdc/sink/codec.(*column).FromSinkColumn(0xc00e3c7b88, 0xc01f526e40)
	github.com/pingcap/ticdc/cdc/sink/codec/json.go:67 +0x357
github.com/pingcap/ticdc/cdc/sink/codec.sinkColumns2JsonColumns(0xc016bfda20, 0x16, 0x16, 0xc031903bc0)
	github.com/pingcap/ticdc/cdc/sink/codec/json.go:227 +0xaa
github.com/pingcap/ticdc/cdc/sink/codec.rowEventToMqMessage(0xc01f511000, 0xc00dd2a8c0, 0x4a4a368)
	github.com/pingcap/ticdc/cdc/sink/codec/json.go:215 +0x16e
github.com/pingcap/ticdc/cdc/sink/codec.(*JSONEventBatchEncoder).AppendRowChangedEvent(0xc00dd2a8c0, 0xc01f511000, 0x3, 0x2, 0x1)
	github.com/pingcap/ticdc/cdc/sink/codec/json.go:372 +0x43
github.com/pingcap/ticdc/cdc/sink.(*mqSink).runWorker(0xc00e72aea0, 0x2e57ba0, 0xc00e7b0940, 0x0, 0x0, 0x0)
	github.com/pingcap/ticdc/cdc/sink/mq.go:349 +0x3c0
github.com/pingcap/ticdc/cdc/sink.(*mqSink).run.func1(0x0, 0x0)
	github.com/pingcap/ticdc/cdc/sink/mq.go:279 +0x46
golang.org/x/sync/errgroup.(*Group).Go.func1(0xc00d90fda0, 0xc00595ea40)
	golang.org/x/[email protected]/errgroup/errgroup.go:57 +0x59
created by golang.org/x/sync/errgroup.(*Group).Go
	golang.org/x/[email protected]/errgroup/errgroup.go:54 +0x66
  • resume changefeed can recover
  1. Versions of the cluster

    • Upstream TiDB cluster version (execute SELECT tidb_version(); in a MySQL client):

      v4.0.9
      
    • TiCDC version (execute cdc version):

      v4.0.12
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.0 affects-5.0 affects-5.1 affects-5.2 area/ticdc Issues or PRs related to TiCDC. component/open-protocol Open TiCDC protocol component. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants