Skip to content

1.0.3 Release Notes (2023 03 14)

IHEII edited this page Mar 24, 2023 · 1 revision

OBKV Table Client Java v1.0.3 Release Notes

Previous Release Notes: 1.0.2 Release Notes (2023 03 09)

1. Abstract

1.1 Bug Fixes and Enhancement

  • Fix RuntimeRetryTimes invalid problem and adjust log print mode and format

1.2 New Feature

Add SLOW_QUERY_MONITOR_THRESHOLD property for setting slow query log print threshold, preventing too many logs from being printed

2. Bug Fixes and Enhancement

2.1 Bug Fixes

Some fixed bugs are listed below:

  1. Fix RuntimeRetryTimes invalid problem
  2. Adjust log print mode and format

2.2 Enhancement

  1. Change the monitor log print mode from synchronous to asynchronous to avoid too many logs from being printed
  2. Adjust the log print format for the monitor, learn more from 2.2.1

2.2.1

the log print format for each operation is as follows:

Query
DateTime "INFO"  [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"QUERY",EndPoint,ScanRange,ReturnRows,RouteTime,ExecuteTime,TotalTime
Table Operation
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"INSERT",EndPoint,RowKey,ErrCode,AffectedRows,RouteTime,ExecuteTime,TotalTime
Batch

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
QueryAndMutate
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID],DatabaseName,TableName,"QUERY_AND_MUTATE",MutateType,EndPoint,ScanRange,ErrCode,AffectedRows,RouteTime,ExecuteTime,TotalTime
Connect
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - "CONNECT",EndPoint,ExecuteTime
Login
DateTime "INFO" [Thread Name] "OBKV-MONITOR" - [TraceID] - "LOGIN",EndPoint,ExecuteTime

3. New Feature

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