kyuubi
kyuubi copied to clipboard
[Bug] open/total connection metrics for KyuubiTHttpFrontendService is always 1
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Search before asking
- [X] I have searched in the issues and found no similar issues.
Describe the bug
I have testing it at my local dev environment.
First, cd <kyuubi_project_folder>
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!