Skip to content

Conversation

swankjesse
Copy link
Collaborator

I'd previously attempted to recover when writes fail, but I missed this case.

I'd previously attempted to recover when writes fail,
but I missed this case.
val fileId = database.filesQueries.get(sha256.hex()).executeAsOneOrNull()?.id ?: return
createPinIfNotExists(applicationName, fileId)
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Was unused

@@ -35,7 +35,7 @@ class ZiplineCacheFaultsTest {
@Test
fun openMissHitClose(): Unit = runBlocking {
// How many writes are attempted in this test in the happy path. Determined experimentally!
val noFailuresWriteCount = 21
val noFailuresWriteCount = 23
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Experimentally!

@swankjesse swankjesse merged commit 4f850ef into trunk Sep 9, 2025
15 of 16 checks passed
@swankjesse swankjesse deleted the jwilson.0908.recover branch September 9, 2025 20:18
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