Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -353,7 +353,7 @@ int ObMPStmtFetch::response_result(pl::ObPLCursorInfo &cursor,
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpect streaming result set.", K(ret), K(cursor.get_id()));
}
if (OB_OCI_DEFAULT != offset_type_ && OB_OCI_FETCH_NEXT != offset_type_) {
if (OB_OCI_DEFAULT != offset_type_ || OB_OCI_FETCH_NEXT != offset_type_) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("streaming result set not support this offset type.", K(ret),
K(cursor.get_id()),
@ -687,7 +687,6 @@ int ObMPStmtFetch::process()
THIS_WORKER.set_session(sess);
ObSQLSessionInfo::LockGuard lock_guard(session.get_query_lock());
session.set_current_trace_id(ObCurTraceId::get_trace_id());
session.init_use_rich_format();
session.get_raw_audit_record().request_memory_used_ = 0;
observer::ObProcessMallocCallback pmcb(0,
session.get_raw_audit_record().request_memory_used_);
@ -696,8 +695,6 @@ int ObMPStmtFetch::process()
if (OB_UNLIKELY(!session.is_valid())) {
ret = OB_ERR_UNEXPECTED;
LOG_ERROR("invalid session", K_(cursor_id), K(ret));
} else if (OB_FAIL(process_kill_client_session(session))) {
LOG_WARN("client session has been killed", K(ret));
} else if (OB_UNLIKELY(session.is_zombie())) {
//session has been killed some moment ago
ret = OB_ERR_SESSION_INTERRUPTED;