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

[WebSocket] Fix the initial sequence id error #8724

Merged

Conversation

BewareMyPower
Copy link
Contributor

@BewareMyPower BewareMyPower commented Nov 26, 2020

Motivation

The WebSocket ProducerHandler parse a wrong string so the client's query param initialSequenceId will always fail.

Modifications

  • Parse the real initialSequenceId value.
  • Add unit tests to ensure that all params from the WebSocket url can be converted to the right config.

Verifying this change

  • Make sure that the change passes the CI checks.

This change added tests and can be verified as follows:

  • AbstractWebSocketHandlerTest#producerBuilderTest
  • AbstractWebSocketHandlerTest#consumerBuilderTest

@BewareMyPower BewareMyPower force-pushed the bewaremypower/fix-websocket-cli-params branch from 90b03ce to 23dc705 Compare November 26, 2020 14:16
@BewareMyPower
Copy link
Contributor Author

/pulsarbot run-failure-checks

1 similar comment
@BewareMyPower
Copy link
Contributor Author

/pulsarbot run-failure-checks

@BewareMyPower BewareMyPower changed the title [WebSocket] Fix the initial sequence id error [WIP][WebSocket] Fix the initial sequence id error Nov 27, 2020
@BewareMyPower BewareMyPower changed the title [WIP][WebSocket] Fix the initial sequence id error [WebSocket] Fix the initial sequence id error Nov 27, 2020
@BewareMyPower
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Member

@zymap zymap left a comment

Choose a reason for hiding this comment

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

Good job!

@sijie sijie modified the milestones: 2.7.0, 2.8.0 Nov 30, 2020
@sijie sijie merged commit be39f50 into apache:master Nov 30, 2020
@sijie
Copy link
Member

sijie commented Nov 30, 2020

/pulsarbot cherry-pick to branch-2.7

github-actions bot pushed a commit that referenced this pull request Nov 30, 2020
### Motivation

The WebSocket `ProducerHandler` parse a wrong string so the client's query param `initialSequenceId` will always fail.

### Modifications

- Parse the real `initialSequenceId` value.
- Add unit tests to ensure that all params from the WebSocket url can be converted to the right config.

### Verifying this change

- [x] Make sure that the change passes the CI checks.

(cherry picked from commit be39f50)
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-websocket-cli-params branch December 2, 2020 07:20
codelipenghui added a commit that referenced this pull request Dec 2, 2020
### Motivation

The WebSocket `ProducerHandler` parse a wrong string so the client's query param `initialSequenceId` will always fail.

### Modifications

- Parse the real `initialSequenceId` value.
- Add unit tests to ensure that all params from the WebSocket url can be converted to the right config.

### Verifying this change

- [x] Make sure that the change passes the CI checks.

(cherry picked from commit be39f50)

Co-authored-by: Yunze Xu <xyzinfernity@163.com>
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants