From 23717cb920af0b45385c683a6cb13bc48500bacb Mon Sep 17 00:00:00 2001 From: zhaoxinyu Date: Thu, 13 Oct 2022 17:33:49 +0800 Subject: [PATCH] remove a redundant comment --- cdc/sink/codec/csv/csv_decoder_test.go | 2 -- errors.toml | 10 ++++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cdc/sink/codec/csv/csv_decoder_test.go b/cdc/sink/codec/csv/csv_decoder_test.go index d4156668ad5..da14a4df4c0 100644 --- a/cdc/sink/codec/csv/csv_decoder_test.go +++ b/cdc/sink/codec/csv/csv_decoder_test.go @@ -14,7 +14,6 @@ package csv import ( "context" - "fmt" "testing" "github.com/pingcap/tiflow/cdc/model" @@ -50,6 +49,5 @@ func TestCSVBatchDecoder(t *testing.T) { } _, hasNext, _ := decoder.HasNext() - fmt.Println(hasNext) require.False(t, hasNext) } diff --git a/errors.toml b/errors.toml index 11441cae576..1f725107c24 100755 --- a/errors.toml +++ b/errors.toml @@ -86,6 +86,16 @@ error = ''' puller mem buffer reach size limit ''' +["CDC:ErrCSVDecodeFailed"] +error = ''' +csv decode failed +''' + +["CDC:ErrCSVEncodeFailed"] +error = ''' +csv encode failed +''' + ["CDC:ErrCachedTSONotExists"] error = ''' GetCachedCurrentVersion: cache entry does not exist