You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cap the database appender buffer instead of discarding a failed batch #4369
appendersAffects one or more Appender pluginsappenders:JDBCIssue concerning the JDBC appenderenhancementAdditions or updates to featurespriority: P3Enhancement, documentation, tests or build
AbstractDatabaseManager.flush() discards the buffered events when connecting, writing or committing fails (#4318, #4319). That bounds memory, but events the database never saw are lost: with autoCommit=false a failed commit rolls back, and a failed connect never sends anything.
An alternative is to keep the batch and cap the buffer at bufferSize, so a short outage ends with the events written once the connection returns. That needs a policy decision: which event is dropped when the buffer is full, the oldest or the newest, and whether that is configurable.
Raised on #4319, where the contributor proposed capping. Kept separate so the leak fix stays backportable.
appendersAffects one or more Appender pluginsappenders:JDBCIssue concerning the JDBC appenderenhancementAdditions or updates to featurespriority: P3Enhancement, documentation, tests or build
Activity
ramanathan1504 commentedon Nov 7, 2026
Grouping related reports here so they are tracked in one place (JDBC appender behaviour on a failed batch):