Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8_0_X] Protect storage accounting UDP messages from NaN, and Use StatisticsSenderService for all framework files #36632

Merged

Conversation

makortel
Copy link
Contributor

@makortel makortel commented Jan 5, 2022

PR description:

This PR is a combined backport of #35362 and #35505, following requests in #29412 and #36349. It also contains small part of #26789 and #26729 to make the cherry-picks easier, and #36403 (fully) as further cleanup.

Making backport now because #36580 opens door for a new 8_0_X release to be actually used in production.

PR validation:

Unit tests run.

makortel and others added 12 commits January 5, 2022 09:54
Backport from 9fc3f03
Backport from f49614b
Backport from 08cd101
NaN's were being reported from the values computed using sqrt. This most likely was from the different variables not being updated atomically together.
Previously, each try to open the file using a different PFN would report an open attempt for the same LFN. This meant we could have multiple opens but only one close for a given LFN.
When sending information to the StatisticsSenderService, the file LFN or URL must be supplied.
Send statistics for primary, secondary, and embedded files.
The aggregate file statistics are only reset on primary file close boundaries to keep the behavior the same as previous.
Changed all calls to closeFile_() to be the new closeFile()
Now broadcasts how the file is used.
Needed to compile tbb::concurrent_unordered_map<X, FileInfo>
@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 5, 2022

A new Pull Request was created by @makortel (Matti Kortelainen) for CMSSW_8_0_X.

It involves the following packages:

  • IOPool/Input (core)
  • IOPool/SecondaryInput (core)
  • IOPool/TFileAdaptor (core)
  • Utilities/StorageFactory (core)
  • Utilities/XrdAdaptor (core)

@cmsbuild, @smuzaffar, @Dr15Jones, @makortel can you please review it and eventually sign? Thanks.
@wddgit this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

makortel commented Jan 5, 2022

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 5, 2022

-1

Failed Tests: RelVals
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-025e10/21538/summary.html
COMMIT: 0c6aae7
CMSSW: CMSSW_8_0_X_2022-01-03-2300/slc6_amd64_gcc530
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36632/21538/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

----- Begin Fatal Exception 05-Jan-2022 17:23:55 CET-----------------------
An exception of category 'FallbackFileOpenError' occurred while
   [0] Constructing the EventProcessor
   [1] Constructing module: class=MixingModule label='mix'
   [2] Calling RootFileSequenceBase::initTheFile()
   [3] Calling StorageFactory::open()
   [4] Calling XrdFile::open()
Exception Message:
Failed to open the file 'root://cms-xrd-global.cern.ch//store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root'
   Additional Info:
      [a] XrdCl::File::Open(name='root://eoscms.cern.ch//eos/cms/store/user/cmsbuild/store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root', flags=0x10, permissions=0660) => error '[ERROR] Server responded with an error: [3011] Unable to open file /eos/cms/store/user/cmsbuild/store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root; No such file or directory
' (errno=3011, code=400). No additional data servers were found.
      [b] Last URL tried: root://eoscms.cern.ch:1094//eos/cms/store/user/cmsbuild/store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root?tried=
      [c] Problematic data server: eoscms.cern.ch:1094
      [d] Disabled source: eoscms.cern.ch:1094
      [e] Input file root://eoscms.cern.ch//eos/cms/store/user/cmsbuild/store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root could not be opened.
Fallback Input file root://cms-xrd-global.cern.ch//store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root also could not be opened.
Original exception info is above; fallback exception info is below.
      [f] XrdCl::File::Open(name='root://cms-xrd-global.cern.ch//store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root', flags=0x10, permissions=0660) => error '[ERROR] Server responded with an error: [3011] No servers are available to read the file.
' (errno=3011, code=400). No additional data servers were found.
      [g] Last URL tried: root://cms-xrd-global.cern.ch:1094//store/relval/CMSSW_8_0_0_patch1/RelValMinBias_13/GEN-SIM/80X_upgrade2017_design_v4_UPG17-v1/10000/2006F97B-77DD-E511-BC51-0CC47A745298.root?tried=
      [h] Problematic data server: cms-xrd-global.cern.ch:1094
      [i] Disabled source: cms-xrd-global.cern.ch:1094
----- End Fatal Exception -------------------------------------------------

@smuzaffar
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-025e10/21662/summary.html
COMMIT: 0c6aae7
CMSSW: CMSSW_8_0_X_2022-01-09-0000/slc6_amd64_gcc530
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/36632/21662/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

There are some workflows for which there are errors in the baseline:
10224.0 step 2
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 14
  • DQMHistoTests: Total histograms compared: 1020424
  • DQMHistoTests: Total failures: 839
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 1019477
  • DQMHistoTests: Total skipped: 108
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -13 KiB( 13 files compared)
  • Checked 60 log files, 11 edm output root files, 14 DQM output files

@makortel
Copy link
Contributor Author

+core

Comparison differences are same as in #36580 (comment)

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_12_3_X is complete. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Jan 13, 2022

+1

@cmsbuild cmsbuild merged commit b0755ee into cms-sw:CMSSW_8_0_X Jan 13, 2022
@makortel makortel deleted the backportStatisticsSenderService_80x branch January 13, 2022 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants