Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

fix(up): the wadm pidfile is not removed when wadm is not started #631

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

Iceber
Copy link
Member

@Iceber Iceber commented Jun 26, 2023

Feature or Problem

  • Stops the wadm process and removes the wadm pidfile if other actions fail
  • When wash does not start the wadm process, no pidfile files that may exist are removed at any time.

The pidfile file may have been created by another wash up.

Also, this pr ignores the case that the pidfile does not exist when it is removed, and the file should not cause a failure if it does not exist

Related Issues

fix: #634

Release Information

Consumer Impact

Testing

Built on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Tested on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Unit Test(s)

Acceptance or Integration

Manual Verification

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
Copy link
Member

@brooksmtownsend brooksmtownsend left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix @Iceber ! Thank you for filing the issue and then taking care of it 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] Unsuccessful exit when using wash up --disable-wadm
2 participants