You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/08 07:05:37 UTC

[GitHub] [shardingsphere] jiangqs3 opened a new issue #12287: How to use SNOWFLAKE key generator when use Docker

jiangqs3 opened a new issue #12287:
URL: https://github.com/apache/shardingsphere/issues/12287


   ## Question
   
   shardingSphere version:4.1.1
   Using the Snowflake algorithm in docker environment may generate duplicate primary keys. What configuration is required to avoid this problem when use sharding-jdbc.
   


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



[GitHub] [shardingsphere] tristaZero commented on issue #12287: How to use SNOWFLAKE key generator when use Docker

Posted by GitBox <gi...@apache.org>.
tristaZero commented on issue #12287:
URL: https://github.com/apache/shardingsphere/issues/12287#issuecomment-917614180


   Solved, closed.


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



[GitHub] [shardingsphere] RaigorJiang commented on issue #12287: How to use SNOWFLAKE key generator when use Docker

Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #12287:
URL: https://github.com/apache/shardingsphere/issues/12287#issuecomment-914982928


   Hello @jiangqs3 
   Why shardingsphere-jdbc may generate duplicate primary keys in docker environment?  
   Did you configure the same props `worker-id`?  
   Notice: Each container can be mounted with a different VOLUME, which can solve the problem.
   


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



[GitHub] [shardingsphere] jiangqs3 commented on issue #12287: How to use SNOWFLAKE key generator when use Docker

Posted by GitBox <gi...@apache.org>.
jiangqs3 commented on issue #12287:
URL: https://github.com/apache/shardingsphere/issues/12287#issuecomment-914993164


   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



[GitHub] [shardingsphere] strongduanmu closed issue #12287: How to use SNOWFLAKE key generator when use Docker

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #12287:
URL: https://github.com/apache/shardingsphere/issues/12287


   


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