KAFKA-1543: Change replication factor during partition map generation#1596
KAFKA-1543: Change replication factor during partition map generation#1596llamahunter wants to merge 1 commit into
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 |
|
This PR is being marked as stale since it has not had any activity in 90 days. If you If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
|
This PR has been closed since it has not had any activity in 120 days. If you feel like this |
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.