-
Notifications
You must be signed in to change notification settings - Fork 24
1.0.3 Release Notes (2023 03 14)
IHEII edited this page Mar 24, 2023
·
1 revision
Previous Release Notes: 1.0.2 Release Notes (2023 03 09)
- Fix RuntimeRetryTimes invalid problem and adjust log print mode and format
Add SLOW_QUERY_MONITOR_THRESHOLD property for setting slow query log print threshold, preventing too many logs from being printed
Some fixed bugs are listed below:
- Fix RuntimeRetryTimes invalid problem
- Adjust log print mode and format
- Change the monitor log print mode from synchronous to asynchronous to avoid too many logs from being printed
- Adjust the log print format for the monitor, learn more from 2.2.1
the log print format for each operation is as follows:
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"QUERY",EndPoint,ScanRange,ReturnRows,RouteTime,ExecuteTime,TotalTime
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"INSERT",EndPoint,RowKey,ErrCode,AffectedRows,RouteTime,ExecuteTime,TotalTime
For each sub-batch, print as below:
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"BATCH-partitionExecute"-type-partId,EndPoint,RowKeys,AffectedRows,RouteTime,ExecuteTime,TotalTime
For the entire batch operation:
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"BATCH",EndPoint,RowKeys,AffectedRows,RouteTime,ExecuteTime,TotalTime
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"QUERY_AND_MUTATE",MutateType,EndPoint,ScanRange,ErrCode,AffectedRows,RouteTime,ExecuteTime,TotalTime
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - "CONNECT",EndPoint,ExecuteTime
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID] - "LOGIN",EndPoint,ExecuteTime
Add SLOW_QUERY_MONITOR_THRESHOLD� property for setting slow query log print threshold, only requests whose execution time exceeds the threshold are logged into oceanbase-tabel-monitor log. You can set your SLOW_QUERY_MONITOR_THRESHOLD by using
obTableClient.setslowQueryMonitorThreshold(20); // set SLOW_QUERY_MONITOR_THRESHOLD to 20ms