-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[pip][design] PIP-279: Reformat property in generateResponseWithEntry #20627
Conversation
pip/pip-279.md
Outdated
when we run `bin/pulsar-admin topics get-message-by-id `, it will throw exception, the exception is: | ||
`Reason: java.util.concurrent.CompletionException: org.apache.pulsar.client.admin.internal.http.AsyncHttpConnector$RetryException: Could not complete the operation. Number of retries has been exhausted. Failed reason: a header name cannot contain the following prohibited characters: =,;: \t\r\n\v\f: =` | ||
|
||
<img width="1288" alt="image" src="https://github.com/StevenLuMT/pulsar/assets/42990025/973d95b9-4ac2-4977-b160-162c4b53a613"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't link images not hosted in this repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't link images not hosted in this repo
ok,updated thanks @eolivelli
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 (non-binding)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
### Motivation After [pip-279](apache/pulsar#20627), all properties keys and values use json string save to header: `X-Pulsar-Property` This PR to compatible with this change when using subscription admin API. Also, Using `pip-279` also avoids the issue where the Go HTTP client automatically formats HTTP headers: golang/go#37834, This will impact the peek command, the previous method might retrieve `properties` with inconsistent casing compared to the user-defined. ### Modifications - Compatible the HTTP header properties with PIP-279
Motivation
This is a PIP to reformat property in generateResponseWithEntry. The PR contents have the motivation.
Documentation
doc-not-needed
Matching PR in forked repository
PR in forked repository: #20481