I see. That message means that the buffer queue has gotten larger than its limit. I have a couple of questions:
1. Does your output plugin handle any connection failure? In other words, what's the expected behavior if the DB gets restarted? If it does not re-establish the connection, then it get get stuck as you described in the thread. You should handle connection failure in the plugin code.
2. As for recovery:
i) Restart the DB
ii) Restart Fluentd
iii) Force the buffer to flush with the -USR1 signal. If you are using td-agent, it would be