You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@seata.apache.org by "ptyin (via GitHub)" <gi...@apache.org> on 2024/01/29 12:04:16 UTC

[PR] optimize: optimize synchronization procedure [incubator-seata-k8s]

ptyin opened a new pull request, #14:
URL: https://github.com/apache/incubator-seata-k8s/pull/14

   This PR aims to optimize current operator synchronization procedure. Currently, we use goroutine to poll and call `changeCluster` API. However, it is prone to lead to unexpected race condition.
   
   ![seata-k8s drawio](https://github.com/apache/incubator-seata-k8s/assets/32592585/8b83434f-408d-46fe-ab1b-bd7f2c1bbeef)
   
   As illustrated in the above figure, the former `changeCluster` may override the latter. This PR instead utilizes CR status and requeuing reconciliation. Besides, this PR also optimize project structure, moving core functionality to "pkg" folder and bumping go version to 1.21 (keep aligned with 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: dev-unsubscribe@seata.apache.org

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


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


Re: [PR] optimize: optimize synchronization procedure [incubator-seata-k8s]

Posted by "slievrly (via GitHub)" <gi...@apache.org>.
slievrly merged PR #14:
URL: https://github.com/apache/incubator-seata-k8s/pull/14


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

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


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