caishaodong commented on issue #6709:
URL: 
https://github.com/apache/incubator-seata/issues/6709#issuecomment-2257639931

   我根据CompressorType中的类型,都试过了,仍然还是解析不出来
   
我看在io.seata.rm.datasource.undo.dm.DmUndoLogManager#getRollbackInfo方法中,没有根据压缩类型来进行解析,而是直接获取byte数组
   protected byte[] getRollbackInfo(ResultSet rs) throws SQLException {
           Blob b = rs.getBlob("rollback_info");
           byte[] rollbackInfo = BlobUtils.blob2Bytes(b);
           return rollbackInfo;
       }
   
但是在io.seata.rm.datasource.undo.AbstractUndoLogManager#getRollbackInfo中是会根据压缩类型来解析的
    protected byte[] getRollbackInfo(ResultSet rs) throws SQLException {
           byte[] rollbackInfo = rs.getBytes("rollback_info");
           String rollbackInfoContext = rs.getString("context");
           Map<String, String> context = 
CollectionUtils.decodeMap(rollbackInfoContext);
           CompressorType compressorType = 
CompressorType.getByName((String)context.getOrDefault("compressorType", 
CompressorType.NONE.name()));
           return 
CompressorFactory.getCompressor(compressorType.getCode()).decompress(rollbackInfo);
       }
   
   我基于达梦数据库的情况下,没有按照指定的压缩类型来解析,这是正常的吗?


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

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to