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 2022/11/17 09:12:24 UTC

[GitHub] [shardingsphere] fbin87 opened a new issue, #22237: Is ContextManager#alterRuleConfiguration thread-safe method?

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

   ## Question
   
   the method such as org.apache.shardingsphere.mode.manager.ContextManager#alterRuleConfiguration, alterSchemas and so on, Are they thread-safe ?
   
   I want to update the rule or database with ContextManager.alterRuleConfiguration(...), while the old shardingSphere data source is being used
   


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


[GitHub] [shardingsphere] fbin87 commented on issue #22237: Is ContextManager#alterRuleConfiguration thread-safe method?

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

   > @fbin87 They are thread-safe for a single ShardingSphere-Proxy.
   
   Under the situation of java api standalone mode, when I call ContextManager.alterRuleConfiguration(...) to refresh the current ShardingSphereDatasource (it is used by another thread), how about ?


-- 
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] sandynz closed issue #22237: Is ContextManager#alterRuleConfiguration thread-safe method?

Posted by GitBox <gi...@apache.org>.
sandynz closed issue #22237: Is ContextManager#alterRuleConfiguration thread-safe method?
URL: https://github.com/apache/shardingsphere/issues/22237


-- 
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] zhaojinchao95 commented on issue #22237: Is ContextManager#alterRuleConfiguration thread-safe method?

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

   > > @fbin87 They are thread-safe for a single ShardingSphere-Proxy.
   > 
   > @zhaojinchao95 Hello, Under the situation of java api standalone mode, when I call ContextManager.alterRuleConfiguration(...) to refresh the current ShardingSphereDatasource (it is used by another thread), how about ?
   
   I think we can verify it. you have some suggest?


-- 
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] fbin87 commented on issue #22237: Is ContextManager#alterRuleConfiguration thread-safe method?

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

   > > > @fbin87 They are thread-safe for a single ShardingSphere-Proxy.
   > > 
   > > 
   > > @zhaojinchao95 Hello, Under the situation of java api standalone mode, when I call ContextManager.alterRuleConfiguration(...) to refresh the current ShardingSphereDatasource (it is used by another thread), how about ?
   > 
   > I think we can verify it. you have some suggest?
   
   thank you, No additional suggestions


-- 
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] zhaojinchao95 commented on issue #22237: Is ContextManager#alterRuleConfiguration thread-safe method?

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

   @fbin87 They are thread-safe for a single ShardingSphere-Proxy.


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