Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14470 Move log layer to storage module
  3. KAFKA-14490

Consider using UncheckedIOException instead of IOException in the log layer

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      IOException is a checked exception, which makes it difficult to use with lambdas. We should consider using UncheckdIOException instead.

      I'll add notes below with code that could be simplified if we did this:

      1. The private constructor of LazyIndex could take a factory method instead of all parameters and IndexType (like the Scala code used to). This would avoid some repetition and some unsafe casts.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ijuma Ismael Juma
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: