Skip to content

fix: [OCISDEV-848] create empty share files on first sync to stop 404…#613

Open
LarsJurgensen wants to merge 1 commit into
mainfrom
fix/OCISDEV-848-create-share-files-on-first-sync
Open

fix: [OCISDEV-848] create empty share files on first sync to stop 404…#613
LarsJurgensen wants to merge 1 commit into
mainfrom
fix/OCISDEV-848-create-share-files-on-first-sync

Conversation

@LarsJurgensen
Copy link
Copy Markdown

@LarsJurgensen LarsJurgensen commented May 29, 2026

The goal is to get rid of 404 warn logs, when a user has never received a share yet.
The proposed solution in the ticket was implementing a negative cache, keeping track of files that don't exist yet. An in memory cache causes a regression that when a share is created in node A, node B would not see this share until the cache TTL expires. A shared cache (either in NATS or file) is possible, but adds more complexity. I propose initializing empty received.json / created.json files earlier, getting rid of the file not found warnings.

@kw-security
Copy link
Copy Markdown

kw-security commented May 29, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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