The patch actually resolved two issues. The first issue was related to the reconnection problem with snmptrapd. The second issue was that whenever the snmptrapd hit the MySQL wait timeout, all events in the queue were being cleared instead of resent. As the error was expected, it wasn't ideal to have the events dropped. Therefore, I discovered that the same issue also existed in bionic. As a result, I believe that it would be better to make a change in bionic to address this issue as well.
The patch actually resolved two issues. The first issue was related to the reconnection problem with snmptrapd. The second issue was that whenever the snmptrapd hit the MySQL wait timeout, all events in the queue were being cleared instead of resent. As the error was expected, it wasn't ideal to have the events dropped. Therefore, I discovered that the same issue also existed in bionic. As a result, I believe that it would be better to make a change in bionic to address this issue as well.