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/22 13:22:59 UTC
[GitHub] [shardingsphere] MrCong233 opened a new issue, #22345: Testing grafana + shardingsphere + openGauss, grafana setup successfully, but execute ParseInt Error when logging in.
MrCong233 opened a new issue, #22345:
URL: https://github.com/apache/shardingsphere/issues/22345
## Bug Report
Testing grafana + shardingsphere + openGauss, grafana setup successfully, but execute ParseInt: parsing \\"\\" when logging in.
### Which version of ShardingSphere did you use?
commit id : 85541320133e8049027e922557636fe32c58625c
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
proxy
### Expected behavior
grafana executes successfully.
### Actual behavior
Shardingsphere response an empty string to grafana.
![image-20221122205916579-1669123237224-2](https://user-images.githubusercontent.com/27768675/203324404-f5f88722-3ff3-4016-8ea6-caf0a12304c8.png)
### Reason analyze (If you can)
Shardingsphere seems response "68" to grafana.
![image-20221122210438268](https://user-images.githubusercontent.com/27768675/203324450-8bf3055a-4570-4f4a-a4a9-874970f63273.png)
The network packet capture results show that the packets replied by ss is no-data.Error
![image-20221122210651224](https://user-images.githubusercontent.com/27768675/203324589-ed80a75b-55f2-46d9-831e-8b0033ca8242.png)
![image-20221122210739329](https://user-images.githubusercontent.com/27768675/203324658-701a4692-b188-475f-8e3a-031d20f247e2.png)
Possible problematic code:
```
org.apache.shardingsphere.proxy.frontend.postgresql.command.query.extended.describe.PostgreSQLComDescribeExecutor#describeInsertStatementByDatabaseMetaData
```
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
Abnormal SQL:
```sql
2022-11-21 12:21:12.874 grafana grafana 192.168.0.35 281459677792192 0[0:0#0] 0 [BACKEND] LOG: execute <unnamed>: INSERT INTO "user_auth_token" ("user_id","auth_token","prev_auth_token","user_agent","client_ip","auth_token_seen","seen_at","rotated_at","created_at","updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) RETURNING "id"
2022-11-21 12:21:12.874 grafana grafana 192.168.0.35 281459677792192 0[0:0#0] 0 [BACKEND] DETAIL: parameters: $1 = '1', $2 = '014f8e6cc59e9c86d853ecbf6e6622994d760a5b36ba4f136dc7ca034dcfabfc', $3 = '014f8e6cc59e9c86d853ecbf6e6622994d760a5b36ba4f136dc7ca034dcfabfc', $4 = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36', $5 = '192.168.0.232', $6 = 'f', $7 = '0', $8 = '1669004472', $9 = '1669004472', $10 = '1669004472'
```
### 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-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] TeslaCN commented on issue #22345: Testing grafana + shardingsphere + openGauss, grafana setup successfully, but execute ParseInt Error when logging in.
Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #22345:
URL: https://github.com/apache/shardingsphere/issues/22345#issuecomment-1323759687
This could be reproduced by JDBC.
```sql
create table t (id serial primary key, val varchar not null);
```
```java
try (Connection connection = DriverManager.getConnection("jdbc:postgresql://127.0.0.1:55432/postgres?prepareThreshold=1", "postgres", "postgres")) {
try (PreparedStatement preparedStatement = connection.prepareStatement("insert into t (val) values (?) returning id")) {
ResultSetMetaData metaData = preparedStatement.getMetaData();
metaData.getColumnName(1);
}
}
```
```
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.sql.ResultSetMetaData.getColumnLabel(int)" because "metaData" is null
```
--
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] tristaZero closed issue #22345: Testing grafana + shardingsphere + openGauss, grafana setup successfully, but execute ParseInt Error when logging in.
Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #22345: Testing grafana + shardingsphere + openGauss, grafana setup successfully, but execute ParseInt Error when logging in.
URL: https://github.com/apache/shardingsphere/issues/22345
--
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