Skip to content

rfc(indexer): Do not fail query when writing to cache#57

Open
alanshaw wants to merge 2 commits intomainfrom
rfc/indexer-do-not-fail-query-when-write-to-cache
Open

rfc(indexer): Do not fail query when writing to cache#57
alanshaw wants to merge 2 commits intomainfrom
rfc/indexer-do-not-fail-query-when-write-to-cache

Conversation

@alanshaw
Copy link
Member

@alanshaw alanshaw commented Jun 13, 2025

Proposes returning query data to the client even if cache write operation fails.

📚 Preview

@alanshaw alanshaw changed the title rfc(indexer): do not fail query when writing to cache rfc(indexer): Do not fail query when writing to cache Jun 13, 2025
@alanshaw alanshaw requested a review from a team June 13, 2025 13:01
Copy link
Member

@volmedo volmedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with this. Given that the indexer is essentially a cache in front of IPNI there is no point in it failing the request completely if the data has already been fetched.

For now, I think the easiest way to avoid the issue going unnoticed is reporting the error to Sentry.

Copy link
Member

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just get it to sentry

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.

3 participants