is alive bug solved

This commit is contained in:
lucio 2024-11-13 11:34:44 +01:00
parent 8dd4df456b
commit 1bcd502f25
3 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,7 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v2.0.0] ## [v2.0.0-SNAPSHOT]
- ceph as default storage - ceph as default storage
- vre folders can define specific bucket as backend - vre folders can define specific bucket as backend

View File

@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.gcube.data.access</groupId> <groupId>org.gcube.data.access</groupId>
<artifactId>storagehub</artifactId> <artifactId>storagehub</artifactId>
<version>2.0.0</version> <version>2.0.0-SNAPSHOT</version>
<name>storagehub</name> <name>storagehub</name>
<scm> <scm>
<connection> <connection>

View File

@ -21,7 +21,6 @@ import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration; import com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration;
import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3ClientBuilder; import com.amazonaws.services.s3.AmazonS3ClientBuilder;
import com.amazonaws.services.s3.model.Bucket;
import com.amazonaws.services.s3.model.ObjectMetadata; import com.amazonaws.services.s3.model.ObjectMetadata;
import com.amazonaws.services.s3.transfer.TransferManager; import com.amazonaws.services.s3.transfer.TransferManager;
import com.amazonaws.services.s3.transfer.TransferManagerBuilder; import com.amazonaws.services.s3.transfer.TransferManagerBuilder;
@ -83,7 +82,7 @@ public class S3Backend extends StorageBackend{
boolean toReturn = true; boolean toReturn = true;
try { try {
client.doesBucketExistV2(bucketName); toReturn = client.doesBucketExistV2(bucketName);
}catch (Exception e) { }catch (Exception e) {
log.error("error checking aliveness",e); log.error("error checking aliveness",e);
toReturn = false; toReturn = false;