KafkaSinkCluster: route DescribeLogDirs request #1823
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements routing for
DescribeLogDirs
.When the java driver routes
DescribeLogDirs
it sends it to a broker specified by the user.When
kafka-log-dirs.sh
routesDescribeLogDirs
it sends an identical request to every node in the cluster.To handle this type of broadcast request shotover routes the request to all nodes in the rack. For other examples look at ListGroups, ListTransactions etc.
We route the request to all nodes in shotover's rack and then combine the results.
We alter the log dir path to avoid collisions with results from other racks, the new path looks like
actual-kafka-broker-id3:/original/log/dir/path
.For more details on the reasoning behind this, look at the comment on
fn prepend_destination_to_log_dir
.