You are currently reviewing an older revision of this page.

KB-1419 KDB numbering goes negative

Symptom

KDB file numbering for one or more engines moves into the negatives. 

For example, the .kdb file on disk is pe-2147483644.kdb and the negative DB ID is referenced in the corresponding db_ log.
In the gateway log we can see that the standard, positive integer numbering is being referenced and then in the next checkpoint, the negative numbering for the DB ID is called.

Cause

This issue can occur after improperly resetting a particular engine's KDBs. It can also happen if you introduce extraneous KDB files.

Action

  1. Shut down the engine with the negative KDB numbering.
  2. Rename the KDB to positive numbers, making sure the most recent is the highest number.

Note: If you are currently running on a negative numbered KDB, you should immediately make sure that there are no positive numbered KDBs in the gw directory. The usual "highest number kdb" rules still apply, so we want to make sure any restart would select the KDB you're currently writing to.

Warning: Renaming .kdb files is not supported beyond what is documented in this article.

Affected Versions

Last Reviewed: November 2017