-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
KAFKA-1543: Change replication factor during partition map generation #1596
base: trunk
Are you sure you want to change the base?
Conversation
Starting the conversation with this pull request. It seems to work well, and is minimally invasive to the code and command line tool API. I think this is a better approach than putting replication-factor changes in kafka-topics.sh --alter because the replication re-assignment is likely going to require a lot of partition copying, and it's probably better to review the effect rather than it being hidden. I bumped the 'version' on the topics to move json file, but it turns out no one looks at the version number, anyway. It's backwards compatible with version 1, and old code getting a version 2 file will just ignore the new fields. |
It's unclear what that failed check is about. I can't see how this change could have affected consumer pattern subscription. I suspect fragile tests. |
Looked at a few other recent pull requests. Even documentation-only changes are causing the consumer tests to fail. Looks like broken tests. |
@llamahunter try rebasing against trunk? My patch for 3933 has had passing tests just fine. |
7dfe088
to
ff0e724
Compare
ff0e724
to
b5ca48b
Compare
If the topic-to-move-json-file contains a new replication-factor for a topic, it is used when assigning partitions to brokers. If missing, the existing replication-factor of the topic is maintained.
b5ca48b
to
92a402e
Compare
@hachikuji Could you take a look at this PR? @llamahunter Could you change the title to |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Refer to this link for build results (access rights to CI server needed): |
Hi... back from a lengthy vacation. What happened with this pull request? Did you go with the kafka-topics.sh approach rather than kafka-reassign-partitions.sh? |
@llamahunter I don't think there is a decision on which script to augment yet. Although @jkreps once suggested doing it in kafka-topics.sh, your response on the JIRA and this PR is still targeted at reassign-partition script. |
I disagree with Jay in putting it in kafka-topics.sh for the reasons I stated above. Changing replication factor is a heavy-weight operation. |
This feature is still interesting to me. Just checking in. |
I see the parent issue has been open since 2014. Any idea when this finally is going to be implemented? |
Found this issue while browsing for something else, but fwiw my topicmappr cli tool does exactly this: |
I have been looking to increase the https://kafka.apache.org/documentation/#basic_ops_increase_replication_factor |
If the topic-to-move-json-file contains a new replication-factor for
a topic, it is used when assigning partitions to brokers. If missing,
the existing replication-factor of the topic is maintained.