Skip to content

Fail fast when the posix id cache is not nats-js-kv - #989

Merged
aduffeck merged 1 commit into
opencloud-eu:mainfrom
aduffeck:posix-idcache-fail-fast
Nov 13, 2026
Merged

aduffeck merged 1 commit into
opencloud-eu:mainfrom
aduffeck:posix-idcache-fail-fast

Conversation

@aduffeck

Copy link
Copy Markdown
Member

The posix driver needs a nats-js-kv id cache. New already checks this, but NewDefault connects to NATS first. With a different store configured, e.g. redis-sentinel, that connection goes to a non-NATS server. Every attempt times out and the backoff keeps retrying for about 15 minutes before the driver fails with a generic "could not create nats key value store" error.

This moves the store check in front of the connection, so the driver fails immediately with:

the posix driver requires a nats-js-kv id cache, got 'redis-sentinel'

Includes a test for the early failure.

Related: opencloud-eu/opencloud#3264

Assisted by Claude Opus 5.5

@aduffeck
aduffeck requested a review from maki5 November 11, 2026 07:23
@aduffeck
aduffeck merged commit 7a8c748 into opencloud-eu:main Nov 13, 2026
19 checks passed
NickWalters pushed a commit to NickWalters/reva that referenced this pull request Nov 16, 2026
Brings the typed storage results (opencloud-eu#986), the stuck synchronous upload
fix (opencloud-eu#976), the main-queue replica fix (opencloud-eu#984), the posix id cache fail
fast (opencloud-eu#989) and release 2.52.2 into workpackages.

The typed results were mostly mechanical: the ocm received driver keeps
its service account client, nextcloud keeps its real TouchFile (now
returning a TouchFileResult), and the coordinator ignores the TouchFile
result and still reads the node back, because not every driver fills
it.

opencloud-eu#976 patched the legacy upload session store, which workpackages
removed. Its recovery of nodes left processing by an interrupted
synchronous upload moves into the pkg fork as
Decomposedfs.recoverInterruptedUpload. The coordinator stages sessions
in the same <upload dir>/<id> and <id>.info layout as the old store, so
nodes stuck by older versions still heal on the first download.
Aspects.DisableVersioning stays gone, SeparateBlobs comes along.

The sync specs now drive uploads through the coordinator. The two
blob-first specs follow with the next commit, which moves the blob-first
write to the coordinator path.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
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