[ 
https://issues.apache.org/jira/browse/KAFKA-7739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722747#comment-17722747
 ] 

Jorge Esteban Quilcate Otoya commented on KAFKA-7739:
-----------------------------------------------------

Thanks all!

Another question regarding copy/delete RSM operations: I couldn't found any 
expectation on idempotency for these operations.

`copyLogSegmentData` mentions something related:

> Invoker of this API should always send a unique id as part of \{@link 
> RemoteLogSegmentMetadata#remoteLogSegmentId()} even when it retries to invoke 
> this method for the same log segment data.

Though this only confirms that retries will contain the same id.

`deleteLogSegmentData` is more ambiguous:

> Deletion is considered as successful if this call returns successfully 
> without any errors.

but

> RemoteResourceNotFoundException if the requested resource is not found

So, if retried should it fail?

My guess is that both should be idempotent, but could be worth call out these 
expectations explicitly in the KIP/API.

> Kafka Tiered Storage
> --------------------
>
>                 Key: KAFKA-7739
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7739
>             Project: Kafka
>          Issue Type: New Feature
>          Components: core
>            Reporter: Harsha
>            Assignee: Satish Duggana
>            Priority: Major
>              Labels: needs-kip
>             Fix For: 3.6.0
>
>
> KIP: 
> [https://cwiki.apache.org/confluence/display/KAFKA/KIP-405%3A+Kafka+Tiered+Storage]



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

Reply via email to