Skip to content
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

how to set user property “CHECK_IMMUNITY_TIME_IN_SECONDS” #481

Closed
naah69 opened this issue Sep 28, 2018 · 5 comments
Closed

how to set user property “CHECK_IMMUNITY_TIME_IN_SECONDS” #481

naah69 opened this issue Sep 28, 2018 · 5 comments

Comments

@naah69
Copy link
Contributor

naah69 commented Sep 28, 2018

transaction in rocketMQ document
In the Usage Constraint of this article,it mentions CHECK_IMMUNITY_TIME_IN_SECONDS.
but i can't find the method to set user property in TransactionMQProducer and DefaultMQProducer.

@walking98
Copy link

As the doc stated, the user property need to set with the request message. e.g.
msg.putUserProperty(MessageConst.PROPERTY_CHECK_IMMUNITY_TIME_IN_SECONDS, "1");

Since this is a usage question, please send the question with user email list directly instead of opening issue at here next time. thanks a lot!

@naah69
Copy link
Contributor Author

naah69 commented Sep 29, 2018

BUG

  1. PROPERTY_CHECK_IMMUNITY_TIME_IN_SECONDS is not available.
  2. transactionMsgTimeout is not available.

i use PROPERTY_CHECK_IMMUNITY_TIME_IN_SECONDS in java and transactionMsgTimeout in broker.conf ;

PROPERTY_CHECK_IMMUNITY_TIME_IN_SECONDS:
image

broker.conf:
image

console.log:
image

@duhengforever
Copy link
Contributor

@naah69 thanks for your partition, all transactional message check interval all limited by "transactionCheckInterval" parameter of broker, and this value default is 60 seconds, you can set this parameter to a suitable value .

@ymwneu
Copy link
Contributor

ymwneu commented Nov 1, 2018

As @duhengforever says, param "transactionCheckInterval" controls transactional message check interval. "PROPERTY_CHECK_IMMUNITY_TIME_IN_SECONDS" or "transactionTimeout"(not "transactionMsgTimeout", document mistake) determines the period when half message first sent to first check localTransaction.

@vongosling
Copy link
Member

I would like to appreciate your @naah69 engagement in the community if you could raise your question in the user email list. Issue is not the correct place for your request, please read the issue template, looking forward to your question in the email list :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants