DFO-Ocean-Navigator / netcdf-timestamp-mapper

Maps timestamps (and variables) to a corresponding nc file using sqlite3.
https://dfo-ocean-navigator.github.io/netcdf-timestamp-mapper/
GNU General Public License v3.0
1 stars 1 forks source link

Investigate crash with incremental indexing #3

Closed htmlboss closed 4 years ago

htmlboss commented 4 years ago

Problem

When running the index tool with the --file-list argument against a database that has already been created causes a crash when the DatasetDesc is being serialized into the Database.

Cause

This is most likely caused by some of the columns being created with the UNIQUE attribute, and Database is trying to insert duplicate values.

Fix

Using the --file-list argument or not, there should be an implicit check against the relevant columns to prevent this crash.

htmlboss commented 4 years ago

Fixed with 7774f23