Closed thailowki closed 1 year ago
v23.1 is part of the test matrix.
Is there something in particular that's not working?
the webhook does not work:
ERROR [Apr 25 10:50:28] detail="json: unknown field \"__crdb__\"\ncould not decode payload\ngithub.com/cockroachdb/cdc-sink/internal/source/cdc.(*Handler).webhook\n\t/Users/thaipham/Projects/cdc-sink/internal/source/cdc/webhook.go:80\ngithub.com/cockroachdb/cdc-sink/internal/source/cdc.(*Handler).ServeHTTP\n\t/Users/thaipham/Projects/cdc-sink/internal/source/cdc/handler.go:118\ngithub.com/cockroachdb/cdc-sink/internal/source/server.logWrapper.func1\n\t/Users/thaipham/Projects/cdc-sink/internal/source/server/wrapper.go:99\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2109\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2487\ngolang.org/x/net/http2/h2c.h2cHandler.ServeHTTP\n\t/Users/thaipham/go/pkg/mod/golang.org/x/net@v0.9.0/http2/h2c/h2c.go:125\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2947\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1991\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1165" error="could not decode payload: json: unknown field \"__crdb__\"" uri=/ycsb/public
ERROR [Apr 25 10:50:28] detail="json: unknown field \"__crdb__\"\ncould not decode payload\ngithub.com/cockroachdb/cdc-sink/internal/source/cdc.(*Handler).webhook\n\t/Users/thaipham/Projects/cdc-sink/internal/source/cdc/webhook.go:80\ngithub.com/cockroachdb/cdc-sink/internal/source/cdc.(*Handler).ServeHTTP\n\t/Users/thaipham/Projects/cdc-sink/internal/source/cdc/handler.go:118\ngithub.com/cockroachdb/cdc-sink/internal/source/server.logWrapper.func1\n\t/Users/thaipham/Projects/cdc-sink/internal/source/server/wrapper.go:99\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2109\nnet/http.(*ServeMux).ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2487\ngolang.org/x/net/http2/h2c.h2cHandler.ServeHTTP\n\t/Users/thaipham/go/pkg/mod/golang.org/x/net@v0.9.0/http2/h2c/h2c.go:125\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2947\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1991\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_arm64.s:1165" error="could not decode payload: json: unknown field \"__crdb__\"" uri=/ycsb/public
I guess i caused the value struct has changed in 23.1
What is your CREATE CHANGEFEED
command?
here
CREATE CHANGEFEED INTO 'webhook-https://127.0.0.1:30004/ycsb/public?insecure_tls_skip_verify=true'
WITH diff, updated, resolved='10s', webhook_sink_config='{"Flush":{"Messages":1000,"Frequency":"1s"}}'
AS SELECT *, cdc_prev FROM YCSB.USERTABLE WHERE
event_op() = 'insert' OR
event_op() = 'update' OR
(event_op() = 'delete' AND
crdb_internal.approximate_timestamp(crdb_internal_mvcc_timestamp) < (cdc_prev).crdb_internal_expiration);
@bobvawter do you have an estimate of when this issue might be addressed? thank you!
I noticed CDC queries produce different messages in 23.1 vs ones in 22.2.x
for example:
22.2.x
vs 23.1
would cdc-sink get updated to support 23.1 soon?
Thanks!