You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "FlyingZC (via GitHub)" <gi...@apache.org> on 2025/03/20 04:59:58 UTC

[I] Refactor the lock implementation in GlobalClockTransactionHook [shardingsphere]

FlyingZC opened a new issue, #35041:
URL: https://github.com/apache/shardingsphere/issues/35041

   ## Feature Request
   
   Refactor the lock implementation in GlobalClockTransactionHook.
   
   1.  Avoid using registry-based locks (e.g., ZooKeeper) because acquiring a lock might timeout in beforeCommit, but the afterCommit could still attempt to release it. Eliminate unnecessary unlock operations. 
   
   Corresponding FIXME:
   ```
   FIXME: If timeout occurs when a lock is required but TSO is not assigned, the commit will still proceed. The solution is to replace the registry center's lock with a Redis-based lock implementation.
   ```
   
   2. Move the locking logic to the TSO component (e.g., implement locking/unlocking via Redis's native lock in RedisTSOProvider). Corresponding TODO:
   
   ```
   // TODO: Use Redis lock instead of registry center's lock.
   ```
   
   


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

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


Re: [I] Refactor the lock implementation in GlobalClockTransactionHook [shardingsphere]

Posted by "Dltmd202 (via GitHub)" <gi...@apache.org>.
Dltmd202 commented on issue #35041:
URL: https://github.com/apache/shardingsphere/issues/35041#issuecomment-2972781501

   Hi, please assign this issue to me. Thank you!
   
   


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

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


Re: [I] Refactor the lock implementation in GlobalClockTransactionHook [shardingsphere]

Posted by "waterWang (via GitHub)" <gi...@apache.org>.
waterWang commented on issue #35041:
URL: https://github.com/apache/shardingsphere/issues/35041#issuecomment-5249874897

   I would like to work on this issue. I will refactor the lock implementation in GlobalClockTransactionHook to use Redis-based locks instead of the registry center lock, and move the locking logic to the TSO component (implementing locking/unlocking via Redis native lock in RedisTSOProvider).


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

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


Re: [I] Refactor the lock implementation in GlobalClockTransactionHook [shardingsphere]

Posted by "Dltmd202 (via GitHub)" <gi...@apache.org>.
Dltmd202 commented on issue #35041:
URL: https://github.com/apache/shardingsphere/issues/35041#issuecomment-2991988068

   Hi @FlyingZC,
   I’ve created a refactor PR here: https://github.com/apache/shardingsphere/pull/35722
   When you have a moment, could you please take a look?


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

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


Re: [I] Refactor the lock implementation in GlobalClockTransactionHook [shardingsphere]

Posted by "nirupam-06 (via GitHub)" <gi...@apache.org>.
nirupam-06 commented on issue #35041:
URL: https://github.com/apache/shardingsphere/issues/35041#issuecomment-5206464767

   Hi! I'm interested in working on this issue. Could you please assign it to me? Thanks!
   


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

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