You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "JustFreedom (via GitHub)" <gi...@apache.org> on 2024/02/22 02:45:29 UTC

[I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

JustFreedom opened a new issue, #6371:
URL: https://github.com/apache/incubator-seata/issues/6371

   io.seata.server.coordinator.DefaultCore#doGlobalRollback中的 
   globalSession.getSortedBranches()需要修复成globalSession.getReverseSortedBranches();([这个已经在2.x中修复](https://github.com/apache/incubator-seata/issues/6120))
   
   我计划自己修复后,自己重新打镜像。
   [[由于2.0.0中没有修复这个bug,我自己2.0.0的源码,修改这样代码。使用教程中的命令](https://github.com/apache/incubator-seata/blob/v2.0.0/distribution/Dockerfile)打包,打出来的镜像与从镜像仓库拉下来的差别较大。
   1. mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
   2. cd distribution/target/seata-server-2.0.0/seata/
   3. docker build --no-cache --build-arg SEATA_VERSION=2.0.0 -t seata-server:2.0.0 .
   
   问题:
   1、是我使用的打包的命令不对么?
   2、有其他办法在2.0.0中fix这个bug么?
   <img width="1252" alt="image" src="https://github.com/apache/incubator-seata/assets/9329490/fee22580-5413-4b6e-99e7-c09547f60984">
   <img width="1038" alt="image" src="https://github.com/apache/incubator-seata/assets/9329490/68aaa0bb-2de9-43bb-be12-8b82a515389c">
   
   
   


-- 
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-unsubscribe@seata.apache.org.apache.org

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


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


Re: [I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

Posted by "liuqiufeng (via GitHub)" <gi...@apache.org>.
liuqiufeng commented on issue #6371:
URL: https://github.com/apache/incubator-seata/issues/6371#issuecomment-1958568304

   官网镜像使用jib-maven-plugin插件打包,可以通过启用image profile使其生效,但需要调整部分参数。参考:https://github.com/apache/incubator-seata/blob/2.x/server/pom.xml#L342
   
   The official image is packaged using the jib-maven-plugin plugin, which can be enabled by enabling image profile, but some parameters need to be adjusted. Reference: https://github.com/apache/incubator-seata/blob/2.x/server/pom.xml#L342 


-- 
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-unsubscribe@seata.apache.org

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


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


Re: [I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

Posted by "liuqiufeng (via GitHub)" <gi...@apache.org>.
liuqiufeng commented on issue #6371:
URL: https://github.com/apache/incubator-seata/issues/6371#issuecomment-1958570329

   目前与提供的dockerfile打包确实差距较大,感兴趣可以提交pr使两边保持一致。
   
   Currently there is a real gap with the provided Dockerfile packaging, interested in submitting pr to bring both sides in line.


-- 
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-unsubscribe@seata.apache.org

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


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


Re: [I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

Posted by "liuqiufeng (via GitHub)" <gi...@apache.org>.
liuqiufeng commented on issue #6371:
URL: https://github.com/apache/incubator-seata/issues/6371#issuecomment-1958574942

   > 1.切到这个修复后的commits的seata版本 2.mvn -Prelease-seata -Dmaven.test.skip=true clean install -U 3.到distribution运行 https://github.com/apache/incubator-seata/blob/2.x/distribution/Dockerfile
   > 
   > 1.Cut to the seata version of this repaired commits 2.mvn -Prelease-seata -Dmaven.test.skip=true clean install -U 3. cd distribution https://github.com/apache/incubator-seata/blob/2.x/distribution/Dockerfile
   
   根据上面的问题描述,目前他采用的应该就是这种方式。与官网镜像确实有差别。
   
   Based on the description of the problem above, this should be the approach he is currently using. It does differ from the official site image. 


-- 
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-unsubscribe@seata.apache.org

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


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


Re: [I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

Posted by "JustFreedom (via GitHub)" <gi...@apache.org>.
JustFreedom closed issue #6371: 如何将globalSession.getReverseSortedBranches() fix到2.0.0
URL: https://github.com/apache/incubator-seata/issues/6371


-- 
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-unsubscribe@seata.apache.org

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


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


Re: [I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6371:
URL: https://github.com/apache/incubator-seata/issues/6371#issuecomment-1958571531

   1.切到这个修复后的commits的seata版本
   2.mvn -Prelease-seata -Dmaven.test.skip=true clean install -U
   3.到distribution运行 https://github.com/apache/incubator-seata/blob/2.x/distribution/Dockerfile
   
   1.Cut to the seata version of this repaired commits 2.mvn -Prelease-seata -Dmaven.test.skip=true clean install -U 3. cd distribution  https://github.com/apache/incubator-seata/blob/2.x/distribution/Dockerfile


-- 
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-unsubscribe@seata.apache.org

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


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


Re: [I] 如何将globalSession.getReverseSortedBranches() fix到2.0.0 [incubator-seata]

Posted by "JustFreedom (via GitHub)" <gi...@apache.org>.
JustFreedom commented on issue #6371:
URL: https://github.com/apache/incubator-seata/issues/6371#issuecomment-1960811965

   目前我已经将新的镜像放到我的服务器并启动了,目前看起来是和官网的一样了。
   **但还是建议在1.7.0之后的版本hotfix这个问题**,只要业务在同一个事物中多次操作数据,就会导致回滚失败
   处理步骤如下:
   ```
   1、将seata-server 下的pom.xml中的 jib-maven-plugin 节点下的 
                   <executions>
                       <execution>
                           <phase>package</phase>
                           <goals>
                               <goal>dockerBuild</goal>
                           </goals>
                       </execution>
                   </executions>
   改为
                   <executions>
                       <execution>
                           <phase>package</phase>
                           <goals>
                               <goal>build</goal>
                           </goals>
                       </execution>
                   </executions>
   2、cd server/
   3、build镜像,并推送到本地(如果需要推送到指定地址(如localhost:5000),需要添加 参数 -Dimage.name=localhost:5000/seata-server)
   mvn  package jib:dockerBuild -Prelease-image-based-on-java8,release-seata  -DskipTests -Dimage.publish.skip=false -Dimage.tags=2.0.0.1
   4、保存镜像到指定路径
   docker save -o /Users/xxx/Downloads/seata-server-2.0.0.1.tar seata-server:2.0.0.1
   5、将镜像文件上传到服务器
    scp  /Users/xxx/Downloads/seata-server-2.0.0.1.tar xx@xx.xx.xx.xx:/data/images/seata
   6、在服务器上load镜像
   docker load -i seata-server-2.0.0.1.tar 
   7、重新部署seata应用
   
   ```


-- 
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-unsubscribe@seata.apache.org

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


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