-
Notifications
You must be signed in to change notification settings - Fork 38
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
Bugfix: Fix final log output missing when instance IDs are used in process list #2830
Comments
…t are created for copying values for process list instances so they are not closed before the end of the run.
…t are created for copying values for process list instances so they are not closed before the end of the run.
Some notes about what I determined was happening and how it was fixed: The To handle Instance Names in the Process List, a new METplusConfig object is created and populated with the values from the To handle this, I modified the METplusConfig class to track if it is the original instance or a "copy" instance used for handling instance IDs. If it is a "copy," then it does not remove the logger handlers, assuming that the original copy will do this at the end of the METplus run when it goes out of scope. There may be a better way to handle this, such as decoupling the logger and the METplusConfig object so that the config does not clean up the logger to prevent the logger's scope to be determined by the config object's scope. |
Describe the Problem
Currently there is a bug when instance names in the process list are used where the final logs like "INFO: METplus has successfully finished running." and the path to the log file are not shown.
Expected Behavior
All log output, including final log info reporting success of overall METplus run and path to the log file, are shown, even when using instance identifiers in the process list.
Environment
Describe your runtime environment:
Any
To Reproduce
Describe the steps to reproduce the behavior:
1. Copy parm/use_cases/met_tool_wrapper/GridStat/GridStat.conf to another directory
2. Modify conf file to replace PROCESS_LIST line:
from:
to:
3. Run use case and confirm that final log output is not shown. Last log line will be success status of grid_stat run
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Milestone and Projects
Define Related Issue(s)
Consider the impact to the other METplus components.
Bugfix Checklist
See the METplus Workflow for details.
Complete the issue definition above, including the Time Estimate and Funding Source.
Fork this repository or create a branch of main_<Version>.
Branch name:
bugfix_<Issue Number>_main_<Version>_<Description>
Fix the bug and test your changes.
Add/update log messages for easier debugging.
Add/update unit tests.
Add/update documentation.
Add any new Python packages to the METplus Components Python Requirements table.
Push local changes to GitHub.
Submit a pull request to merge into main_<Version>.
Pull request:
bugfix <Issue Number> main_<Version> <Description>
Define the pull request metadata, as permissions allow.
Select: Reviewer(s) and Development issue
Select: Milestone as the next bugfix version
Select: Coordinated METplus-X.Y Support project for support of the current coordinated release
Iterate until the reviewer(s) accept and merge your changes.
Delete your fork or branch.
Complete the steps above to fix the bug on the develop branch.
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
Select: Reviewer(s) and Development issue
Select: Milestone as the next official version
Select: METplus-Wrappers-X.Y.Z Development project for development toward the next official release
Close this issue.
The text was updated successfully, but these errors were encountered: