---
title: 排查是否因时钟跳变导致 RS 失去心跳的方法-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于排查是否因时钟跳变导致 RS 失去心跳的方法相关的常见问题和使用技巧，帮助您快速解决排查是否因时钟跳变导致 RS 失去心跳的方法的难题。
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

划线反馈

# 排查是否因时钟跳变导致 RS 失去心跳的方法

更新时间：2026-06-12 07:31

适用版本： V2.1.x、V2.2.x、V3.1.x、V3.2.x 内容类型：TechNote  

本文介绍排查是否因时钟跳变导致 Root Service 失去心跳的方法。

Root Service 日志中可以搜索日志关键字 `clock between rs and server not sync`。

Root Service 和 Server 时间差 = current_rs_time（当前 Root Service 时间）- current_server_time（当前 Server 时间）。

server_behind_time = current_rs_time -（current_server_time + round_trip_time / 2）。 其中 round_trip_time 为一个报文的往返时间（如果网络有问题，或者机器在白名单中也同样会报该错误）。 ​ 如果 `server_behind_time` > 集群配置的 `rpc_timeout` 则表示 Root Service 收不到 Server 心跳信息。

`rpc_timeout` 系统参数用于设置 RPC 请求被终止之前允许执行的时间。

## 适用版本

OceanBase 数据库 V2.x、V3.x 版本。

上一篇

[如何查看 Root Service 切换完成的时间点](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000450158)

下一篇

[RS 自检线程报错 thread hang](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000225634) ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
