[
https://issues.apache.org/jira/browse/FLINK-3102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045200#comment-15045200
]
ASF GitHub Bot commented on FLINK-3102:
---------------------------------------
Github user StephanEwen commented on the pull request:
https://github.com/apache/flink/pull/1437#issuecomment-162580468
All in all quite good. Few things:
- The code style is super heterogeneous, sometimes it puts spaces after a
keyword, sometimes it does not. Would be good to make this straight.
- This mixes "Arrays.toString" and "StringUtils.join". Why not avail any
dependency on external libraries (with all the dependency conflicts, it is nice
to avoid where possible) and use
- `Arrays.toString()` for arrays.
- Simply `toString()` for lists.
- `KafkaTopicPartition` and `KafkaTopicPartitionLeader` need to be fast
for hash code and equals. They are used as hash map keys for every record
(offset update). Due to that, they should really be immutable types and cache
their hash code, since that is used for any record emitted (update in the
offsets hash map). Also, equals() should be fast.
> Allow reading from multiple topics with one FlinkKafkaConsumer
> --------------------------------------------------------------
>
> Key: FLINK-3102
> URL: https://issues.apache.org/jira/browse/FLINK-3102
> Project: Flink
> Issue Type: New Feature
> Components: Kafka Connector
> Reporter: Robert Metzger
> Assignee: Robert Metzger
>
> Currently, a Kafka consumer allows to read from only one topic.
> For cases where multiple topics contain messages with the same schema, it is
> useful to allow to subscribe to many topics using one FlinkKafkaConsumer
> instance.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)