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

Missing files generate a warning with htar, failure with tar #2213

Closed
DavidHuber-NOAA opened this issue Jan 10, 2024 · 2 comments
Closed

Missing files generate a warning with htar, failure with tar #2213

DavidHuber-NOAA opened this issue Jan 10, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@DavidHuber-NOAA
Copy link
Contributor

What is wrong?

Local ROTDIR archiving (LOCALARCH="YES") fails on the first half cycle as the gdasenkf log files for esfc, ecen, eobs, and eupd do not exist. These are requested for archiving on every cycle via

for fstep in eobs ecen esfc eupd efcs epos ; do
echo "logs/${PDY}${cyc}/${RUN}${fstep}*.log"
done

A warning is generated when archiving to HPSS, but tar generates a non-zero status.

What should have happened?

Either archiving of these files should not be attempted on the first half cycle or an error should not be generated by tar.

What machines are impacted?

Orion

Steps to reproduce

  1. Generate an experiment with LOCALARCH="YES"
  2. Run the first half enkfgdas cycle
  3. Check the status of the enkfgdasearc00 job

Additional information

Also an issue for S4. It should also be mentioned that there are possibly other missing files that will cause tar to fail. I have not tested beyond the enkfgdasearc00 job.

Do you have a proposed solution?

Add a test inside of hpssarch_gen.sh similar to the one for eomg logs that checks for the existence of the enkfgdas logs.

@DavidHuber-NOAA DavidHuber-NOAA added bug Something isn't working triage Issues that are triage and removed triage Issues that are triage labels Jan 10, 2024
@DavidHuber-NOAA
Copy link
Contributor Author

Per a discussion with @WalterKolczynski-NOAA, missing files should generate errors in most cases and warnings in cases that a missing file could be an expected outcome (e.g. missing observational data resulting in the GSI-monitor not producing files for a given instrument). Thus, a wrapper function may be necessary to check for the existence of files before issuing errors or warnings and not rely on tar or htar to produce the desired effect.

@DavidHuber-NOAA
Copy link
Contributor Author

The premise of this issue isn't true. htar does issue an error if a file is missing. I seem to have misinterpreted the logs. That said, there are cases where missing files are OK (e.g. #2076), but those special cases can be handled on a case-by-case basis. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant