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

[pulsar-perf] Support WebSocket Producer for V2 Topics #8535

Merged
merged 2 commits into from
Nov 13, 2020
Merged

[pulsar-perf] Support WebSocket Producer for V2 Topics #8535

merged 2 commits into from
Nov 13, 2020

Conversation

k2la
Copy link
Contributor

@k2la k2la commented Nov 12, 2020

Motivation

Modifications

  • Fix that if use V2 topics, use "ws/v2/producer/".

@@ -166,7 +168,9 @@ public void runPerformanceTest(long messages, long limit, int numOfTopic, int si
String topicName, String authPluginClassName, String authParams) throws InterruptedException, FileNotFoundException {
ExecutorService executor = Executors.newCachedThreadPool(new DefaultThreadFactory("pulsar-perf-producer-exec"));
HashMap<String, Tuple> producersMap = new HashMap<>();
String produceBaseEndPoint = baseUrl + "ws/producer" + topicName;
String replacedTopicName = topicName.replace("://", "/");
Copy link
Member

Choose a reason for hiding this comment

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

I think there has a method getRestPath in the TopicName do the same thing with you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the advice.
I fixed it.

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.

The CI issue already fixed and merged into the master branch. Please rebase your code to make the CI pass.

@k2la
Copy link
Contributor Author

k2la commented Nov 13, 2020

/pulsarbot run-failure-checks

2 similar comments
@k2la
Copy link
Contributor Author

k2la commented Nov 13, 2020

/pulsarbot run-failure-checks

@k2la
Copy link
Contributor Author

k2la commented Nov 13, 2020

/pulsarbot run-failure-checks

@sijie sijie merged commit 67f544c into apache:master Nov 13, 2020
@k2la k2la deleted the support_websocket_producer_for_v2_topic branch November 13, 2020 09:09
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
### Motivation
- Not support v2 topics.
- Not working because `/` is missing between `"ws/producer" and topicName`
https://github.com/apache/pulsar/blob/1c7b12d379cf36183d60919dcaff75e4d6cf63f2/pulsar-testclient/src/main/java/org/apache/pulsar/proxy/socket/client/PerformanceClient.java#L169

### Modifications
- Fix that if use V2 topics, use "ws/v2/producer/".
@codelipenghui
Copy link
Contributor

/pulsarbot cherry-pick to branch-2.6

codelipenghui pushed a commit that referenced this pull request Nov 21, 2020
### Motivation
- Not support v2 topics.
- Not working because `/` is missing between `"ws/producer" and topicName`
https://github.com/apache/pulsar/blob/1c7b12d379cf36183d60919dcaff75e4d6cf63f2/pulsar-testclient/src/main/java/org/apache/pulsar/proxy/socket/client/PerformanceClient.java#L169

### Modifications
- Fix that if use V2 topics, use "ws/v2/producer/".

(cherry picked from commit 67f544c)
codelipenghui pushed a commit to streamnative/pulsar-archived that referenced this pull request Nov 21, 2020
### Motivation
- Not support v2 topics.
- Not working because `/` is missing between `"ws/producer" and topicName`
https://github.com/apache/pulsar/blob/1c7b12d379cf36183d60919dcaff75e4d6cf63f2/pulsar-testclient/src/main/java/org/apache/pulsar/proxy/socket/client/PerformanceClient.java#L169

### Modifications
- Fix that if use V2 topics, use "ws/v2/producer/".

(cherry picked from commit 67f544c)
(cherry picked from commit 81d5caa)
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