Skip to content

Conversation

@Jason918
Copy link
Contributor

@Jason918 Jason918 commented Jul 23, 2021

Fixes #11440

Motivation

see issue 11440

Modifications

Add all the other non-empty meta data fields in http response headers in org.apache.pulsar.broker.admin.impl.PersistentTopicsBase#generateResponseWithEntry. For fields with byte[] type, base64 is used for serialization and deserialization.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change added tests and can be verified as follows:

org.apache.pulsar.broker.admin.PersistentTopicsTest#testExamineMessageMetadata

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): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@sijie sijie added area/admin doc-required Your PR changes impact docs and you will update later. labels Jul 23, 2021
@sijie sijie added this to the 2.9.0 milestone Jul 23, 2021
@codelipenghui
Copy link
Contributor

@Jason918 Please check the checkstyle issue

Error:  src/main/java/org/apache/pulsar/client/admin/internal/TopicsImpl.java:[111,44] (whitespace) WhitespaceAround: '=' is not preceded with whitespace.
Error:  src/main/java/org/apache/pulsar/client/admin/internal/TopicsImpl.java:[118,37] (whitespace) WhitespaceAround: '=' is not preceded with whitespace.

@Jason918
Copy link
Contributor Author

/pulsarbot run-failure-checks

@Jason918
Copy link
Contributor Author

/pulsarbot run-failure-checks

2 similar comments
@Jason918
Copy link
Contributor Author

/pulsarbot run-failure-checks

@Jason918
Copy link
Contributor Author

/pulsarbot run-failure-checks

@Jason918
Copy link
Contributor Author

Jason918 commented Jul 27, 2021

@Jason918 Please check the checkstyle issue

Error:  src/main/java/org/apache/pulsar/client/admin/internal/TopicsImpl.java:[111,44] (whitespace) WhitespaceAround: '=' is not preceded with whitespace.
Error:  src/main/java/org/apache/pulsar/client/admin/internal/TopicsImpl.java:[118,37] (whitespace) WhitespaceAround: '=' is not preceded with whitespace.

@codelipenghui
Fixed it.
Sorry for that .
There seems a lot flaky tests lately. @_@

@Anonymitaet
Copy link
Member

@Jason918 thanks for your great work. Would you like to add docs accordingly? Then you can ping me to review, thanks

@Jason918
Copy link
Contributor Author

@Jason918 thanks for your great work. Would you like to add docs accordingly? Then you can ping me to review, thanks

@Anonymitaet It seems there're no user docs for examine-message cmd. So I added new section for it. Please check it out in my last commit.

@sijie sijie merged commit afe4792 into apache:master Jul 29, 2021
codelipenghui pushed a commit that referenced this pull request Jul 30, 2021
…es (#11443)

Fixes #11440

see issue 11440

Add all the other non-empty meta data fields in http response headers in `org.apache.pulsar.broker.admin.impl.PersistentTopicsBase#generateResponseWithEntry`. For fields with byte[] type, base64 is used for serialization and deserialization.

(cherry picked from commit afe4792)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Jul 30, 2021
@Jason918 Jason918 deleted the issue-11440 branch July 30, 2021 12:01
@Anonymitaet Anonymitaet added doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. and removed doc-required Your PR changes impact docs and you will update later. labels Aug 4, 2021
bharanic-dev pushed a commit to bharanic-dev/pulsar that referenced this pull request Mar 18, 2022
…es (apache#11443)

Fixes apache#11440

### Motivation

see issue 11440

### Modifications

Add all the other non-empty meta data fields in http response headers in `org.apache.pulsar.broker.admin.impl.PersistentTopicsBase#generateResponseWithEntry`. For fields with byte[] type, base64 is used for serialization and deserialization.
momo-jun added a commit to momo-jun/pulsar that referenced this pull request Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/admin cherry-picked/branch-2.8 Archived: 2.8 is end of life doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. release/2.8.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incomplete metadata in MessageImpl return by admin.topics().examineMessage()

4 participants