eric-lee-ltk commented on a change in pull request #109: [WIP]SCB-173 mark
start of saga
URL:
https://github.com/apache/incubator-servicecomb-saga/pull/109#discussion_r160355276
##########
File path:
omega/omega-transport/omega-transport-resttemplate/src/main/java/org/apache/servicecomb/saga/omega/transport/resttemplate/TransactionClientHttpRequestInterceptor.java
##########
@@ -47,7 +52,7 @@ private String globalTxId() {
String globalTxId = omegaContext.globalTxId();
if (globalTxId == null) {
- return omegaContext.newGlobalTxId();
+ LOG.error("Global tx id should not be null.");
Review comment:
Not setting the header when it's null, but we still need to inject the
header otherwise. Just not generate the id here, right?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services