pengyu0929 commented on issue #633: omega不能正常重连alpha URL: https://github.com/apache/servicecomb-pack/issues/633#issuecomment-575450542 使用的0.4.0版本; 这个不是数据连接的问题,是因为你们并没有兼容ORACLE数据库,ORACLE数据库是不支持存储空字符串的,而`SagaStartedEvent`的构造函数中`compensationMethod`属性使用`空字符串`初始化,并且该字段在`txevent`表中是`非null`的,所以报了数据插入异常,`SagaEndedEvent`也有同样的问题; ```java public class SagaStartedEvent extends TxEvent { public SagaStartedEvent(String globalTxId, String localTxId, int timeout) { // use "" instead of null as compensationMethod requires not null in sql super(EventType.SagaStartedEvent, globalTxId, localTxId, null, "", timeout, "", 0); } } ``` ```java public class SagaEndedEvent extends TxEvent { SagaEndedEvent(String globalTxId, String localTxId) { super(EventType.SagaEndedEvent, globalTxId, localTxId, null, "", 0, "", 0); } } ``` 我提个建议,你们是否需要重构下alpha端的sql,继而兼容多种数据库呢?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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
