Skip to content

Handle errors better in index cleanup - #6081

Merged
nickva merged 1 commit into
mainfrom
more-robust-cleaning
Jul 29, 2026
Merged

Handle errors better in index cleanup#6081
nickva merged 1 commit into
mainfrom
more-robust-cleaning

Conversation

@nickva

@nickva nickva commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Previously, if a node was down when cleaning up any indexes we'd get an exception like:

{erpc,noconnection} : node@host
     [<<"erpc:receive_response/3 L1442">>,<<"dreyfus_fabric_cleanup:recv/3 L54">>
     [<<"erpc:receive_response/3 L1442">>,<<"dreyfus_fabric_cleanup:recv/3 L54">>,...

We can handle that better by anticipating a few more error conditions: noconnection, exits, throws, timeouts.

To avoid copying the mess in three place let's just use a single helper function in fabric.

Add tests for all the silly bits.

Previously, if a node was down when cleaning up any indexes we'd get an
exception like:

```
{erpc,noconnection} : node@host
     [<<"erpc:receive_response/3 L1442">>,<<"dreyfus_fabric_cleanup:recv/3 L54">>
     [<<"erpc:receive_response/3 L1442">>,<<"dreyfus_fabric_cleanup:recv/3 L54">>,...
```

We can handle that better by anticipating a few more error conditions:
noconnection, exits, throws, timeouts.

To avoid copying the mess in three place let's just use a single helper
function in fabric.

Add tests for all the silly bits.
@nickva
nickva force-pushed the more-robust-cleaning branch from 1b838dd to 7bbd2a5 Compare July 29, 2026 13:52
@nickva
nickva merged commit 0eb3ec6 into main Jul 29, 2026
63 checks passed
@nickva
nickva deleted the more-robust-cleaning branch July 29, 2026 15:19
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