Skip to content

Conversation

@gaozhangmin
Copy link
Contributor

@gaozhangmin gaozhangmin commented Jul 13, 2021

Fixes #11298

Motivation

Add ability to restart service for easy use

Modifications

In pulsar-daemon script, add restart

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no) no
  • The public API: (yes / no) no
  • The schema: (yes / no / don't know) no
  • The default values of configurations: (yes / no) no
  • The wire protocol: (yes / no) no
  • The rest endpoints: (yes / no) no
  • The admin cli options: (yes / no) no
  • Anything that affects deployment: (yes / no / don't know)no

Documentation

  • Does this pull request introduce a new feature? (yes / no) no
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) not documented

@gaozhangmin gaozhangmin changed the title [Issue ##11298]pulsar-daemon script support restart [Issue #11298]pulsar-daemon script support restart Jul 13, 2021
@gaozhangmin
Copy link
Contributor Author

Hi @eolivelli Could u please review this pr?

@sijie sijie added this to the 2.9.0 milestone Jul 14, 2021
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Generally looks good.

What about stopping the daemon using '-force'?
Otherwise you are not guaranteed that the process is really killed

@gaozhangmin
Copy link
Contributor Author

Generally looks good.

What about stopping the daemon using '-force'?
Otherwise you are not guaranteed that the process is really killed

support '-force' argument as before in last commit

@eolivelli eolivelli modified the milestones: 2.9.0, 2.10.0 Oct 6, 2021
@gaozhangmin
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@hangc0276 hangc0276 left a comment

Choose a reason for hiding this comment

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

Whether we should check exit code of stop before calling start method, avoiding stop failed and continue to call start.

@hangc0276
Copy link
Contributor

/pulsarbot run-failure-checks

@gaozhangmin gaozhangmin force-pushed the pulsar-daemon-support-restart branch from 283d053 to c2b6630 Compare October 14, 2021 02:49
@gaozhangmin gaozhangmin force-pushed the pulsar-daemon-support-restart branch from c2b6630 to edb9d64 Compare October 14, 2021 03:01
@gaozhangmin
Copy link
Contributor Author

/pulsarbot run-failure-checks

@gaozhangmin
Copy link
Contributor Author

Whether we should check exit code of stop before calling start method, avoiding stop failed and continue to call start.

@hangc0276 done pTAL

@gaozhangmin
Copy link
Contributor Author

/pulsarbot run-failure-checks

@BewareMyPower
Copy link
Contributor

It's duplicated with #12279. Close this PR first. If you have some improvement to #12279, please submit a new PR.

@gaozhangmin
Copy link
Contributor Author

It's duplicated with #12279. Close this PR first. If you have some improvement to #12279, please submit a new PR.

#12279 missed check exit code of stop before calling start method, avoiding stop failed and continue to call start

@BewareMyPower
Copy link
Contributor

Could you open a new PR to fix it?

@gaozhangmin
Copy link
Contributor Author

@BewareMyPower #12368

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.

pulsar-daemon script should support restart for easy use

6 participants