---
title: 升级过程报错-向量检查未通过-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于升级过程报错-向量检查未通过相关的常见问题和使用技巧，帮助您快速解决升级过程报错-向量检查未通过的难题。
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
[OceanBase AI 数据大会](https://www.oceanbase.com/conference2026 "OceanBase AI 数据大会")

## 体验新一代 AI 数据平台

[立即咨询](https://www.oceanbase.com/contactus) [免费试用 免费试用](https://www.oceanbase.com/free-trial)划线反馈

# 升级过程报错-向量检查未通过

更新时间：2026-08-21 09:56

适用版本： V4.3.x 内容类型：Troubleshoot  

## 问题现象

从 OceanBase 数据库版本 4.3.5.2 升级到 4.3.5.5 时，执行升级前脚本（`execute upgrade pre script`）失败。

查看 OceanBase Cloud Platform (OCP) 日志，发现以下关键信息：

1. 日志中持续打印 `Checking vector index loading status (attempt 0/1050)`，初步怀疑与向量索引有关。
 2. 问题涉及租户 ID 1036。日志显示 `Top 1 pending table` 中卡住的 `table_id` 为 500107，`diff` 值为 2973，报错原因为 `incr_cnt_inconsistent`（增量计数不一致）。

以下是 OCP 日志片段：

```log
[2026-03-24 10:13:05] INFO upgrade_health_checker.py:823 Checking vector index loading status (attempt 0/1050)
[2026-03-24 10:13:05] INFO upgrade_health_checker.py:824   Tenant 1032: 5/5 tablets loaded (100.0%), expected 3 replicas
  Tenant 1036: 0/1 tablets loaded (0.0%), expected 3 replicas
    Top 1 pending tablets:
{'max_incr': 2793, 'history_rounds': 1, 'min_incr': 0, 'reason': 'incr_cnt_inconsistent', 'tablet_id': 1152921504606847123, 'data_table_id': 500107, 'diff': 2793}
[2026-03-24 10:13:15] INFO upgrade_health_checker.py:523 Got expected replica count from CDB_OB_LS_LOCATIONS: 17 tenants, details: {1024: 3, 1046: 3, 1030: 3, 1032: 3, 1052: 3, 1002: 3, 1036: 3, 1042: 3, 1008: 3, 1048: 3, 1010: 3, 1012: 3, 1014: 3, 1016: 3, 1020: 3, 1034: 3, 1022: 3}
[2026-03-24 10:13:15] INFO upgrade_health_checker.py:775 Zone count: 3
[2026-03-24 10:13:15] INFO upgrade_health_checker.py:823 Checking vector index loading status (attempt 1/1050)
[2026-03-24 10:13:15] INFO upgrade_health_checker.py:824   Tenant 1032: 5/5 tablets loaded (100.0%), expected 3 replicas
  Tenant 1036: 0/1 tablets loaded (0.0%), expected 3 replicas
    Top 1 pending tablets:
{'max_incr': 2793, 'history_rounds': 2, 'min_incr': 0, 'reason': 'incr_cnt_inconsistent', 'tablet_id': 1152921504606847123, 'data_table_id': 500107, 'diff': 2793}
[2026-03-24 10:13:25] INFO upgrade_health_checker.py:523 Got expected replica count from CDB_OB_LS_LOCATIONS: 17 tenants, details: {1024: 3, 1046: 3, 1030: 3, 1032: 3, 1052: 3, 1002: 3, 1036: 3, 1042: 3, 1008: 3, 1048: 3, 1010: 3, 1012: 3, 1014: 3, 1016: 3, 1020: 3, 1034: 3, 1022: 3}
[2026-03-24 10:13:25] INFO upgrade_health_checker.py:775 Zone count: 3
[2026-03-24 10:13:25] INFO upgrade_health_checker.py:823 Checking vector index loading status (attempt 2/1050)
[2026-03-24 10:13:25] INFO upgrade_health_checker.py:824   Tenant 1032: 5/5 tablets loaded (100.0%), expected 3 replicas
  Tenant 1036: 0/1 tablets loaded (0.0%), expected 3 replicas
    Top 1 pending tablets:
{'max_incr': 2793, 'history_rounds': 3, 'min_incr': 0, 'reason': 'incr_cnt_inconsistent', 'tablet_id': 1152921504606847123, 'data_table_id': 500107, 'diff': 2793}
[2026-03-24 10:13:35] INFO upgrade_health_checker.py:523 Got expected replica count from CDB_OB_LS_LOCATIONS: 17 tenants, details: {1024: 3, 1046: 3, 1030: 3, 1032: 3, 1052: 3, 1002: 3, 1036: 3, 1042: 3, 1008: 3, 1048: 3, 1010: 3, 1012: 3, 1014: 3, 1016: 3, 1020: 3, 1034: 3, 1022: 3}
[2026-03-24 10:13:35] INFO upgrade_health_checker.py:775 Zone count: 3
[2026-03-24 10:13:35] INFO upgrade_health_checker.py:823 Checking vector index loading status (attempt 3/1050)
[2026-03-24 10:13:35] INFO upgrade_health_checker.py:824   Tenant 1032: 5/5 tablets loaded (100.0%), expected 3 replicas
  Tenant 1036: 0/1 tablets loaded (0.0%), expected 3 replicas
    Top 1 pending tablets:
{'max_incr': 2793, 'history_rounds': 3, 'min_incr': 0, 'reason': 'incr_cnt_inconsistent', 'tablet_id': 1152921504606847123, 'data_table_id': 500107, 'diff': 2793}
[2026-03-24 10:13:45] INFO upgrade_health_checker.py:523 Got expected replica count from CDB_OB_LS_LOCATIONS: 17 tenants, details: {1024: 3, 1046: 3, 1030: 3, 1032: 3, 1052: 3, 1002: 3, 1036: 3, 1042: 3, 1008: 3, 1048: 3, 1010: 3, 1012: 3, 1014: 3, 1016: 3, 1020: 3, 1034: 3, 1022: 3}
[2026-03-24 10:13:45] INFO upgrade_health_checker.py:775 Zone count: 3
[2026-03-24 10:13:45] INFO upgrade_health_checker.py:823 Checking vector index loading status (attempt 4/1050)
[2026-03-24 10:13:45] INFO upgrade_health_checker.py:824   Tenant 1032: 5/5 tablets loaded (100.0%), expected 3 replicas
  Tenant 1036: 0/1 tablets loaded (0.0%), expected 3 replicas
    Top 1 pending tablets:
{'max_incr': 2793, 'history_rounds': 3, 'min_incr': 0, 'reason': 'incr_cnt_inconsistent', 'tablet_id': 1152921504606847123, 'data_table_id': 500107, 'diff': 2793}
[2026-03-24 10:13:55] INFO upgrade_health_checker.py:523 Got expected replica count from CDB_OB_LS_LOCATIONS: 17 tenants, details: {1024: 3, 1046: 3, 1030: 3, 1032: 3, 1052: 3, 1002: 3, 1036: 3, 1042: 3,

```

## 问题原因

升级过程中的一个步骤会检查集群中是否存在向量索引。如果存在，则会对其进行校验。在本场景中，集群存在向量索引，但该向量索引的增量创建计数（`incr_crt`）无法同步到 Follower 节点，导致校验无法通过。

## 关键信息

查询系统视图 `oceanbase.__all_virtual_vector_index_info`，可以观察到不同节点上 `incr_crt` 字段的数值不一致。

```sql
SELECT * FROM oceanbase.__all_virtual_vector_index_info WHERE data_table_id = 500107;

```

查询结果显示，不同节点的 `incr_crt` 计数存在差异，这是导致升级检查失败的直接原因。

重启相关节点后，`incr_crt` 计数会被清零，视图查询结果将显示一致的数值。

## 问题的风险及影响

集群升级流程会因此问题而卡住，无法继续进行。

## 适用版本

OceanBase 数据库版本 V4.3.5.2（oceanbase-4.3.5.2-102000162025051417） 版本。

## 解决方法

可以通过以下几种方式解决此问题：

1. **重启节点**：重启 `incr_crt` 计数不一致的节点，以刷新计数。
 2. **重建索引**：对问题向量索引执行 `REBUILD` 操作，以刷新计数。
 3. **删除表**：删除包含问题向量索引的表。
 4. **升级至高版本**：升级到已修复此问题的版本。目前已知在 4.3.5 BP5 hotfix8 版本中已解决该问题。

上一篇

[P99延迟偏大](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000006802571) ![有帮助](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) 咨询
