On 25.01.22 06:18, Amit Kapila wrote:
I think to avoid this we can send a message to clear this (at least to clear XID in the view) after skipping the xact but there is no guarantee that it will be received by the stats collector. Additionally, the worker can periodically (say after every N (100, 500, etc) successful transaction) send a clear message after successful apply. This will ensure that eventually the error entry will be cleared.
Well, I think we need *some* solution for now. We can't leave a footgun where you say, "skip transaction 700", somehow transaction 700 doesn't happen, the whole thing gets forgotten, but then 3 months later, the next transaction 700 mysteriously gets dropped.