You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Divij Vaidya (Jira)" <ji...@apache.org> on 2024/12/05 15:07:00 UTC

[jira] [Created] (KAFKA-18166) Indefinite timeout when publishing events to RLMM (RemoteLogMetadataManager)

Divij Vaidya created KAFKA-18166:
------------------------------------

             Summary: Indefinite timeout when publishing events to RLMM (RemoteLogMetadataManager)
                 Key: KAFKA-18166
                 URL: https://issues.apache.org/jira/browse/KAFKA-18166
             Project: Kafka
          Issue Type: Improvement
          Components: Tiered-Storage
    Affects Versions: 4.0.0
            Reporter: Divij Vaidya


RemoteLogManager has multiple instances where we are doing a {{CompletableFuture.get()}} without setting its timeout parameter. Ideally, we do not want indefinite wait in the code base which depends on external components such as RemoteLogMetadataManager. For example, the code would "hang" if the underlying RLMM is not available or very slow for some reason.

The objective of this task is to set a reasonable timeout (my suggestion is 1 sec) on these futures. You will also need to handle the ensuing TimeoutException accordingly.

[https://github.com/apache/kafka/blob/50b6953661a46d7d57a8aca5c875e91a19166253/core/src/main/java/kafka/log/remote/RemoteLogManager.java#L572] 



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