IBM Db2 LUW log reader library changelog
This page tracks the libdb2.so native shared library used by the IBM Db2 LUW CDC agent (GS_SP_LOGMINER). It is separate from the CDC agent changelog.
Download and deployment instructions: Setting up libdb2.so.
Release notes
1.0.17
Released: November 2, 2026
-
A committed transaction whose rows cannot be written is now quarantined instead of stopping CDC: its CDC rows are rolled back to a savepoint, a
PENDING_REPLAYrow (LR-6004) inLOG_MINER_ERRORSrecords it next to the row naming the cause, and the checkpoint moves on. This applies to transactions kept in memory, spilled to disk during the poll, and staged across polls (GSSD-1478). -
A row with a
NULLor missing value in a primary-key orNOT NULLcolumn is refused when it is written (LR-4103, orLR-4104for an empty row image) instead of reaching the CDC table and failing on the target withSQL0407on every retry (GSSD-1478). -
A CDC insert that fails because of the row itself (SQLSTATE classes 21, 22 and 23, for example a value too long or a check constraint) quarantines its transaction (
LR-5101andLR-6004). Connection, resource (for example a full transaction log), setup (missing CDC table or privilege) and memory failures fail the poll instead, and the next poll retries it. -
A deadlock or lock timeout on a CDC insert (SQLSTATE class 40) fails the poll, so the rows Db2 rolled back are read again, instead of moving the checkpoint past them.
-
Every error and status now carries an
LR-NNNNcode: rows inLOG_MINER_ERRORShave anERROR_CODEand a severity, and the procedure status ends with|LR-NNNN. -
A transaction that committed after a
ROLLBACK TO SAVEPOINTis quarantined with oneLR-6004row per table it changed, naming the table to re-sync, instead of being dropped without a trace. -
A transaction left open longer than the stale threshold (300 seconds) is no longer emitted as if committed: it stays staged, is reported once as
PENDING_STALE(LR-6005), and is replayed by itsCOMMITor discarded by itsROLLBACK. Force-emitting it (LR-6006) is an explicit opt-in,stale_force=1in theP_MAX_EVENTSextension. -
Spill files of large transactions are kept until the poll that replays them has committed, and write errors on them are detected. A missing, empty or corrupt spill file quarantines its transaction instead of failing every poll.
-
The client code page is set to the database code page, so text is no longer converted (and corrupted) on both Unicode and non-Unicode databases.
-
Db2 12.1: a row-migrating
UPDATEno longer produces an extraUPDATEwith an empty key, and a realUPDATEof a row whose key is0that sets every other column toNULLis no longer dropped. -
A poll that reads nothing no longer writes a commit record to the Db2 log, and the next poll resumes from where it stopped reading.
1.0.16
Released: October 22, 2026
-
Tables with up to 1,024 columns are supported (previously 128).
-
The worker process is stopped only when it stops making progress (no SQL call, log window or spill write for 600 seconds), instead of after a fixed time: a long transaction that is still being processed is no longer killed and replayed from the same point on every poll.
1.0.15
Released: October 15, 2026
-
Added self-exclusion support and propagated COMMIT authorization ID (
GS_SESSION_USER_NAME) across standard and staged replay paths, automatically ignoring internal CDC tables (LOG_MINER_*and CDC target tables). -
Replaced synthetic
LSN:<hash>keys with real log-record identifier keys (LRI:<part1>:<part2>:<op>) inGS_LOG_LRIfor deterministic transaction idempotency. -
Added pre-validation of staged transaction spill files and safe quarantine in
LOG_MINER_ERRORSfor missing or corrupted payloads, preventing silent failures or broken re-plays. -
Corrected
TIMESTAMP(p)decoding across all fractional-second precisions (0 to 12) based on catalog metadata. -
Added binary column decoding for
BLOB,BINARY, andVARBINARY(hex-decoded and bound viaSQL_C_BINARY). -
Tablespace resolution enhanced for 32K-page tablespaces using
(TBSPACEID, TABLEID)pairs. -
Values exceeding
FL_MAX_VALUE_LENare now emitted asNULLinstead of empty strings, with diagnostic visibility counters (big=) logged inLOG_MINER_ERRORS. -
Improved row migration and overflow handling using log record row-image flags (
0x3C), correctly pairing overflow INSERTs with forwarding-pointer UPDATEs and discarding pointer-cleanup DELETE stubs. -
Added loss-visibility diagnostic counters (
ovfu=,big=,binf=) and error reporting inLOG_MINER_ERRORS.
1.0.14
Released: September 16, 2026
-
Corrected nullable DECIMAL storage and trailing null-indicator byte consumption in transaction log decoding, preventing a 1-byte offset shift on subsequent nullable columns (such as SMALLINT and BIGINT).
1.0.13
Released: September 4, 2026
-
Compatibility baseline updated to IBM Db2 for LUW 11.5.8.0+ (and 12.1+) to prevent
db2syscengine-side memory leak duringdb2ReadLogcalls. -
Corrected DECIMAL nullable column offset decoding in transaction log records.
-
Corrected trailing null flag handling for nullable types in DCC DELETE before-images.
-
Optimized staging and chunked commits for large transactions.