-
Notifications
You must be signed in to change notification settings - Fork 3.7k
ISSUE-5934: Support read/write properties from/to Message in flink pulsar consumer/producer #5955
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
Conversation
|
@yjshen can you please help review this pull request? |
|
LGTM. |
|
@yjshen how does this user provide the properties using this code? |
|
As discussed in #5934, users need to subclass
|
|
@yjshen sorry that I missed the discussion. I think it is better to pass in a function |
8c6a767 to
3ba821a
Compare
...java/org/apache/flink/streaming/connectors/pulsar/partitioner/PulsarPropertiesExtractor.java
Outdated
Show resolved
Hide resolved
…lsar consumer/producer
|
why this ci build is failed? I feel a little strange, some other pull requests have the same problem, @yjshen |
|
retest this please |
@duli559 the current Jenkins is a bit flaky. We are working on migrating to Github Actions. |
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
|
@duli559 could you please merge the master? (git fetch apache master && git merge apache/master) |
|
/pulsarbot run-failure-checks |
1 similar comment
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
7 similar comments
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
…lsar consumer/producer (apache#5955) Fix apache#5934 Motivation Support read/write properties from/to Message in flink pulsar consumer/producer, and you can override it in your derived class Modifications 1. modify `PulsarConsumerSource.deserialize` access right from 'private' to 'protected'. 2. add method `protected Map<String, String> generateProperties(T value)` in class `FlinkPulsarProducer`, and invoked in `TypedMessageBuilder.properties()` to add it in pulsar Message. * fix unit test failure Co-authored-by: herodu <herodu@tencent.com> Co-authored-by: Sijie Guo <sijie@apache.org> Co-authored-by: duli <554979476@163.com>
Fix #5934
Motivation
Support read/write properties from/to Message in flink pulsar consumer/producer, and you can override it in your derived class
Modifications
PulsarConsumerSource.deserializeaccess right from 'private' to 'protected'.protected Map<String, String> generateProperties(T value)in classFlinkPulsarProducer, and invoked inTypedMessageBuilder.properties()to add it in pulsar Message.