-
Notifications
You must be signed in to change notification settings - Fork 173
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
NewUpdateMsgs panic #248
Comments
case replication.UPDATE_ROWS_EVENTv0, replication.UPDATE_ROWS_EVENTv1, replication.UPDATE_ROWS_EVENTv2:
if isBinlogChecker {
log.Debug(".")
} else {
log.Debugf("[binlogTailer] Update rows with: schemaName: %v, tableName: %v", schemaName, tableName)
}
log.Infof("[binlogTailer] NewUpdateMsgs with binlog: %x", ev)
msgs, err := NewUpdateMsgs(
tailer.cfg.Source.Host,
schemaName,
tableName,
int64(e.Header.Timestamp),
received,
ev,
tableDef) them I add a log before NewUpdateMsgs like this |
logs
|
could you print the |
code # mysqlstream/msg.go:475
log.Infof("dataHash key: %v", key) logs
|
I can't reproduce this with the following test added to mysqlstream/msg_test.go. Could you have a try? func TestXXHash(t *testing.T) {
r := require.New(t)
key := [][]interface{}{
{"test", "sbtest10", "PRIMARY", "id", 11750954},
{"test", "sbtest3", "PRIMARY", "id", 11749486},
{"test", "sbtest6", "PRIMARY", "id", 11751615},
{"test", "sbtest3", "PRIMARY", "id", 11749635},
{"test", "sbtest1", "PRIMARY", "id", 11748503},
{"test", "sbtest10", "PRIMARY", "id", 11750955},
{"test", "sbtest9", "PRIMARY", "id", 11750856},
{"test", "sbtest1", "PRIMARY", "id", 11748504},
{"test", "sbtest2", "PRIMARY", "id", 11750166},
}
for _, k := range key {
_, err := hashstructure.Hash(k, &hashOptions)
r.NoError(err)
}
} |
I also can't reproduce with the same data, is other way to catch this bug ? |
You can delete the hashOptions to use default hasher, hopefully it could work. |
The text was updated successfully, but these errors were encountered: