[
https://issues.apache.org/jira/browse/KAFKA-17422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17876697#comment-17876697
]
Arpit Goyal edited comment on KAFKA-17422 at 8/26/24 12:13 PM:
---------------------------------------------------------------
[~showuon] It is happening because we had set 5 sec as the waiting time to
complete the copy log segment process. I am thinking of reducing it to 2 sec as
the expiration thread limit is 1 sec.
doAnswer(ans -> {
// unblock the expiration thread
copySegmentDataLatch.countDown();
// introduce a delay in copying segment data
copyLogSegmentLatch.await(5000, TimeUnit.MILLISECONDS);
return Optional.empty();
}).when(remoteStorageManager).copyLogSegmentData(any(RemoteLogSegmentMetadata.class),
any(LogSegmentData.class));
{code}
was (Author: JIRAUSER301926):
[~showuon] It is happening because we had set 5 sec as the waiting time to
complete the copy log segment process. I am reducing it to 2 sec. Any thoughts ?
doAnswer(ans -> {
// unblock the expiration thread
copySegmentDataLatch.countDown();
// introduce a delay in copying segment data
copyLogSegmentLatch.await(5000, TimeUnit.MILLISECONDS);
return Optional.empty();
}).when(remoteStorageManager).copyLogSegmentData(any(RemoteLogSegmentMetadata.class),
any(LogSegmentData.class));
{code}
> Improve the test time for testDeletionSkippedForSegmentsBeingCopied
> -------------------------------------------------------------------
>
> Key: KAFKA-17422
> URL: https://issues.apache.org/jira/browse/KAFKA-17422
> Project: Kafka
> Issue Type: Test
> Reporter: Luke Chen
> Assignee: Arpit Goyal
> Priority: Major
>
> Currently, it takes more than 5 seconds to run
> log.remote.RemoteLogManagerTest.testDeletionSkippedForSegmentsBeingCopied in
> my local env. It is too long for running an unit test.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)