we change the config parameters in cluster then the config file records.config becomes empty in race case when the system disk is full.
in lib/records/RecLocal.cc and lib/records/RecProcess.cc:
records.config maybe empty when the disk is full because we write records.config directly. we should write to a temp file, then rename it to records.config.
one of the codes as:
in mgmt/Rollback.cc: we check the result of write, but do NOT check the return code of fsync and close.
the codes as:
we should check the result of closeFile(diskFD)