@Greptime:GreptimeDB v1.3.1:写入可靠性、安全性及查询修复,完整博客:https://greptime.com/blogs/2026-11-16-grept…

X AI KOLs Timeline 工具

摘要

GreptimeDB v1.3.1 是一个维护版本,修复了数据丢失、WAL 同步、安全性、查询正确性和性能方面的问题,同时更新了 Dashboard,在 Traces 视图中新增了服务地图。

GreptimeDB v1.3.1:写入可靠性、安全性与查询修复,完整博客:https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release…
查看原文
查看缓存全文

缓存时间: 2026/11/20 03:53

GreptimeDB v1.3.1:写入可靠性、安全性和查询修复,完整博客:https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release…


GreptimeDB v1.3.1:写入可靠性、安全性和查询修复

来源:https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release 我们于 2026 年 11 月 13 日发布了 GreptimeDB v1.3.1。这是 v1.3 的维护版本,主要修复自 v1.3.0 以来发现的缺陷、性能问题和安全问题。

我们建议所有 v1.3.0 用户升级。v1.3.0 可以原地升级至 v1.3.1;有几种情况需要注意,详见下方的升级说明 (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#upgrade-notes)。

  • 修复了重新分区回滚或 datanode 重启时,部分已写入数据可能丢失的问题。
  • 修复了默认配置下本地 WAL 定期同步未实际落盘的问题。

权限和凭据 (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#permissions-and-credentials)

  • 通过 HTTP、MySQL 或 PostgreSQL 切换数据库时,会检查用户是否有权访问该数据库。
  • 管理函数需要ADMIN权限,包括通过SELECT调用时。
  • 诊断配置输出、启动日志和表选项不再显示密码或其他凭据。
  • 升级了 PostgreSQL 协议依赖,以修复一个 TLS 安全问题。

查询结果 (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#query-results)

  • 修复了分区列变更后,MySQL 和 PostgreSQL 预处理语句返回错误结果的问题,包括预处理的INSERT \.\.\. SELECT写入错误行的问题。
  • 修复了多种 PromQL 结果错误,例如对同一时间戳的重复样本进行计算时出现的错误。
  • 引入了多项上游 DataFusion 修复,解决连接结果错误和查询卡住的问题。

性能 (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#performance)

  • 修复了长时间范围 PromQL 查询读取变慢的问题。
  • 修复了某些情况下压缩无法完成的问题。
  • 分布式连接查询读取的数据量更少,因此对trace\_id等字段进行连接时速度更快。

Dashboard (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#dashboard)

Dashboard 已更新至 v0.14.6。Signals Explore 中的 Traces 视图新增了基于语义层 (https://docs.greptime.com/user-guide/semantic-layer/overview) 构建的服务地图,可显示服务之间的实时调用。

Dashboard Signals Explore 中的服务地图

你可以在我们的在线演示 live.greptime.cloud (https://live.greptime.cloud/) 中试用,该演示运行 v1.3.1,并通过 OpenTelemetry Demo 写入指标、日志和链路追踪数据。

升级说明 (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#upgrade-notes)

v1.3.0 可以原地升级至 v1.3.1。请先备份数据和配置。请留意以下情况:

  • 未指定数据库进行连接且无权访问默认public数据库的 MySQL 应用,必须先通过USE切换到有权访问的数据库,再运行查询。
  • PostgreSQL 应用必须连接到已存在且有权访问的数据库,否则连接将被拒绝。
  • 通过 Prometheus Remote Read 读取的表需要使用字符串类型的标签列,否则读取会返回错误。标签匹配现在遵循 Prometheus 语义 (正则表达式匹配整个字符串,缺失或 NULL 标签按空字符串匹配),因此现有查询可能返回不同的结果。
  • 如果你为表手动设置了稀疏主键编码 (memtable\.partition\_tree\.primary\_key\_encoding = 'sparse'),请在升级前参照 #10020 (https://github.com/GreptimeTeam/greptimedb/pull/10020) 检查其表结构。

其他兼容性说明请参阅发布说明 (https://docs.greptime.com/release-notes/release-1-3-1),包括分布式部署和日志摄取方面的说明。

获取 v1.3.1 (https://greptime.com/blogs/2026-11-16-greptimedb-v1-3-1-release#get-v1-3-1)

对于单机 Docker 部署,镜像为greptime/greptimedb:v1\.3\.1。从 v1.3.0 升级时,请停止并删除旧容器,然后使用现有启动选项和数据目录启动新镜像。在默认配置下:

shell

docker run -p 127.0.0.1:4000-4003:4000-4003 \ -v "$(pwd)/greptimedb_data:/greptimedb_data" \ --name greptime --rm \ greptime/greptimedb:v1.3.1 standalone start \ --http-addr 0.0.0.0:4000 \ --grpc-bind-addr 0.0.0.0:4001 \ --mysql-addr 0.0.0.0:4002 \ --postgres-addr 0.0.0.0:4003

其他部署方式请参阅安装文档 (https://docs.greptime.com/getting-started/installation/overview)。

安装包和完整变更日志可在 GitHub Release (https://github.com/GreptimeTeam/greptimedb/releases/tag/v1.3.1) 中获取。如果遇到问题,请在 GitHub Issues (https://github.com/GreptimeTeam/greptimedb/issues) 上反馈。

感谢参与本次发布的 19 位贡献者,其中 6 位是首次贡献。请查看完整贡献者名单 (https://github.com/GreptimeTeam/greptimedb/releases/tag/v1.3.1#all-contributors)。

Greptime (@Greptime): GreptimeDB v1.3.1 已发布。这是一个补丁版本,值得升级:

  • 持久性:修复重新分区回滚或 datanode 重启期间可能发生的数据丢失问题,并使本地 WAL 定期同步(默认 sync_write = false)恢复执行 fsync
  • 授权:通过 HTTP 选择数据库时,

相似文章

@Greptime: GreptimeDB v1.1.2 已发布 — 这是一个值得升级的 v1.1 补丁。主要修复:定时 Flows 现在绑定 now()/current_timest…

X AI KOLs Following

GreptimeDB v1.1.2 是一个补丁版本,修复了定时 Flows 中 now() 的绑定问题,以确保 EVAL INTERVAL 窗口的确定性。此外还修复了以下问题:Kafka SASL 密码在调试输出中的屏蔽、GC 索引文件列表、parquet 元数据缓存大小、Prometheus 标签发现扫描以及 PromQL 时间二元聚合。建议用户升级。