You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Alexandre Dupriez (Jira)" <ji...@apache.org> on 2023/02/02 20:48:00 UTC

[jira] [Updated] (KAFKA-14490) Consider using UncheckedIOException instead of IOException in the log layer

     [ https://issues.apache.org/jira/browse/KAFKA-14490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexandre Dupriez updated KAFKA-14490:
--------------------------------------
    Summary: Consider using UncheckedIOException instead of IOException in the log layer  (was: Consider using UncheckdIOException instead of IOException in the log layer)

> Consider using UncheckedIOException instead of IOException in the log layer
> ---------------------------------------------------------------------------
>
>                 Key: KAFKA-14490
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14490
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Ismael Juma
>            Priority: Major
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)