---
title: 备份时产生日志告警 backup file appender is not closed 的原因和解决方法-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于 备份时产生日志告警 backup file appender is not closed 的原因和解决方法相关的常见问题和使用技巧，帮助您快速解决 备份时产生日志告警 backup file appender is not closed 的原因和解决方法的难题。
---
切换语言

- 简体中文
- English

划线反馈

# 备份时产生日志告警 backup file appender is not closed 的原因和解决方法

更新时间：2026-05-11 09:51

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

## 问题现象

备份时产生日志告警 `backup file appender is not closed`，但是备份任务是成功完成的。

## 关键信息

**关键日志：** backup file appender is not closed。

**完整日志如下：**

```shell
[2024-12-07 21:38:56.395431] ERROR [STORAGE] ~ObBackupFileAppender (ob_partition_base_data_backup.cpp:1357) [115884][0][xxxxx-xxxxx-xxxxx-xxxxx] [lt=101] [dc=0] backup file appender is not closed(backup_arg_=0x7ef57a1e8230) BACKTRACE:0xf51231f 0x50e752f 0x5128344 0x50e361f 0x51281b8 0xa6efbe7 0xa5c2493 0xa5c2376 0xa5d2129 0xa042049 0xa26c3be 0xa058497 0xa0584fa 0xa7b0a21 0xa66287e 0xa6628d8 0xa056d80 0xa0f9c89 0x67f65f6 0x5116f92 0x65b657e 0xf3f17f3 0xf3f164f 0xf6901df

```

在此日志打印后，会有兜底 close 日志。

```shell
[2024-12-07 21:38:56.406659] INFO [STORAGE] ob_partition_base_data_backup.cpp:2035 [115884][0][xxxxx-xxxxx-xxxxx-xxxxx] [lt=11] [dc=0] finish close backup file appender(ret=0, tmp_ret=0)

```

## 问题原因

`backup file appender` 在 `open` 和 `close` 的地方不对称，备份过程中间遇到了 `OSS error` 错误 `-9003`（此错误可重试成功）导致 `close` 的任务未被调度，从而导致上层漏调度 `close`，产生告警。但实际上最后会被兜底 `close`，即此 ERROR 日志表达为上层漏调用了 `close`，最后兜底完成 `close`。所以不会带来实质性的影响，也不会有资源泄漏。

## 问题的风险及影响

OCP 显示严重级别告警，但不会有其他任何影响

## 影响租户

影响 OceanBase 数据库中的 SYS 租户和 Oracle 租户以及 MySQL 租户。

## 适用版本

OceanBase 数据库 V3.x 版本。

## 解决方法及规避方式

- 解决方法：

  可自动恢复，无需解决。
 - 规避方式：

  OCP 屏蔽此告警。

Previous

[OceanBase 数据库 V4.2.1 版本因为备份卡住导致合并卡住报错 Too Many sstables, cannot add another sstable any 的原因和解决方法](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000001939897)

Next

[数据备份报错 -4016 的原因和解决方法](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000001940022) ![有帮助](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) 咨询热线
