mattyschell / geodatabase-replication-toiler

Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Punkreplicas should check the age of the input file geodatabase #26

Open mattyschell opened 1 year ago

mattyschell commented 1 year ago

Parent geodatabase replication to (non-punk) child file geodatabases are out of scope for this repository. When enterprise geodatabase replication fails the punk replica creation in this repository doesn't know about it.

We currently perform some basic checks on the existence of input files and directories here in the punk replica creation method:

https://github.com/mattyschell/geodatabase-replication-toiler/blob/9d01c36585739ac3f03f5bf6d5ebfe8f1aeb3950/src/py/punkreplica.py#L33

Add an additional check on the age (parameterized) of the input file geodatabase. In typical usage we are punk replicating each day so any input file geodatabase more than 24 hours old should be rejected.

mattyschell commented 1 year ago

Comment from the data consumer:

If the difference in record count is due to synchronization/timing issue, us sending our data refresh based on the XXXX (snipped) replica is not an issue. If it is something more we need to review our QC processes to be sure we don't allow it to provision XFinal ConsumerX (snipped).

I think this suggests a different issue and possible enhancement. If the QA results are super bad we might want to revert to the last known good punk replica.