Skip to content

Handle a just deleted db in auto-purge plugin#5919

Merged
nickva merged 1 commit intomainfrom
handle-database-deletion-in-auto-purge-ttl
Mar 11, 2026
Merged

Handle a just deleted db in auto-purge plugin#5919
nickva merged 1 commit intomainfrom
handle-database-deletion-in-auto-purge-ttl

Conversation

@nickva
Copy link
Copy Markdown
Contributor

@nickva nickva commented Mar 11, 2026

Noticed this in production logs:

database_does_not_exist at mem3_shards:load_from_db/1(line:463)
 <= mem3_shards:load_opts_from_disk/1(line:436)
 <= mem3:props/1(line:122)
 <= fabric_auto_purge:get/1(line:22)
 <= couch_auto_purge_plugin:ttl/2(line:195)
 <= couch_auto_purge_plugin:db/2(line:66)

The plugin crashes and resumes from the checkpoint and makes further progress, but since this is an expected case it might be a bit nicer to anticipate and handle it cleaner.

Noticed this in production logs:

```
database_does_not_exist at mem3_shards:load_from_db/1(line:463)
 <= mem3_shards:load_opts_from_disk/1(line:436)
 <= mem3:props/1(line:122)
 <= fabric_auto_purge:get/1(line:22)
 <= couch_auto_purge_plugin:ttl/2(line:195)
 <= couch_auto_purge_plugin:db/2(line:66)
```

The plugin crashes and resumes from the checkpoint and makes further progress,
but since this is an expected case it might be a bit nicer to anticipate and
handle it cleaner.
@nickva nickva merged commit f519c1b into main Mar 11, 2026
60 checks passed
@nickva nickva deleted the handle-database-deletion-in-auto-purge-ttl branch March 11, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants