Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for journalWriteFailsDuringEditorCommit (0.19 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache/DiskLruCacheTest.kt

      }
    
      /**
       * We had a bug where the cache was left in an inconsistent state after a journal write failed.
       * https://github.com/square/okhttp/issues/1211
       */
      @Test
      fun journalWriteFailsDuringEditorCommit() {
        set("a", "a", "a")
        set("b", "b", "b")
    
        // Create an entry that fails to write to the journal during commit.
        val editor = cache.edit("c")!!
        editor.setString(0, "c")
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 59.4K bytes
    - Viewed (0)
Back to top