Skip to content
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

Add GCS testcontainer + IT for Nessie-GC #8233

Merged
merged 2 commits into from Mar 20, 2024

Conversation

snazy
Copy link
Member

@snazy snazy commented Mar 20, 2024

No description provided.

@snazy snazy force-pushed the add-gcs-testing-container branch from e5d1de1 to 41fe82d Compare March 20, 2024 15:02
}
}

private boolean isS3(URI uri) {
private boolean canBulkAndPrefix(URI uri) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to supportsBulkAndPrefixOperations for clarity.

Comment on lines 89 to 102
for (Throwable c = notFoundCandidate.getCause(); ; ) {
if (GCS_STORAGE_EXCEPTION.equals(c.getClass().getName())
&& c.getMessage().startsWith(GCS_NOT_FOUND_START)) {
notFound = true;
break;
}

Throwable next = c.getCause();
if (c == c.getCause()) {
break;
}
c = next;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (Throwable c = notFoundCandidate.getCause(); ; ) {
if (GCS_STORAGE_EXCEPTION.equals(c.getClass().getName())
&& c.getMessage().startsWith(GCS_NOT_FOUND_START)) {
notFound = true;
break;
}
Throwable next = c.getCause();
if (c == c.getCause()) {
break;
}
c = next;
}
}
for (Throwable c = notFoundCandidate.getCause(); ; c = c.getCause()) {
if (GCS_STORAGE_EXCEPTION.equals(c.getClass().getName())
&& c.getMessage().startsWith(GCS_NOT_FOUND_START)) {
notFound = true;
break;
}
if (c == c.getCause()) {
break;
}
}

dimas-b
dimas-b previously approved these changes Mar 20, 2024
@snazy snazy merged commit 09ec579 into projectnessie:main Mar 20, 2024
16 checks passed
@snazy snazy deleted the add-gcs-testing-container branch March 20, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants