Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

aruha-876: kafka client 10.1 #684

Merged
merged 5 commits into from
Aug 1, 2017
Merged

aruha-876: kafka client 10.1 #684

merged 5 commits into from
Aug 1, 2017

Conversation

adyach
Copy link
Member

@adyach adyach commented Jun 21, 2017

aruha-876

@codecov-io
Copy link

codecov-io commented Jun 21, 2017

Codecov Report

Merging #684 into master will increase coverage by 0.02%.
The diff coverage is 61.53%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #684      +/-   ##
============================================
+ Coverage      54.4%   54.43%   +0.02%     
- Complexity     1473     1474       +1     
============================================
  Files           287      287              
  Lines          8045     8045              
  Branches        706      706              
============================================
+ Hits           4377     4379       +2     
+ Misses         3415     3414       -1     
+ Partials        253      252       -1
Impacted Files Coverage Δ Complexity Δ
.../nakadi/repository/kafka/KafkaTopicRepository.java 59.71% <61.53%> (ø) 57 <0> (ø) ⬇️
...n/java/org/zalando/nakadi/service/EventStream.java 89.47% <0%> (+2.63%) 27% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50ef88a...647d7eb. Read the comment docs.

@@ -126,7 +186,8 @@ private void createTopic(final String topic, final int partitionsNum, final int
final Properties topicConfig = new Properties();
topicConfig.setProperty("retention.ms", Long.toString(retentionMs));
topicConfig.setProperty("segment.ms", Long.toString(rotationMs));
AdminUtils.createTopic(zkUtils, topic, partitionsNum, replicaFactor, topicConfig);
AdminUtils.createTopic(zkUtils, topic, partitionsNum, replicaFactor, topicConfig,
RackAwareMode.Enforced$.MODULE$);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm reading this part of the client code https://github.com/apache/kafka/blob/cae5977ed0d6b63f992973800273769c970b0a0a/core/src/main/scala/kafka/admin/RackAwareMode.scala#L22-L39 and trying to understand the change in behaviour with RackAwareMode.Enforced.

Do you understand the difference between Safe, Disabled and Enforced? It's not clear for me.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is about how you configure racks in kafka config, more here
https://cwiki.apache.org/confluence/display/KAFKA/KIP-36+Rack+aware+replica+assignment

Copy link
Member Author

Choose a reason for hiding this comment

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

In context of aws it will be az

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I know the feature, but do we use rack awareness? Why choosing Enforced here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, so what I got is that once we add rack awareness, by specifying the broker.rack property in server.properties this is going to be immediately used by Nakadi when creating new topics. So sounds like a good thing. It's just not clear if it has any difference right now, since we do not have broker.rack configured.

@rcillo
Copy link
Contributor

rcillo commented Jun 21, 2017

👍

@v-stepanov
Copy link
Contributor

👎

@v-stepanov
Copy link
Contributor

v-stepanov commented Jun 22, 2017

I had to put a veto, because we need first to check how the new client version influences https://techjira.zalando.net/browse/ARUHA-854 (hash partitioning problem)

@v-stepanov
Copy link
Contributor

Ricardo reported that ETs created with a new client version have a different order of partitions that the ones created with old client version. I will check this more deeply but for now I think that the fix for https://techjira.zalando.net/browse/ARUHA-854 should be released before this PR is merged.

@adyach
Copy link
Member Author

adyach commented Jul 27, 2017

@rcillo @v-stepanov since the aruha-854 is merged can I get a green light ?

@adyach
Copy link
Member Author

adyach commented Jul 27, 2017

👍

@adyach
Copy link
Member Author

adyach commented Aug 1, 2017

@rcillo @v-stepanov @lmontrieux @antban could you approve it? just merged from upstream

@v-stepanov
Copy link
Contributor

👍

1 similar comment
@adyach
Copy link
Member Author

adyach commented Aug 1, 2017

👍

@adyach adyach merged commit 00a73a7 into master Aug 1, 2017
@adyach adyach deleted the feature/aruha-876 branch August 24, 2017 06:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants