Skip to content

[Transaction] Fix transaction system topic create in loop#12889

Merged
codelipenghui merged 4 commits into
apache:branch-2.8from
congbobo184:congbobo_fix_transaction_system_topic_create_in_loop
Nov 22, 2021
Merged

[Transaction] Fix transaction system topic create in loop#12889
codelipenghui merged 4 commits into
apache:branch-2.8from
congbobo184:congbobo_fix_transaction_system_topic_create_in_loop

Conversation

@congbobo184

Copy link
Copy Markdown
Contributor

link #12749

NamespaceName.SYSTEM_NAMESPACE, "transaction_coordinator_assign");

public static final TopicName TRANSACTION_COORDINATOR_LOG = TopicName.get(TopicDomain.persistent.value(),
NamespaceName.SYSTEM_NAMESPACE, "__transaction_log_");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are you sure about this '_transaction_log' ? it is strange that it ends with an underscore character

@congbobo184 congbobo184 Nov 22, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it ends with an underscore character, because there is a coordinator id behind the __transaction_log_.

throw e;
} catch (Exception e) {
throw new RestException(e);
if (e.getCause() instanceof NotAllowedException) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NotAllowedException is related to security problems (authorisation).

why are we rewriting this to "CONFLICT" ? shouldn't it be "FORBIDDEN" ?

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

can you please do the same fix on master ?

@codelipenghui
codelipenghui merged commit 50727d7 into apache:branch-2.8 Nov 22, 2021
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants