Skip to content

Conversation

@momo-jun
Copy link
Contributor

@momo-jun momo-jun commented Jun 28, 2022

Modifications

  1. Fix Need an api interface for the process to start working normally for rolling restart of pulsar #14767 - Add a tip to the Upgrade doc page for how to check the health of a broker via Pulsar-admin and REST API.
  2. Minor fixes on the Upgrade doc page.
  3. Fix incorrect REST API links on more doc pages.

The preview looks good.
image

Documentation

  • doc

@github-actions github-actions bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Jun 28, 2022
@momo-jun momo-jun changed the title [improve][doc] add info for health check [improve][doc] Add info for health check CMD and fix incorrect REST API links Jun 29, 2022
@momo-jun momo-jun marked this pull request as ready for review June 29, 2022 07:42
@momo-jun
Copy link
Contributor Author

Hi @horizonzy, thanks for your support and effort in addressing the REST API issues. Can you pls review this PR?

Copy link
Member

@horizonzy horizonzy left a comment

Choose a reason for hiding this comment

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

LGTM.

@momo-jun
Copy link
Contributor Author

Ping @Anonymitaet for review.

<TabItem value="REST API">

{@inject: endpoint|GET|/admin/v2/brokers/leaderBroker?version=@pulsar:version_number@}
{@inject: endpoint|GET|/admin/v2/brokers/leaderBroker|operation/getLeaderBroker?version=@pulsar:version_number@}
Copy link
Member

Choose a reason for hiding this comment

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

  1. Do these links go to the specific REST API doc rather than the home page?
  2. Will you fix all the occurrences in master?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Yes. The logic has been verified. Theoretically, they can go to the correct place but this cannot be directly verified in the local build because what we use for version numbers is a variable.
  2. I've corrected all the occurrences that I've searched out in the master branch.

Copy link
Member

@Anonymitaet Anonymitaet Jun 30, 2022

Choose a reason for hiding this comment

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

for issue 2, I mean we have some incorrect REST API links in the whole Pulsar doc, will you fix them all (on master)?

Example:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I see your point. I didn't expect we have such cases. The search term I use is "@Pulsar:version_number@", to make sure it is injected in the correct place. So these cases are not included. I can resolve them in another PR after verifying the results of this PR on the Pulsar website.

Copy link
Contributor Author

@momo-jun momo-jun Jun 30, 2022

Choose a reason for hiding this comment

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

After looking into the MD file, I found the link itself is correct, which contains "@Pulsar:version_number@" and the variable is replaced with the version number of docs as we can see on the website. The only issue is that it is written in a command style, rather than a link. I will commit the updates today.

Copy link
Member

Choose a reason for hiding this comment

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

OK, thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Anonymitaet the updates for the cmd style have been committed.

{
"type": "doc",
"id": "version-2.8.2/security-basic-auth"
"id": "version-2.8.3/security-basic-auth"
Copy link
Member

Choose a reason for hiding this comment

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

reminder: any other doc versions need this chapter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a fix. Other doc versions require this chapter have been implemented in #15734.

@Anonymitaet Anonymitaet added this to the 2.11.0 milestone Jun 30, 2022
@Anonymitaet Anonymitaet added doc-complete Your PR changes impact docs and the related docs have been already added. doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. and removed doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. doc-complete Your PR changes impact docs and the related docs have been already added. labels Jun 30, 2022
@Anonymitaet Anonymitaet merged commit cd9eaca into apache:master Jul 7, 2022
zymap pushed a commit to zymap/pulsar that referenced this pull request Jul 11, 2022
wuxuanqicn pushed a commit to wuxuanqicn/pulsar that referenced this pull request Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need an api interface for the process to start working normally for rolling restart of pulsar

3 participants