Skip to content

chore: minato 0.18.9 - #54

Merged
Taure merged 1 commit into
mainfrom
chore/minato-0-18-9
Aug 6, 2026
Merged

chore: minato 0.18.9#54
Taure merged 1 commit into
mainfrom
chore/minato-0-18-9

Conversation

@Taure

@Taure Taure commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Locks minato at 0.18.9, up from 0.18.8.

The pool now asks whether a connection is still alive before handing it over (Taure/minato#39). Previously a database restart, a failover, or an administrator ending a backend cost one failed query per pooled connection:

before:  [{error,{socket,closed}}, {error,{socket,closed}}, {error,{socket,closed}}, ok, ok, ok]
after:   [ok, ok, ok, ok, ok, ok]

This is worth having in a job queue in particular. shigoto polls continuously and holds pooled connections for the life of the node, so it meets a bounced database sooner than most callers, and a spurious failure there turns into a job that looks like it failed rather than one that was never attempted.

The check is one syscall against a network round trip, measured at 330,665ns per pooled query versus 332,085ns without - inside the noise.

82 eunit and 110 ct green. fmt, xref and dialyzer clean.

The pool asks whether a connection is still alive before handing it over, so
a database restart no longer costs one failed query per pooled connection.
A job queue polls continuously, so it meets a bounced database sooner than
most callers do.
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown

🟠 Code Coverage — 57.4%

1015 of 1769 lines covered.


🟡 ELP Lint — 1 warning

1 diagnostic found. See job logs for details.

@Taure
Taure merged commit 4aa0216 into main Aug 6, 2026
17 checks passed
@Taure
Taure deleted the chore/minato-0-18-9 branch August 6, 2026 13:50
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.

1 participant