You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "alei78910 (via GitHub)" <gi...@apache.org> on 2023/05/17 13:09:09 UTC

[GitHub] [shardingsphere] alei78910 opened a new issue, #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   Upgrade from shardingsphere-proxy:5.3.2 self-compiled master branch to apache-shardingsphere-5.3.3-SNAPSHOT, execute 
   ```
   CREATE READWRITE_SPLITTING RULE group_messagecenter (
   WRITE_STORAGE_UNIT=ds_write_messagecenter,
   READ_STORAGE_UNITS(ds_read_messagecenter),
   TYPE(NAME="random")
   );
   ```
    error message is as follows:
   ```
   ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()" because the return value of "org.apache.shardingsphere.
   readwritesplitting.api.rule.ReadwriteSplittingDataSourceRuleConfiguration.getTransactionalReadQueryStrategy()" is null
   ```
   Corresponding to the 62 lines in the features\readwrite-splitting\core\src\main\java\org\apache\shardingsphere\readwritesplitting\yaml\swapper\YamlReadwriteSplittingRuleConfigurationSwapper.java file result.setTransactionalReadQueryStrategy(dataSourceRuleConfig.getTransactionalReadQueryStrategy ().name());


-- 
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] RaigorJiang commented on issue #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   Hi @alei78910 
   After #25871, now we can set transactionalReadQueryStrategy  in readwrite-splitting RDL.


-- 
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 closed issue #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"
URL: https://github.com/apache/shardingsphere/issues/25744


-- 
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 #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   @Pace2Car @RaigorJiang Hi, is there a way?


-- 
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 #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   <img width="1530" alt="image" src="https://github.com/apache/shardingsphere/assets/33742097/75e720b3-93fb-4884-ba4b-2c19f51132ce">
   
   I can't reproduce. My steps :
   
   ```
   1. CREATE DATABASE test;
   2. USE test;
   3. REGISTER STORAGE UNIT ds_1 (
       HOST="xxxx",
       PORT=33308,
       DB="test",
       USER="root",
       PASSWORD="xxxx"
   );
   4. CREATE READWRITE_SPLITTING RULE group_messagecenter (
   WRITE_STORAGE_UNIT=ds_1,
   READ_STORAGE_UNITS(ds_1),
   TYPE(NAME="random")
   );
   ```


-- 
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 #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   Hi  @alei78910 @zhaojinchao95 
   I found that the attribute `transactionalReadQueryStrategy` was recently added and cannot be configured in the DistSQL now.
   
   We need to update DistSQL syntax.


-- 
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 #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   @alei78910 Thank you for your feedback, we will check it.


-- 
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] alei78910 commented on issue #25744: ERROR 30000 (HY000): Unknown exception: Cannot invoke "org.apache.shardingsphere.readwritesplitting.api.transaction.TransactionalReadQueryStrategy.name()"

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

   How do I set transactionalReadQueryStrategy to PRIMARY when executing 
   ```
   CREATE READWRITE_SPLITTING RULE group_messagecenter (
   WRITE_STORAGE_UNIT=ds_write_messagecenter,
   READ_STORAGE_UNITS(ds_read_messagecenter),
   TYPE(NAME="random")
   );
   ```


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