Open wfastrononomer opened 2 months ago
How many ingest files haven't been ingested and why - let's convert this to a csv and find which catalogueIDs are missing?
np.unique(rawData['catalogueID'])
Check places like: /mnt/ramses24/cu34id39441_unas-1_testVSAnjcUVDR6_casu.log
--> /mnt/ramses24/cu34id39441_unas-1_testVSAnjcUVDR6_casu.log.failed
Check failed logs.
Reran first --> same error, but why?
Ingesting csv file using Ingester.ingestTable works fine!!
Also ingesting binary file using Ingester.ingestTable works fine!!
Is this an issue with IngestCuFiles?? Overly complicated?
I should replace extp.run(IngestCuFiles) with Ingester.ingestTable() calls - but need to know which binary files.
Also should replace some of extp.run(DataBuilder)
But is this the case for after first part. Could compare contents of /mnt/ramses24/cu34id. and this
5 files don't ingest. First 5. But when I randomly tried some other files before they did. Have I made a mistake with set up. Why did my tester work, but this code didn't?
" # 2024-09-08 11:29:51.13: Selected 5 binary files to ingest
" # 2024-09-08 11:29:51.13: Checking database schema for ingest tables...
" # 2024-09-08 11:29:54.29: [32971] Ingesting into ultravistaMapRemeasurementAstro
metry...
" # 2024-09-08 11:29:54.50: [32971]
This ingests fine using CheckMapRemeasurementIngests - why?
" # 2024-09-08 11:29:54.70: [37881] Ingesting into ultravistaMapRemeasurementAstrometry...
" # 2024-09-08 11:29:54.91: [37881]
It seems that setting isOrdered=True causes the issues with foreign key constraint. I am not sure why though.
" # 2024-09-02 13:49:09.52: [39441] Ingest file left on file share: //unas/
samba/share/cu34id39441_unas-1_testVSAnjcUVDR6_casu_ultravistaMapRemeasurementRa
w.dat1
" # 2024-09-02 13:49:09.52: mx.ODBC.Error.IntegrityError: The INSERT state
ment conflicted with the FOREIGN KEY constraint "fk_ultravistaMapRemeasurementRa
w_catalogueID_to_MapFrameStatus_catalogueID". The conflict occurred in database
"testVSAnjcUVDR6", table "dbo.MapFrameStatus", column 'catalogueID'.
Script executed: BULK INSERT ultravistaMapRemeasurementRaw FROM '\UNAS\share\cu
34id39441_unas-1_testVSAnjcUVDR6_casu_ultravistaMapRemeasurementRaw.dat1' WITH (
firstrow=1, datafiletype='native', tablock, check_constraints, order(catalogueID
,apertureID))
Traceback (most recent call last): File "/unas/njc/VDFS/ListDrivenClean/src/curation/wsatools/DbConnect/IngIngest er.py", line 511, in tryIngest ingestCU(ingLogFile, histInfo, ingestOrder, fileInfo) File "/unas/njc/VDFS/ListDrivenClean/src/curation/wsatools/DbConnect/IngIngest er.py", line 479, in ingestCU4 isCu3=False, cuEventID=ingLogFile.cuEventID) File "/unas/njc/VDFS/ListDrivenClean/src/curation/wsatools/DbConnect/IngIngest er.py", line 872, in ingest deleteFile=False, isOrdered=not isCu3)