emqx/apps/emqx_resource/test
Thales Macedo Garitezi 85089a3210 fix(buffer_worker): correctly flush the buffer workers when inflight table room is made
The previous commit uncovered another bug that was hidden by it:
`maybe_flush_after_async_reply` was sending a message to the wrong
PID.  It was sending a message to `self()` meaning to target a buffer
worker, but `self()` in that context is never the buffer worker, it's
the connector's worker.

This change also revealed a race condition where the buffer workers
could stop flushing messages.  So we piggy-backed on the atomic update
of the table size count to check if the buffer worker should be poked
to continue flushing.  This allows us to get rid of
`maybe_flush_after_async_reply` altogether.
2023-05-16 17:15:42 -03:00
..
emqx_connector_demo.erl fix(buffer_worker): avoid sending late reply messages to callers 2023-04-26 13:18:28 -03:00
emqx_resource_SUITE.erl fix(buffer_worker): correctly flush the buffer workers when inflight table room is made 2023-05-16 17:15:42 -03:00