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

deb: improve process timing for safety and simplicity #762

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

daipom
Copy link
Contributor

@daipom daipom commented Dec 10, 2024

Points

  • FROM-package just leaves tmp files if it supports the features.
  • TO-package trigger the features if there are those tmp files.
  • Thus, we don't need to check the version.
  • Make installing plugin and restarting the same condition.

Before

  1. from-prerm(upgrade): Do nothing.
  2. to-preinst(upgrade): Collect plugin-list. Confirm version.
  3. Install TO-package
  4. from-postrm(upgrade): Do nothing.
  5. Uninstall FROM-package
  6. to-postinst(configure): Install plugin and restart if need.

After

  1. from-prerm(upgrade):
    • Check auto or not.
    • Leave plugin-list and pid if need.
  2. to-preinst(upgrade): Set tmp files for TO-package.
  3. Install TO-package
  4. from-postrm(upgrade): Clean tmp files of FROM-package.
  5. Uninstall FROM-package
  6. to-postinst(configure): Install plugin and restart if need.

@daipom daipom marked this pull request as ready for review December 10, 2024 09:49
@daipom daipom requested review from kenhys and Watson1978 December 10, 2024 09:50
@daipom daipom force-pushed the deb-improve-process-timing branch from 38e05e9 to 0b673de Compare December 10, 2024 10:44
Copy link
Contributor

@Watson1978 Watson1978 left a comment

Choose a reason for hiding this comment

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

👍🏻

@daipom daipom force-pushed the deb-improve-process-timing branch from 0b673de to 9530ff2 Compare December 11, 2024 04:53
Points

* FROM-package just leaves tmp files if it supports the features.
* TO-package trigger the features if there are those tmp files.
* Thus, we don't need to check the version.
* Make installing plugin and restarting the same condition.

Before

1. from-prerm(upgrade): Do nothing.
2. to-preinst(upgrade): Collect plugin-list. Confirm version.
3. Install TO-package
4. from-postrm(upgrade): Do nothing.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

After

1. from-prerm(upgrade):
   * Check auto or not.
   * Leave plugin-list and pid if need.
2. to-preinst(upgrade): Set tmp files for TO-package.
3. Install TO-package
4. from-postrm(upgrade): Clean tmp files of FROM-package.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

Signed-off-by: Daijiro Fukuda <[email protected]>
@daipom daipom force-pushed the deb-improve-process-timing branch from 9530ff2 to be1f3fe Compare December 11, 2024 04:54
Copy link
Contributor

@kenhys kenhys left a comment

Choose a reason for hiding this comment

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

LGTM.

@daipom
Copy link
Contributor Author

daipom commented Dec 11, 2024

Thanks for your review!

@daipom daipom merged commit 262d113 into fluent:feature-nodowntime Dec 11, 2024
179 checks passed
@daipom daipom deleted the deb-improve-process-timing branch December 11, 2024 06:01
kenhys pushed a commit that referenced this pull request Dec 11, 2024
Points

* FROM-package just leaves tmp files if it supports the features.
* TO-package trigger the features if there are those tmp files.
* Thus, we don't need to check the version.
* Make installing plugin and restarting the same condition.

Before

1. from-prerm(upgrade): Do nothing.
2. to-preinst(upgrade): Collect plugin-list. Confirm version.
3. Install TO-package
4. from-postrm(upgrade): Do nothing.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

After

1. from-prerm(upgrade):
   * Check auto or not.
   * Leave plugin-list and pid if need.
2. to-preinst(upgrade): Set tmp files for TO-package.
3. Install TO-package
4. from-postrm(upgrade): Clean tmp files of FROM-package.
5. Uninstall FROM-package
6. to-postinst(configure): Install plugin and restart if need.

Signed-off-by: Daijiro Fukuda <[email protected]>
@kenhys kenhys added this to the 5.2.0 milestone Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants