From f4177bebb50f8e09ef4d68262e7d335c6ab237f9 Mon Sep 17 00:00:00 2001 From: Thomas Newton Date: Fri, 13 Dec 2024 16:32:29 +0000 Subject: [PATCH] Adjust comment and increase SAS expiry time --- cpp/src/arrow/filesystem/azurefs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/arrow/filesystem/azurefs.cc b/cpp/src/arrow/filesystem/azurefs.cc index 0fd49e311cf8d..b3d7304fee263 100644 --- a/cpp/src/arrow/filesystem/azurefs.cc +++ b/cpp/src/arrow/filesystem/azurefs.cc @@ -441,7 +441,7 @@ Result AzureOptions::GenerateSASToken( if (credential_kind_ == CredentialKind::kStorageSharedKey) { return builder->GenerateSasToken(*storage_shared_key_credential_); } else { - // GH-39344: This part isn't tested. This may not work. + // GH-39344: This part isn't tested. try { auto delegation_key_response = client->GetUserDelegationKey(builder->ExpiresOn); return builder->GenerateSasToken(delegation_key_response.Value, account_name); @@ -3193,7 +3193,7 @@ class AzureFileSystem::Impl { sas_token = ""; } else { Storage::Sas::BlobSasBuilder builder; - std::chrono::seconds available_period(60); + std::chrono::seconds available_period(600); builder.ExpiresOn = std::chrono::system_clock::now() + available_period; builder.BlobContainerName = src.container; builder.BlobName = src.path;