Skip to content

MGM: FlatScheduler: do not log crit messages before we initialize

Abhishek Lekshmanan requested to merge EOS-6084 into master

This commit includes the following set of changes

  • FsScheduler: introduce as mIsRunning atomic bool that tracks when we intialize. This happens at the end of XrdMgmOfs::Configure() where updateClusterData() is invoked where we set this to true.
  • FsConfigListener: call the methods only when:
    • isRunning is true
    • both fsid & space is initialized -- When FSs are still booting not all params get populated, so skip updates until we've space also
    • Also use this for the Drain status setting
  • Nullptr checks - while we already initialize when gOFS is initialized, just do explicit nullptr checks to be safer

Signed-off-by: Abhishek Lekshmanan abhishek.lekshmanan@cern.ch

Closes EOS-6084

Edited by Abhishek Lekshmanan

Merge request reports