Re: [Brahms-dev-l] filecatalogue problem

From: Hongyan Yang <Hongyan.Yang@ift.uib.no>
Date: Wed Nov 30 2005 - 07:26:12 EST
Hi Flemming,
    I also felt that. You can find the script in the attachment or at 
rcas machine: 
~hongyan/brahms_ana/ana/app/calib/tof/timeoffset/TofTimeOffset_cal.C

Thanks,
   Hongyan

Flemming Videbaek wrote:

> Hi
>
> I don't have a solution - but the sympthom is that for some reason 
> there seem to be 2(two) entries in the case of
> a request for a GetSingle entry. The last number in the SELECT 
> statement gives the number of queries found.
>
>
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq008v0p2.root
>> Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on 
>> query SELECT * FROM ProductionVersion WHERE DataTypeId = 2 and 
>> ProductionVerNo = 2 and RunPeriod = 3: 2
>>
>
> Could you post your script? This is helpfull and essential to see what 
> calls you are trying to make.
> /fv
>
> --------------------------------------------
> Flemming Videbaek
> Physics Department Bldg 510-D
> Brrokhaven National Laboratory
> Upton, NY11973
>
> phone: 631-344-4106
> fax:        631-344-1334
> e-mail: videbaek @ bnl.gov
> ----- Original Message ----- From: "Hongyan Yang" 
> <Hongyan.Yang@ift.uib.no>
> To: "Brahms-dev" <brahms-dev-l@lists.bnl.gov>
> Sent: Wednesday, November 30, 2005 4:47 AM
> Subject: [Brahms-dev-l] filecatalogue problem
>
>
>> Hei,
>>   my scripts are using the filecatalogue to search for the latest 
>> version of gtr files - it works very well for those gtr files with 
>> production version 1, but for those of production version 2, I got 
>> the following message, and followed by a "core dumped", i.e.
>>
>> ---------------------------------
>> $ bratmain TofTimeOffset_cal.C  -P 2 -r 8390 -e 100 --mrs (just for 
>> testing, the script is configured with option "-P 1" without any 
>> problem)
>> ....
>> connected.
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq000v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq001v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq002v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq003v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq004v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq005v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq006v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq007v0p2.root
>> adding a file: 
>> /brahms/data21//data/run03/dau/200/r8390/gtr/gtr008390seq008v0p2.root
>> Warning in <BrRdbmDb::GetSingle>: Too many or too few matches on 
>> query SELECT * FROM ProductionVersion WHERE DataTypeId = 2 and 
>> ProductionVerNo = 2 and RunPeriod = 3: 2
>>
>> *** Break *** segmentation violation
>> Generating stack trace...
>> /usr/bin/addr2line: bratmain: No such file or directory
>> /usr/bin/addr2line: bratmain: No such file or directory
>> 0x0645a98b in BrRdbmFileCatalogsDb::GetProductionVersion(char const*) 
>> at 
>> /brahms/u/hongyan/work/brat/db/filecatalog/BrRdbmFileCatalogsDb.cxx:352 
>> from /brahms/u/hongyan/usr/lib/libBratDb.so.2
>> 0x0645c114 in BrFileCatalogInfo::Update(int, char const*, int, int) 
>> at /opt/brahms/pro/include/root/TString.h:239 from 
>> /brahms/u/hongyan/usr/lib/libBratDb.so.2
>> 0x0645b757 in BrFileCatalogManager::Update(int, char const*, int, 
>> int) at 
>> /brahms/u/hongyan/work/brat/db/filecatalog/BrFileCatalogManager.cxx:163 
>> from /brahms/u/hongyan/usr/lib/libBratDb.so.2
>> ....
>> Abort (core dumped)
>> ------------------------------------
>>
>> Have anyone got this problem before? I assume it's the problem with 
>> the filecatalogue, or the database for gtr files with new production 
>> version are not ready for the filecatalogue yet. If you have a clue 
>> about it, please let me know.
>>
>> Thanks a lot for your help in advance,
>>  Hongyan
>>   
>> P.S. The location for the script which caused the above break is at  
>> ~hongyan/brahms_ana/ana/app/calib/tof/timeoffset/TofTimeOffset_cal.C
>> _______________________________________________
>> Brahms-dev-l mailing list
>> Brahms-dev-l@lists.bnl.gov
>> http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
>>


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l

Received on Wed Nov 30 07:26:35 2005

This archive was generated by hypermail 2.1.8 : Wed Nov 30 2005 - 07:26:42 EST