Project

General

Profile

Bug #23489

findGlobalConfigurations throws a runtime_error exception while accessing the mongodb backend

Added by Gennadiy Lukhanin about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Category:
artdaq-database
Target version:
-
Start date:
10/29/2019
Due date:
% Done:

100%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

The findGlobalConfigurations function of the DatabaseConfigurationInterface class throws a runtime_error exception while accessing the mongodb backend.

ots:otsdaq/otsdaq/ConfigurationInterface/DatabaseConfigurationInterface.cc [232]
Filter string '' yielded DBI Exception:---- ConfigurationInterface::findGlobalConfigurations BEGIN
  Exception:---- ConfigurationInterface::findGlobalConfigurations BEGIN
    Process exitedNoneError: Dynamic exception type: artdaq::database::runtime_error
    std::exception::what: ---- MongoDB BEGIN
      Search JSONDocument is missing the "configurations.name" element.
    ---- MongoDB END

  ---- ConfigurationInterface::findGlobalConfigurations END
---- ConfigurationInterface::findGlobalConfigurations END

History

#1 Updated by Gennadiy Lukhanin about 1 month ago

Git branch: bug/23489_findGlobalConfigurations_runtime_error

Added unit tests OtsDaqCPPInterface_filesystem_t and OtsDaqCPPInterface_mongo_t

Testing procedure: run automated unit tests after the build.

The following tests are expected to fail on mu2edaq11:
113 - MongoFhicl_search1_002_t (Failed)
130 - UcondJson_insert_001_t (Failed)
131 - UcondJson_update_003_t (Failed)
132 - UcondJson_search2_004_t (Failed)

#2 Updated by Gennadiy Lukhanin about 1 month ago

Testing steps:
1. Open the buildmaster URL below in Firefox and authenticate with the CIlogin certificate.
https://buildmaster.fnal.gov/buildmaster/view/artdaq/job/artdaq-database-build/
2. Click on the "Build with parameters" link.
3. Change build parameters
a. set ARTDAQ_DATABASE_GITBRANCH to the "bug/23489_findGlobalConfigurations_runtime_error" branch,
b. set VERSION to v1_04_79.
4. Click on the "Build" button.
5. Wait for ~40 mins for the build to complete.
6. Go back to the artdaq_database page at https://buildmaster.fnal.gov/buildmaster/view/artdaq/job/artdaq-database-build/.
7. Move mouse over the green sphere, click on the arrow next to it and select the "Workspace" menu option.
8. Click on the "copyBack" folder icon.
9. Click on the "test_artdaq-databas.log" file and search for the "OtsDaqCPPInterface_filesystem_t“ string.
10. Confirm that tests OtsDaqCPPInterface_filesystem_t and OtsDaqCPPInterface_mongo_t have succeeded.

#3 Updated by Gennadiy Lukhanin about 1 month ago

  • % Done changed from 0 to 100
  • Status changed from Assigned to Resolved


Also available in: Atom PDF