Packetbeat handle error when exec show databases

  • Version:
    master(newest)
  • Operating System:
    macos 11.1
  • Steps to Reproduce:
    env:mysql5.7,mysql8.0
    packetbeat
    when exec "show databases"
    then the program will never recovery.
    because the var complete return false,and cause foller-up always wrong.

packetbeat/protos/mysql/mysql.go mysqlMessageParser :

table /* table */, _ /*off*/, complete, err := readLstring(s.data, off)


Could you please share the error message from Packetbeat?

no error message
when i was debug, and find this bug

just add this block

if s.fieldOffset == m.numberOfFields {
	s.parseState = mysqlStateEatRows
}

in the end of "case mysqlStateEatFields:"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.