mymeiyi opened a new pull request, #26512:
URL: https://github.com/apache/doris/pull/26512
## Proposed changes
1. Use prepared protocol `useServerPrepStmts=true` and connect to follower FE
2. Use prepared statement to execute a ddl stmt such as `drop database`
3. follower FE forward this command to master FE, and it's not prepared
protocol
4. then the client got the following exception:
```
java.sql.SQLNonTransientConnectionException: msg: Not supported such
prepared statement
at
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
at
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at
com.mysql.cj.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:633)
at
com.mysql.cj.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:417)
at
com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:371)
```
When and connect to follower FE, it forward the sql to master FE and
## Further comments
If this is a relatively large or complex change, kick off the discussion at
[[email protected]](mailto:[email protected]) by explaining why you
chose the solution you did and what alternatives you considered, etc...
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]