[Bug] open/total connection metrics for KyuubiTHttpFrontendService is always 1
- Dominant language
- Scala
- Stars
- 2.4k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before asking
- [X] I have searched in the [issues](https://github.com/apache/incubator-kyuubi/issues?q=is%3Aissue) and found no similar issues.
### Describe the bug
I have testing it at my local dev environment.
First, `cd `
then add following config to `conf/kyuubi-defaults.conf`:
```
kyuubi.frontend.protocols THRIFT_HTTP
```
then `bin/kyuubi start`.
Check metric with command `grep "thrift" work/metrics/report.json -A3`:
```
"kyuubi.thrift.http.connection.opened" : {
"count" : 1
},
"kyuubi.thrift.http.connection.total" : {
"count" : 1
}
},
```
=> opened and total should be 0
then run `bin/beeline -u "jdbc:hive2://10.xxx.xx.xxx:10010/default;transportMode=http;httpPath=cliservice"`,
check metric again:
```
"kyuubi.thrift.http.connection.opened" : {
"count" : 1
},
"kyuubi.thrift.http.connection.total" : {
"count" : 1
}
},
```
=> open and total should be 1
open another terminal and run `bin/beeline -u "jdbc:hive2://10.xxx.xx.xxx:10010/default;transportMode=http;httpPath=cliservice"`, check metric again:
```
"kyuubi.thrift.http.connection.opened" : {
"count" : 1
},
"kyuubi.thrift.http.connection.total" : {
"count" : 1
}
},
```
=> open and total should be 2
### Affects Version(s)
1.6.0
### Kyuubi Server Log Output
_No response_
### Kyuubi Engine Log Output
_No response_
### Kyuubi Server Configurations
_No response_
### Kyuubi Engine Configurations
_No response_
### Additional context
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Contributor guide
Assessment
This issue has not been assessed yet.