dmwm / dasgoclient

Data Aggregation System (DAS) Go client
https://cmsweb.cern.ch/das/
MIT License
9 stars 4 forks source link

Events query fails #25

Closed kpedro88 closed 3 years ago

kpedro88 commented 5 years ago

events is listed as a valid key in https://cmsweb.cern.ch/das/services. However, when I try this query in dasgoclient, it fails:

 dasgoclient -query="events dataset=/QCD_Pt_80to120_TuneCP5_13TeV_pythia8/RunIIFall17MiniAODv2-PU2017_12Apr2018_94X_mc2017_realistic_v14-v1/MINIAODSIM"
panic: runtime error: index out of range

goroutine 1 [running]:
main.process(0x7fff0769930e, 0x81, 0x899100, 0x8991a0, 0x1, 0x1, 0x0, 0x0, 0x8a071c, 0x16, ...)
        /afs/cern.ch/work/v/valya/builds/w700/BUILD/slc6_amd64_gcc700/cms/dasgoclient-binary/v02.01.01/dasgoclient/main.go:389 +0x4022
main.main()
        /afs/cern.ch/work/v/valya/builds/w700/BUILD/slc6_amd64_gcc700/cms/dasgoclient-binary/v02.01.01/dasgoclient/main.go:119 +0x912

It is possible to access the same information using summary instead, but maybe this failure can be fixed.

vkuznet commented 5 years ago

Kevin, sorry for late reply, I was traveling.

The events was recently added to DAS to a combined query like: file,run,lumi,events dataset=/QCD_Pt_80to120_TuneCP5_13TeV_pythia8/RunIIFall17MiniAODv2-PU2017_12Apr2018_94X_mc2017_realistic_v14-v1/MINIAODSIM

And, you should not mixed it with nevents attribute of summary query.

The former is a convenient query for users who need to know the breakdown of events within a file, run. This is done via specific DBS API which joins multiple tables (so it is expensive query). While latter is just summary information which include total number of events in a dataset among other attributes like number of blocks, files, etc.

That's why the "events" is not a real look-up keyword, it is part of summary information or convenient keyword to get full breakdown information along other (file,run,lumi) keys.

I don't have intention to implement a query you put into this ticket, but probably I should make more clear description in services page (which is so far is auto-generated from maps). I'll think about it.

Best, Valentin.

On 0, Kevin Pedro notifications@github.com wrote:

events is listed as a valid key in https://cmsweb.cern.ch/das/services. However, when I try this query in dasgoclient, it fails:

 dasgoclient -query="events dataset=/QCD_Pt_80to120_TuneCP5_13TeV_pythia8/RunIIFall17MiniAODv2-PU2017_12Apr2018_94X_mc2017_realistic_v14-v1/MINIAODSIM"
panic: runtime error: index out of range

goroutine 1 [running]:
main.process(0x7fff0769930e, 0x81, 0x899100, 0x8991a0, 0x1, 0x1, 0x0, 0x0, 0x8a071c, 0x16, ...)
        /afs/cern.ch/work/v/valya/builds/w700/BUILD/slc6_amd64_gcc700/cms/dasgoclient-binary/v02.01.01/dasgoclient/main.go:389 +0x4022
main.main()
        /afs/cern.ch/work/v/valya/builds/w700/BUILD/slc6_amd64_gcc700/cms/dasgoclient-binary/v02.01.01/dasgoclient/main.go:119 +0x912

It is possible to access the same information using summary instead, but maybe this failure can be fixed.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/dmwm/dasgoclient/issues/25

vkuznet commented 5 years ago

in production

vkuznet commented 5 years ago

sorry I put wrong statement (wrong tab)