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 2019/12/26 06:52:25 UTC

[GitHub] [incubator-shardingsphere] songjiesdnu opened a new issue #3806: Some question about HintManager in sharding-jdbc

songjiesdnu opened a new issue #3806: Some question about HintManager in sharding-jdbc
URL: https://github.com/apache/incubator-shardingsphere/issues/3806
 
 
   ## I cannot achieve the HintManager instance twice in one thread
   There is a case:
   ```java
   A(){
       B();
   }
   ```
   In method A, we set a hint rule, and we also want to set another hint rule in method B.By reading the source code, we found that, we cannot achieve the same instance of HintManager again, thus we cannot set another rule in method B.
   Is there some means we can use to meet our demand?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu commented on issue #3806: Some question about HintManager in sharding-jdbc

Posted by GitBox <gi...@apache.org>.
terrymanu commented on issue #3806: Some question about HintManager in sharding-jdbc
URL: https://github.com/apache/incubator-shardingsphere/issues/3806#issuecomment-569023359
 
 
   Hint should not call nested, if user do that, will throw exception: `Hint has previous value, please clear first.`

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] huang-gz commented on issue #3806: Some question about HintManager in sharding-jdbc

Posted by GitBox <gi...@apache.org>.
huang-gz commented on issue #3806: Some question about HintManager in sharding-jdbc
URL: https://github.com/apache/incubator-shardingsphere/issues/3806#issuecomment-569023338
 
 
   use org.apache.shardingsphere.api.hint.HintManager#clear(), Clear threadlocal for hint manager.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] terrymanu closed issue #3806: Some question about HintManager in sharding-jdbc

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #3806: Some question about HintManager in sharding-jdbc
URL: https://github.com/apache/incubator-shardingsphere/issues/3806
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-shardingsphere] songjiesdnu commented on issue #3806: Some question about HintManager in sharding-jdbc

Posted by GitBox <gi...@apache.org>.
songjiesdnu commented on issue #3806: Some question about HintManager in sharding-jdbc
URL: https://github.com/apache/incubator-shardingsphere/issues/3806#issuecomment-569049406
 
 
   > Hint should not call nested, if user do that, will throw exception: `Hint has previous value, please clear first.`
   
   the problem is that when i want to use HintManager in some place, i do not known HintManager has been set in other place or not.
   what i need is HintManager can add a static method to check whether HintManager has been seted.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [shardingsphere] cnlinjie commented on issue #3806: Some question about HintManager in sharding-jdbc

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


   @terrymanu 
   You will only close


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

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