Add MSQ Durable Storage Connector for Google Cloud Storage and change current Google Cloud Storage client library#15398
Conversation
…ath call removal in deleteRecursively
| // Continuation token is an index in the "objects" list. | ||
| final String continuationToken = getPageToken(); | ||
| final int startIndex = continuationToken == null ? 0 : Integer.parseInt(continuationToken); | ||
| final int startIndex = pageToken == null ? 0 : Integer.parseInt(pageToken); |
Check notice
Code scanning / CodeQL
Missing catch of NumberFormatException
cryptoe
left a comment
There was a problem hiding this comment.
Changes overall LGTM. Minor comments.
| </dependency> | ||
|
|
||
| <dependency> | ||
| <groupId>com.google.apis</groupId> |
There was a problem hiding this comment.
We might want to update :
druid/integration-tests-ex/cases/pom.xml
Lines 154 to 164 in 8812495
| // list with prefix can return directories, but they should always end with `/`, ignore them. | ||
| // also skips empty objects. | ||
| if (!next.getName().endsWith("/") && next.getSize().signum() > 0) { | ||
| if (!next.getName().endsWith("/") && Long.signum(next.getSize()) > 0) { |
There was a problem hiding this comment.
Nit: Why would size be negative ever ?
There was a problem hiding this comment.
This is more a check meant for != 0
| import java.io.OutputStream; | ||
| import java.util.Iterator; | ||
|
|
||
| public class GoogleStorageConnector extends ChunkingStorageConnector<GoogleInputRange> |
There was a problem hiding this comment.
I donot see test cases for this class.
There was a problem hiding this comment.
Added for this and some other classes as well.
cryptoe
left a comment
There was a problem hiding this comment.
Changes LGTM.
Will merge post a green build.
| && Objects.equals(bucket, that.bucket) | ||
| && Objects.equals(path, that.path); | ||
| } | ||
|
|
There was a problem hiding this comment.
nit: Lets add a toString to this as well.
|
Thanks @gargvishesh for working on this. |
Description
The PR addresses 2 things: