You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by xx...@apache.org on 2023/07/24 10:47:33 UTC
[kylin] 01/14: KYLIN-5654 Diagnostic host issue
This is an automated email from the ASF dual-hosted git repository.
xxyu pushed a commit to branch kylin5_beta
in repository https://gitbox.apache.org/repos/asf/kylin.git
commit bced807351fd7d2fe8b532c542042d9af4c5d54c
Author: Qian Xia <la...@gmail.com>
AuthorDate: Wed Jul 19 14:55:56 2023 +0800
KYLIN-5654 Diagnostic host issue
---
kystudio/src/components/admin/Diagnostic/index.vue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/kystudio/src/components/admin/Diagnostic/index.vue b/kystudio/src/components/admin/Diagnostic/index.vue
index c79454ffbe..c33a823dd5 100644
--- a/kystudio/src/components/admin/Diagnostic/index.vue
+++ b/kystudio/src/components/admin/Diagnostic/index.vue
@@ -312,11 +312,11 @@ export default class Diagnostic extends Vue {
if (data) {
if (this.isQueryHistory) {
const hostItem = data.find((item) => item.host === this.queryServer)
- Object.prototype.toString.call(hostItem) === '[object Object]' && this.serverOptions.push({label: `${hostItem.host}(${hostItem.mode && hostItem.mode.toLocaleUpperCase()})`, value: hostItem.host})
+ Object.prototype.toString.call(hostItem) === '[object Object]' && this.serverOptions.push({label: `${hostItem.host}(${hostItem.mode && hostItem.mode.toLocaleUpperCase()})`, value: hostItem.secretName})
this.servers = this.serverOptions.length ? [this.serverOptions[0].value] : []
} else {
data.forEach(item => {
- Object.prototype.toString.call(item) === '[object Object]' && this.serverOptions.push({label: `${item.host}(${item.mode && item.mode.toLocaleUpperCase()})`, value: item.host})
+ Object.prototype.toString.call(item) === '[object Object]' && this.serverOptions.push({label: `${item.host}(${item.mode && item.mode.toLocaleUpperCase()})`, value: item.secretName})
})
this.servers = this.serverOptions.length ? [this.serverOptions[0].value] : []
}
@@ -407,10 +407,10 @@ export default class Diagnostic extends Vue {
end: new Date(this.dateTime.next).getTime()
}
}
- this.servers.forEach(async (host) => {
+ this.servers.forEach(async (secretName) => {
if (this.isQueryHistory) {
await this.getQueryDiagnostic({
- host: `http://${host.trim()}`,
+ host: secretName,
...data,
tm: this.getTimes()
}).then(() => {
@@ -423,7 +423,7 @@ export default class Diagnostic extends Vue {
})
} else {
await this.getDumpRemote({
- host: `http://${host.trim()}`,
+ host: secretName,
...data,
tm: this.getTimes()
}).then(() => {