Commit ae42bb4feef308f7f42cd5809a70cc6c3e87b01a

Authored by Dima Landiak
1 parent 9e3a0584

transaction data init fix

... ... @@ -54,9 +54,9 @@ public class TbTransactionBeginNode implements TbNode {
54 54
55 55 @Override
56 56 public void onMsg(TbContext ctx, TbMsg msg) throws ExecutionException, InterruptedException, TbNodeException {
57   - log.trace("Msg in - [{}] [{}]", msg.getId(), msg.getType());
  57 + log.trace("Msg enters transaction - [{}] [{}]", msg.getId(), msg.getType());
58 58
59   - TbMsgTransactionData transactionData = new TbMsgTransactionData(UUID.randomUUID(), msg.getOriginator());
  59 + TbMsgTransactionData transactionData = new TbMsgTransactionData(msg.getId(), msg.getOriginator());
60 60
61 61 TbMsg tbMsg = new TbMsg(msg.getId(), msg.getType(), msg.getOriginator(), msg.getMetaData(), TbMsgDataType.JSON,
62 62 msg.getData(), transactionData, msg.getRuleChainId(), msg.getRuleNodeId(), msg.getClusterPartition());
... ...
... ... @@ -56,7 +56,7 @@ public class TbTransactionEndNode implements TbNode {
56 56 if (!isFailed) {
57 57 ctx.tellNext(msg, SUCCESS);
58 58 }
59   - log.trace("Msg out - [{}] [{}]", msg.getId(), msg.getType());
  59 + log.trace("Msg left transaction - [{}] [{}]", msg.getId(), msg.getType());
60 60 }
61 61
62 62 @Override
... ...