Skip to content

Commit

Permalink
Revert "S3 CRT Client (#598)" (#609)
Browse files Browse the repository at this point in the history
This reverts commit 6093173.
  • Loading branch information
bryanlb authored Jul 14, 2023
1 parent 6093173 commit 6728de8
Show file tree
Hide file tree
Showing 21 changed files with 185 additions and 793 deletions.
1 change: 0 additions & 1 deletion config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ s3Config:
s3Region: ${S3_REGION:-us-east-1}
s3EndPoint: ${S3_ENDPOINT:-http://localhost:9090}
s3Bucket: ${S3_BUCKET:-test-s3-bucket}
s3TargetThroughputGbps: ${S3_TARGET_THROUGHPUT_GBPS:-25}

tracingConfig:
zipkinEndpoint: ${ZIPKIN_TRACING_ENDPOINT:-http://localhost:9411/api/v2/spans}
Expand Down
5 changes: 0 additions & 5 deletions kaldb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -313,11 +313,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>software.amazon.awssdk.crt</groupId>
<artifactId>aws-crt</artifactId>
<version>0.22.1</version>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
Expand Down
12 changes: 4 additions & 8 deletions kaldb/src/main/java/com/slack/kaldb/blobfs/s3/S3BlobFs.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
import software.amazon.awssdk.services.s3.model.S3Exception;
import software.amazon.awssdk.services.s3.model.S3Object;

/**
* @see S3CrtBlobFs
*/
@Deprecated
public class S3BlobFs extends BlobFs {
public static final String S3_SCHEME = "s3://";
private static final Logger LOG = LoggerFactory.getLogger(S3BlobFs.class);
Expand Down Expand Up @@ -230,7 +226,7 @@ private boolean copyFile(URI srcUri, URI dstUri) throws IOException {

@Override
public boolean mkdir(URI uri) throws IOException {
LOG.debug("mkdir {}", uri);
LOG.info("mkdir {}", uri);
try {
Preconditions.checkNotNull(uri, "uri is null");
String path = normalizeToDirectoryPrefix(uri);
Expand All @@ -253,7 +249,7 @@ public boolean mkdir(URI uri) throws IOException {

@Override
public boolean delete(URI segmentUri, boolean forceDelete) throws IOException {
LOG.debug("Deleting uri {} force {}", segmentUri, forceDelete);
LOG.info("Deleting uri {} force {}", segmentUri, forceDelete);
try {
if (isDirectory(segmentUri)) {
if (!forceDelete) {
Expand Down Expand Up @@ -316,7 +312,7 @@ public boolean doMove(URI srcUri, URI dstUri) throws IOException {

@Override
public boolean copy(URI srcUri, URI dstUri) throws IOException {
LOG.debug("Copying uri {} to uri {}", srcUri, dstUri);
LOG.info("Copying uri {} to uri {}", srcUri, dstUri);
Preconditions.checkState(exists(srcUri), "Source URI '%s' does not exist", srcUri);
if (srcUri.equals(dstUri)) {
return true;
Expand Down Expand Up @@ -415,7 +411,7 @@ public String[] listFiles(URI fileUri, boolean recursive) throws IOException {
continuationToken = listObjectsV2Response.nextContinuationToken();
}
String[] listedFiles = builder.build().toArray(new String[0]);
LOG.debug(
LOG.info(
"Listed {} files from URI: {}, is recursive: {}", listedFiles.length, fileUri, recursive);
return listedFiles;
} catch (Throwable t) {
Expand Down
Loading

0 comments on commit 6728de8

Please sign in to comment.