-
Notifications
You must be signed in to change notification settings - Fork 70
Add command topic internal-info
#51
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
|
Please rebase and fix CI |
sijie
requested changes
Sep 17, 2019
Member
Author
|
@sijie PTAL |
Contributor
|
ping @sijie PTAL again, thanks |
sijie
approved these changes
Sep 24, 2019
tisonkun
pushed a commit
to tisonkun/pulsar-client-go
that referenced
this pull request
Aug 15, 2023
### OUTPUT
*internal-info*
```
➜ pulsarctl git:(topic-info) ✗ ./pulsarctl topic internal-info -h
USED FOR:
This command is used for getting the internal info of a topic which has messages or subscriptions.
REQUIRED PERMISSION:
This command requires tenant admin permissions.
EXAMPLES:
#Get the internal info of a topic <topic-name>
pulsarctl topic internal-info <topic-name>
OUTPUT:
#normal output
{
"version": 1,
"creationDate": "",
"modificationData": "",
"ledgers": [
{
"ledgerId": 0,
"entries": 0,
"size": 0,
"timestamp": 0
}
],
"terminatedPosition": {
"ledgerId": 0,
"entryId": 0
},
"cursors": {
"hello": {
"version": 0,
"creationDate": "",
"modificationDate": "",
"cursorsLedgerId": 0,
"markDelete": {
"ledgerId": 0,
"entryId": 0
},
"individualDeletedMessages": null,
"Properties": null
}
}
}
#the topic name is not specified
[✖] only one argument is allowed to be used as a name
#the specified topic does not existing
[✖] code: 500 reason: Unknown pulsar error
#the topic name is not in the format of <tenant>/<namespace>/<topic> or <topic>
[✖] Invalid short topic name '<topic-name>', it should be in the format of <tenant>/<namespace>/<topic> or <topic>
#the topic name is not in the format of <domain>://<tenant>/<namespace>/<topic>
[✖] Invalid complete topic name '<topic-name>', it should be in the format of <domain>://<tenant>/<namespace>/<topic>
#the topic name is not in the format of <tenant>/<namespace>/<topic>
[✖] Invalid topic name '<topic-name>', it should be in the format of<tenant>/<namespace>/<topic>
#the namespace name is not in the format of <tenant>/<namespace>
[✖] The complete name of namespace is invalid. complete name : <namespace-complete-name>
#the tenant name and(or) namespace name is empty
[✖] Invalid tenant or namespace. [<tenant>/<namespace>]
#the tenant name contains unsupported special chars. the alphanumeric (a-zA-Z0-9) and the special chars (-=:.%) is allowed
[✖] Tenant name include unsupported special chars. tenant : [<namespace>]
#the namespace name contains unsupported special chars. the alphanumeric (a-zA-Z0-9) and the special chars (-=:.%) is allowed
[✖] Namespace name include unsupported special chars. namespace : [<namespace>]
Usage: pulsarctl topics internal-info [flags]
```
tisonkun
pushed a commit
to apache/pulsar-client-go
that referenced
this pull request
Aug 16, 2023
### OUTPUT
*internal-info*
```
➜ pulsarctl git:(topic-info) ✗ ./pulsarctl topic internal-info -h
USED FOR:
This command is used for getting the internal info of a topic which has messages or subscriptions.
REQUIRED PERMISSION:
This command requires tenant admin permissions.
EXAMPLES:
#Get the internal info of a topic <topic-name>
pulsarctl topic internal-info <topic-name>
OUTPUT:
#normal output
{
"version": 1,
"creationDate": "",
"modificationData": "",
"ledgers": [
{
"ledgerId": 0,
"entries": 0,
"size": 0,
"timestamp": 0
}
],
"terminatedPosition": {
"ledgerId": 0,
"entryId": 0
},
"cursors": {
"hello": {
"version": 0,
"creationDate": "",
"modificationDate": "",
"cursorsLedgerId": 0,
"markDelete": {
"ledgerId": 0,
"entryId": 0
},
"individualDeletedMessages": null,
"Properties": null
}
}
}
#the topic name is not specified
[✖] only one argument is allowed to be used as a name
#the specified topic does not existing
[✖] code: 500 reason: Unknown pulsar error
#the topic name is not in the format of <tenant>/<namespace>/<topic> or <topic>
[✖] Invalid short topic name '<topic-name>', it should be in the format of <tenant>/<namespace>/<topic> or <topic>
#the topic name is not in the format of <domain>://<tenant>/<namespace>/<topic>
[✖] Invalid complete topic name '<topic-name>', it should be in the format of <domain>://<tenant>/<namespace>/<topic>
#the topic name is not in the format of <tenant>/<namespace>/<topic>
[✖] Invalid topic name '<topic-name>', it should be in the format of<tenant>/<namespace>/<topic>
#the namespace name is not in the format of <tenant>/<namespace>
[✖] The complete name of namespace is invalid. complete name : <namespace-complete-name>
#the tenant name and(or) namespace name is empty
[✖] Invalid tenant or namespace. [<tenant>/<namespace>]
#the tenant name contains unsupported special chars. the alphanumeric (a-zA-Z0-9) and the special chars (-=:.%) is allowed
[✖] Tenant name include unsupported special chars. tenant : [<namespace>]
#the namespace name contains unsupported special chars. the alphanumeric (a-zA-Z0-9) and the special chars (-=:.%) is allowed
[✖] Namespace name include unsupported special chars. namespace : [<namespace>]
Usage: pulsarctl topics internal-info [flags]
```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OUTPUT
internal-info