rocketmq icon indicating copy to clipboard operation
rocketmq copied to clipboard

how to set user property “CHECK_IMMUNITY_TIME_IN_SECONDS”

Open naah69 opened this issue 8 years ago • 5 comments

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.

naah69 avatar Sep 28 '18 10:09 naah69

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!

walking98 avatar Sep 28 '18 10:09 walking98

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

naah69 avatar Sep 29 '18 03:09 naah69

@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 .

duhengforever avatar Oct 17 '18 09:10 duhengforever

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.

ymwneu avatar Nov 01 '18 11:11 ymwneu

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 :-)

vongosling avatar Nov 02 '18 07:11 vongosling