Skip to content

Commit 5e39f8b

Browse files
committed
Add comment explaining DiskS3::shutdown
1 parent 9d11d4d commit 5e39f8b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Disks/S3/DiskS3.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,10 @@ void DiskS3::setReadOnly(const String & path)
748748

749749
void DiskS3::shutdown()
750750
{
751+
/// This call stops any next retry attempts for ongoing S3 requests.
752+
/// If S3 request is failed and the method below is executed S3 client immediately returns the last failed S3 request outcome.
753+
/// If S3 is healthy nothing wrong will be happened and S3 requests will be processed in a regular way without errors.
754+
/// This should significantly speed up shutdown process if S3 is unhealthy.
751755
client->DisableRequestProcessing();
752756
}
753757

0 commit comments

Comments
 (0)