-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Uploader Cloud Storage Interface #17042
Conversation
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
…erface' into 16973-uploader-cloud-storage-interface # Conflicts: # gradle/plugins/src/main/kotlin/com.hedera.gradle.jpms-modules.gradle.kts
…ion' into 16973-uploader-cloud-storage-interface
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
.../hedera-app/src/main/java/com/hedera/node/app/blocks/cloud/uploader/CloudBucketUploader.java
Outdated
Show resolved
Hide resolved
.../hedera-app/src/main/java/com/hedera/node/app/blocks/cloud/uploader/CloudBucketUploader.java
Outdated
Show resolved
Hide resolved
.../hedera-app/src/main/java/com/hedera/node/app/blocks/cloud/uploader/CloudBucketUploader.java
Outdated
Show resolved
Hide resolved
...ode/hedera-app/src/main/java/com/hedera/node/app/uploader/credentials/BucketCredentials.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Jendrik Johannes <[email protected]>
Signed-off-by: Petar Tonev <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
Signed-off-by: Thomas Moran <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed only changes in build.gradle.kts
and module-info.java
files.
private String calculateMD5Hash(Path filePath) throws IOException, NoSuchAlgorithmException { | ||
// Calculate MD5 hash | ||
byte[] fileBytes = Files.readAllBytes(filePath); // Read the file content as bytes | ||
MessageDigest md = MessageDigest.getInstance("MD5"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can have the MessageDigest
instance created once for a MinioBucketUploader
?
.build()); | ||
return null; | ||
}, | ||
maxRetryAttempts > 0 ? maxRetryAttempts : 3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have the default set to 3 in BlockStreamConfig
, do we need this conditional here?
BucketConfigurationManager bucketConfigurationManager, | ||
@CommonExecutor ExecutorService executor, | ||
ConfigProvider configProvider) { | ||
List<CompleteBucketConfig> completeBucketConfigs = bucketConfigurationManager.getCompleteBucketConfigs(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why provide a list of bucket configs if below we always call .getFirst()
?
Closing as will not be implementing now |
Description:
Related issue(s):
Fixes #16973