# Mito 引擎代码清理和重分区回滚修复｜Greptime 双周精选 - No. 81

Source: https://greptime.cn/blogs/2026-04-19-greptimedb-biweekly-report

## 内容概述

*开发周期：2026-04-06 - 2026-04-19*

近期主要更新：

- 数据导入的 `import-v2` 命令支持新的 pipeline 批量加载
- 分区范围缓存降低时序查询的扫描延迟
- Repartition 操作在回滚失败时不会破坏表状态
- Go / .NET / Rust / Erlang Ingester SDK 发布新版本

建议旧版本用户升级到最新版本。

## 贡献者

过去两周，共有 **16 位贡献者**合并了 **49 个 PR**。 其中 **3 位社区贡献者**贡献了 **3 个 PR**。
欢迎新贡献者：**[@yxrxy](https://github.com/yxrxy)**！

本期社区贡献者：

- **[@lyang24](https://github.com/lyang24)** *[db#7919](https://github.com/GreptimeTeam/greptimedb/pull/7919)*
- **[@yxrxy](https://github.com/yxrxy)** *[db#7953](https://github.com/GreptimeTeam/greptimedb/pull/7953)*
- **[@cuiweixie](https://github.com/cuiweixie)** *[db#7867](https://github.com/GreptimeTeam/greptimedb/pull/7867)*
## PR 亮点

### [db#7925](https://github.com/GreptimeTeam/greptimedb/pull/7925) refactor(mito2): remove dead scan code

Mito 引擎清理了主键格式操作中未使用的扫描代码。查询功能不受影响。

### [db#7918](https://github.com/GreptimeTeam/greptimedb/pull/7918) fix(repartition): harden repartition rollback paths

Region 重分区失败时，现在会正确恢复元数据并释放资源。之前失败的重分区操作可能让系统处于不一致状态，留下孤立资源。

### [db#7967](https://github.com/GreptimeTeam/greptimedb/pull/7967) refactor: move group rollback ownership to parent repartition

重分区操作改为在父级处理回滚恢复，不再依赖子过程。元数据服务重启后恢复更可靠。即使子过程异常退出，失败的重分区操作也能恢复组元数据并清理已分配的 region。

### [db#7898](https://github.com/GreptimeTeam/greptimedb/pull/7898) feat(cli): implement import-v2 data import pipeline

CLI 新增 `import-v2` 命令，重新设计了数据导入架构。大数据集导入更稳定。

### [db#7873](https://github.com/GreptimeTeam/greptimedb/pull/7873) feat: use partition range cache in scan

分区范围缓存应用到了 `SeqScan` 和 `SeriesScan` 操作中。重复扫描相同分区的时序查询 I/O 开销更低。


## 其他更新

本期 gRPC Ingester SDK 有四项发布：

### Go Ingester [v0.7.2](https://github.com/GreptimeTeam/greptimedb-ingester-go/releases/tag/v0.7.2)

- 修复 bulk insert 写入 GreptimeDB v1.0 时因时区处理导致的 timestamp 类型不兼容问题
- 支持多 endpoint 配置

### .NET Ingester [v0.2.0](https://github.com/GreptimeTeam/greptimedb-ingester-dotnet/releases/tag/v0.2.0)

- 与 Go SDK 对齐，新增多 endpoint 支持，可配置 `Random`（默认）或 `RoundRobin` 负载均衡策略
- 废弃 `datetime` 类型

### Rust Ingester [v0.17.0](https://crates.io/crates/greptimedb-ingester)

- 正式发布到 crates.io，可通过 `cargo add greptimedb-ingester` 直接引入

### Erlang Ingester [v0.2.5](https://github.com/GreptimeTeam/greptimedb-ingester-erl/releases/tag/v0.2.5)

- 新增 `f32` 类型编码支持
- 新增 `decimal128` 类型支持


## Good First Issue

### [Issue#7951](https://github.com/GreptimeTeam/greptimedb/issues/7951) Allow detailed index configuration in pipeline config

扩展 Pipeline 配置语法，支持更详细的索引配置选项。目前只支持 `fulltext` 和 `skipping` 等基础索引类型，需要增加更多配置项。

关键词：Pipeline, Configuration, Indexing

难度：Medium

### [Issue#7987](https://github.com/GreptimeTeam/greptimedb/issues/7987) feat: add flow_statistics system table and SHOW FLOW STATUS for flow runtime observability

创建名为 `flow_statistics` 的系统表，并添加 `SHOW FLOW STATUS` SQL 命令来显示 Flow 的运行时信息，如启动时间、运行时长、已处理数据量和最近的错误。

关键词：SQL, Observability

难度：Medium
