You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parse file, send each certificate to CertificateProcessor
In multiple routines, create batches of certificates, in CertificateProcessor
For each batch, in an independent routine, update the DB.
The CertificateProcessor waits until all its batches are updated.
The Processor waits until the CertificateProcessor is done
The Processor calls OnBundleFinished if the # of certs is a bundle, or at end
The bug appears:
When there is no bundle size defined: the call to OnBundleFinished is done before the CertProcessor is done.
When there is a defined bundle size: the CertProcessor is still running.
This bug makes the last batches not to be ready for the next steps, done on OnBundleFinished,
thus creating an incomplete view of the certificate landscape represented by the files.
We need to:
Just move the code to solve the first bug.
On each bundle:
Close the parsedCertCh and wait for CertProcessor to finish.
Create a new parsedCertCh and a new CertProcessor
The text was updated successfully, but these errors were encountered:
The
ingest
command ingests files into the DB.The processing pipeline is:
Processor
CertificateProcessor
CertificateProcessor
CertificateProcessor
waits until all its batches are updated.Processor
waits until theCertificateProcessor
is doneProcessor
callsOnBundleFinished
if the # of certs is a bundle, or at endThe bug appears:
OnBundleFinished
is done before theCertProcessor
is done.CertProcessor
is still running.This bug makes the last batches not to be ready for the next steps, done on
OnBundleFinished
,thus creating an incomplete view of the certificate landscape represented by the files.
We need to:
parsedCertCh
and wait forCertProcessor
to finish.parsedCertCh
and a newCertProcessor
The text was updated successfully, but these errors were encountered: