Closed vkuznet closed 2 years ago
@amaltaro please provide additional information. The listChildParent
has overlapping ranges like:
[661281877, 661282037],
[661281877, 661282077],
[661281877, 661282117],
[661281877, 661281997]
...
My question is how those should be treated? Does it mean that actual range is second row (since it includes all other ranges)? Why input contains these overlapping inputs?
Alan, upon further reading the input of listChildParent
correspond to [childID, parentID] pairs, that is clear for me now.
According to DBS ORALCE DB we have the following file ids for provided block
SQL> SELECT DISTINCT file_id
from cms_dbs3_k8s_global_owner.FILES f
INNER JOIN cms_dbs3_k8s_global_owner.BLOCKS b on f.block_id=b.block_id
WHERE b.block_name='/VBF_HHTo2G2Tau_CV_1_C2V_1_C3_0_TuneCP5_13TeV-powheg-pythia8/RunIISummer20UL16MiniAODAPVv2-HIG_RunIISummer20UL16MiniAODAPVv2_02457_0_SC_6Steps_PU_May2022_Val_Alanv1-v11/MINIAODSIM#25f5a41e-00e8-4148-9f62-36e2125cef7f' ;
FILE_ID
----------
661281877
661281917
661281957
These set is not identical to what was supplied in your API call and therefore DBS server fails by providing you the following reason: DBSError Code:118 Description:DBS invalid parameter for the DBS API Function:dbs.fileparents.InsertFileParentsBlockTxt Message:not all files present in block
. This happens in this block of code: https://github.com/dmwm/dbs2go/blob/master/dbs/fileparents.go#L345-L350
In dbs logs I see exactly this:
[2022-05-07 13:38:41.821837589 +0000 UTC m=+754317.962041813] fileparents.go:346: block fids != file ids
[2022-05-07 13:38:41.821991131 +0000 UTC m=+754317.962195342] fileparents.go:347: block ids [661281877 661281917 661281957]
[2022-05-07 13:38:41.822190579 +0000 UTC m=+754317.962394788] fileparents.go:348: file ids [661281877 661281877 661281877 661281877 661281917 661281917 661281917 661281917 661281957 661281957 661281957 661281957]
[2022-05-07 13:38:41.822394377 +0000 UTC m=+754317.962598588] fileparents.go:252: unable to insert file parents DBSError Code:118 Description:DBS invalid parameter for the DBS API Function:dbs.fileparents.InsertFileParentsBlockTxt Message:not all files present in block Error: record error
Therefore, I need to understand if logic of checking block file IDs and supplied files IDs is relevant.
@amaltaro , after consulting with DBS python code I identified the issue which was in usage of set's rather then lists and proper comparison of sets. I updated DBS3Writer code to new version and updated it on testbed. After that I run your example and no longer see the error.
Could you please proceed with your testing and insert another data (obviously the data listed in this ticket I already used in my tests) and we need to insert another block. Please report in this ticket your findings.
Alan, upon further reading the input of listChildParent correspond to [childID, parentID] pairs, that is clear for me now.
Yes, that's correct.
Thanks for providing this fix Valentin. I have just successfully updated the parentage information for another set of datasets.
Alan reported the issue with the following:
and it produces the following output: