Skip to content

Commit 997ad7f

Browse files
committed
remove runWithPermits at bucket check
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
1 parent 387fb8c commit 997ad7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/nf-amazon/src/main/nextflow/cloud/aws/nio/S3Client.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,12 @@ public S3Client(AwsClientFactory factory, Properties props, boolean global, Stri
109109
private void checkAndFallbackToAnonymousIfNeeded(String bucketName, S3SyncClientConfiguration clientConfig) {
110110
try {
111111
// Try to access the bucket with current credentials
112-
runWithPermit(() -> client.headBucket(HeadBucketRequest.builder().bucket(bucketName).build()));
112+
client.headBucket(HeadBucketRequest.builder().bucket(bucketName).build());
113113
log.trace("Bucket {} is accessible with current credentials", bucketName);
114114
} catch (S3Exception e) {
115115
// Check if it's an access denied error (403) or forbidden
116116
if (e.statusCode() == 403 || e.statusCode() == 401) {
117117
log.debug("Access denied to bucket {} with current credentials (status: {}), checking if bucket is public", bucketName, e.statusCode());
118-
119118
checkAndManagePublicBucket(bucketName, clientConfig);
120119
} else {
121120
// Other errors (like bucket doesn't exist) should be handled by caller

0 commit comments

Comments
 (0)