Skip to content
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

Merged
merged 4 commits into from
Jul 28, 2023

Conversation

StevenLuMT
Copy link
Member

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

@StevenLuMT StevenLuMT changed the title [feat] PIP-273: Reformat property in generateResponseWithEntry [feat] PIP-279: Reformat property in generateResponseWithEntry Jun 21, 2023
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jun 21, 2023
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">
Copy link
Contributor

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

Copy link
Member Author

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

@Technoboy- Technoboy- changed the title [feat] PIP-279: Reformat property in generateResponseWithEntry [pip][design] PIP-279: Reformat property in generateResponseWithEntry Jun 26, 2023
@Technoboy- Technoboy- added this to the 3.1.0 milestone Jun 26, 2023
Copy link
Contributor

@gaoran10 gaoran10 left a comment

Choose a reason for hiding this comment

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

+1 (non-binding)

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.

+1

@Technoboy- Technoboy- merged commit 5d72615 into apache:master Jul 28, 2023
RobertIndie pushed a commit to apache/pulsar-client-go that referenced this pull request Oct 24, 2024
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs type/PIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants