-
Notifications
You must be signed in to change notification settings - Fork 589
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
txns: fix list txns failure when it's used before find_coordinator #12116
Conversation
find_coordinator creates txn coordinator's topic when it's used for the first time. list txns api expects the topic to be already created so it used to fail when the api was invoked before find_coordinator. Fixed the problem by creating the topic on the first list txns call. fixes redpanda-data#11947
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just a couple of clarifications.
@@ -316,7 +351,8 @@ ss::future<bool> tx_registry_frontend::try_create_tx_topic() { | |||
return _controller->get_topics_frontend() | |||
.local() | |||
.autocreate_topics( | |||
{std::move(topic)}, config::shard_local_cfg().create_topic_timeout_ms()) | |||
{std::move(topic)}, | |||
config::shard_local_cfg().create_topic_timeout_ms() * partitions_amount) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: whats the rationale behind * partitions_amount
part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create_topic_timeout_ms
is too small to create 50 partitions in the ci environment. before it was use to create a single partition, * partitions_amount
is the proportional increase. it's a bit meh but imho good enough, at least for the fix.
/backport v23.1.x |
Failed to run cherry-pick command. I executed the commands below:
|
find_coordinator
creates txn coordinator's topic when it's used for the first time.list_transactions
api expects the topic to be already created so it used to fail when the api was invoked beforefind_coordinator
. Fixed the problem by creating the topic on the first list txns call too.Fixes #11947
Backports Required
Release Notes