xtuml / munin

Apache License 2.0
1 stars 0 forks source link

File sent as list of JSON's causes logging failure #154

Open FreddieMatherSmartDCSIT opened 7 months ago

FreddieMatherSmartDCSIT commented 7 months ago

If a list of events as JSON objects is sent to the Protocol Verifier Kafka AER Reception topic (using the correct payload structure) the PV will fail and the Reception log file will print a long series of never ending ] within the file. This causes the log file to breach the log rotation size and files of up to 8GB have been seen.

Steps to reproduce:

cortlandstarrett commented 7 months ago

Do I understand that you attempted to send an array of events to the topic rather then sending them one at a time?

FreddieMatherSmartDCSIT commented 7 months ago

Yeah sorry my python brain has me talking about lists! Yes we sent an array of events and observed that peculiar behaviour in the logs

cortlandstarrett commented 7 months ago

One more bit of clarification. Did you prepend the string length (our magic length number) to this array?

FreddieMatherSmartDCSIT commented 7 months ago

Yes we prepended the string length to the array.