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

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   we find java version: java8, full_version=1.8.0_282
   ShardingSphere-5.1.3-SNAPSHOT
   Commit ID: dirty-9dd0d3990c849d50c17c6dc7c92ec2d4ce0ad7e5
   Commit Message: Implements openGauss version function by calcite (#19327)
   Branch: 9dd0d3990c849d50c17c6dc7c92ec2d4ce0ad7e5
   Build time: 2022-08-02T17:55:17+0800
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   In the XA-Narayana transaction type scenario, when start a transaction and 
select one table,return query results normally
   ### Actual behavior
   In the XA-Narayana transaction type scenario, when start a transaction and 
select one table, it prompts that the table does not exist
   
   
   ```
   test_db=> begin;
   BEGIN
   test_db=> select * from t_broadcast;
   ERROR:  relation "t_broadcast" does not exist on dn_6001
   LINE 1: select * from t_broadcast;
                         ^
   test_db=> end;
   ROLLBACK
   test_db=> select * from t_broadcast;
    id
   ----
     2
   (1 row)
   
   ```
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   config:
     broadcastTables:
       - t_broadcast
   
   error log
   
   
   ```
   [INFO ] 2022-08-03 11:15:49.692 [Connection-1-ThreadExecutor] 
ShardingSphere-SQL - Logic SQL: select * from t_broadcast;
   [INFO ] 2022-08-03 11:15:49.692 [Connection-1-ThreadExecutor] 
ShardingSphere-SQL - SQLStatement: 
OpenGaussSelectStatement(super=SelectStatement(super=AbstractSQLStatement(parameterCount=0,
 parameterMarkerSegments=[], commentSegments=[]), 
projections=ProjectionsSegment(startIndex=7, stopIndex=7, 
projections=[ShorthandProjectionSegment(startIndex=7, stopIndex=7, 
owner=Optional.empty, alias=Optional.empty)], distinctRow=false), 
from=SimpleTableSegment(tableName=TableNameSegment(startIndex=14, stopIndex=24, 
identifier=IdentifierValue(value=t_broadcast, quoteCharacter=NONE)), 
owner=Optional.empty, alias=Optional.empty), where=Optional.empty, 
groupBy=Optional.empty, having=Optional.empty, orderBy=Optional.empty, 
combines=[]), limit=Optional.empty, lock=Optional.empty, window=Optional.empty)
   [INFO ] 2022-08-03 11:15:49.692 [Connection-1-ThreadExecutor] 
ShardingSphere-SQL - Actual SQL: ds_0 ::: select * from t_broadcast;
   [ERROR] 2022-08-03 11:15:49.701 [Connection-1-ThreadExecutor] 
o.a.s.p.f.c.CommandExecutorTask - Exception occur:
   org.opengauss.util.PSQLException: [IP1:34594/IP2:14000] ERROR: relation 
"t_broadcast" does not exist on dn_6001
     Position: 15
           at 
org.opengauss.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2901)
           at 
org.opengauss.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2630)
           at 
org.opengauss.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:362)
           at 
org.opengauss.jdbc.PgStatement.runQueryExecutor(PgStatement.java:562)
           at 
org.opengauss.jdbc.PgStatement.executeInternal(PgStatement.java:539)
           at org.opengauss.jdbc.PgStatement.execute(PgStatement.java:397)
           at 
org.opengauss.jdbc.PgStatement.executeWithFlags(PgStatement.java:339)
           at 
org.opengauss.jdbc.PgStatement.executeCachedSql(PgStatement.java:325)
           at 
org.opengauss.jdbc.PgStatement.executeWithFlags(PgStatement.java:302)
           at org.opengauss.jdbc.PgStatement.execute(PgStatement.java:298)
           at org.opengauss.jdbc.PgStatement.execute(PgStatement.java:1458)
           at 
com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:103)
           at 
com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.impl.ProxyStatementExecutorCallback.execute(ProxyStatementExecutorCallback.java:40)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:73)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:66)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:44)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:89)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:69)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:135)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.serialExecute(ExecutorEngine.java:121)
           at 
org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:115)
           at 
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:65)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.ProxyJDBCExecutor.execute(ProxyJDBCExecutor.java:71)
           at 
org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.useDriverToExecute(ProxySQLExecutor.java:173)
           at 
org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:133)
           at 
org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:127)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:139)
           at 
org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:71)
           at 
org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.execute(SchemaAssignedDatabaseBackendHandler.java:63)
           at 
org.apache.shardingsphere.proxy.frontend.opengauss.command.query.simple.OpenGaussComQueryExecutor.execute(OpenGaussComQueryExecutor.java:79)
           at 
org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:108)
           at 
org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:78)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   ```
   
   ### Example codes for reproduce this issue (such as a github link).
   


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

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

Reply via email to