Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
cebfda46
authored
Jan 27, 2026
by
taven
Committed by
GitHub
Jan 27, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update OceanBase vector DB controller log format (#6331)
parent
3454f21b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
packages/service/common/vectorDB/oceanbase/controller.ts
+5
-5
No files found.
packages/service/common/vectorDB/oceanbase/controller.ts
View file @
cebfda46
...
@@ -31,16 +31,16 @@ export const getClient = async (): Promise<Pool> => {
...
@@ -31,16 +31,16 @@ export const getClient = async (): Promise<Pool> => {
try
{
try
{
// Test the connection with a simple query instead of calling connect()
// Test the connection with a simple query instead of calling connect()
await
global
.
obClient
.
query
(
'SELECT 1'
);
await
global
.
obClient
.
query
(
'SELECT 1'
);
addLog
.
info
(
`
oceanbase connected
`
);
addLog
.
info
(
`
[OceanBase] connect
`
);
return
global
.
obClient
;
return
global
.
obClient
;
}
catch
(
error
)
{
}
catch
(
error
)
{
addLog
.
error
(
`
oceanbase
connect error`
,
error
);
addLog
.
error
(
`
[OceanBase]
connect error`
,
error
);
global
.
obClient
?.
end
();
global
.
obClient
?.
end
();
global
.
obClient
=
null
;
global
.
obClient
=
null
;
await
delay
(
1000
);
await
delay
(
1000
);
addLog
.
info
(
`
Retry connect oceanbase
`
);
addLog
.
info
(
`
[OceanBase] retry connect
`
);
return
getClient
();
return
getClient
();
}
}
...
@@ -216,7 +216,7 @@ class ObClass {
...
@@ -216,7 +216,7 @@ class ObClass {
insertIds: []
insertIds: []
};
};
} catch (error) {
} catch (error) {
addLog.error(
`
OceanBase
batch
insert
error
:
$
{
error
}
`
);
addLog.error(
'[OceanBase] batch insert error', error
);
throw error;
throw error;
} finally {
} finally {
connection.release(); // 释放连接回连接池
connection.release(); // 释放连接回连接池
...
@@ -229,7 +229,7 @@ class ObClass {
...
@@ -229,7 +229,7 @@ class ObClass {
const time = Date.now() - start;
const time = Date.now() - start;
if (time > 300) {
if (time > 300) {
addLog.warn(`
oceanbase
query
time
:
$
{
time
}
ms
,
sql
:
$
{
sql
}
`);
addLog.warn(`
[
OceanBase
]
query
time
:
$
{
time
}
ms
,
sql
:
$
{
sql
}
`);
}
}
return res;
return res;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment