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:"