Search docs.molo17.com

    IBM Db2 LUW logo 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_REPLAY row (LR-6004) in LOG_MINER_ERRORS records 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 NULL or missing value in a primary-key or NOT NULL column is refused when it is written (LR-4103, or LR-4104 for an empty row image) instead of reaching the CDC table and failing on the target with SQL0407 on 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-5101 and LR-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-NNNN code: rows in LOG_MINER_ERRORS have an ERROR_CODE and a severity, and the procedure status ends with |LR-NNNN.

    • A transaction that committed after a ROLLBACK TO SAVEPOINT is quarantined with one LR-6004 row 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 its COMMIT or discarded by its ROLLBACK. Force-emitting it (LR-6006) is an explicit opt-in, stale_force=1 in the P_MAX_EVENTS extension.

    • 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 UPDATE no longer produces an extra UPDATE with an empty key, and a real UPDATE of a row whose key is 0 that sets every other column to NULL is 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>) in GS_LOG_LRI for deterministic transaction idempotency.

    • Added pre-validation of staged transaction spill files and safe quarantine in LOG_MINER_ERRORS for 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, and VARBINARY (hex-decoded and bound via SQL_C_BINARY).

    • Tablespace resolution enhanced for 32K-page tablespaces using (TBSPACEID, TABLEID) pairs.

    • Values exceeding FL_MAX_VALUE_LEN are now emitted as NULL instead of empty strings, with diagnostic visibility counters (big=) logged in LOG_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 in LOG_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 db2sysc engine-side memory leak during db2ReadLog calls.

    • 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.

    1.0.8

    Released: August 26, 2026

    • Tagged library used by the IBM Db2 LUW CDC agent.