Skip to content

Commit

Permalink
modify registry.db s3 object initialization to work in S3 subdirector…
Browse files Browse the repository at this point in the history
…y with Java Feast Server (#2259)

Signed-off-by: NalinGHub <[email protected]>
  • Loading branch information
NalinGHub authored Jan 30, 2022
1 parent 895589a commit 2e4f3e5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public S3RegistryFile(AmazonS3 s3Client, String url) {
this.s3Client = s3Client;

String[] split = url.replace("s3://", "").split("/");
this.s3Object = this.s3Client.getObject(split[0], split[1]);
String objectPath = String.join("/", java.util.Arrays.copyOfRange(split, 1, split.length));
this.s3Object = this.s3Client.getObject(split[0], objectPath);
}

@Override
Expand Down

0 comments on commit 2e4f3e5

Please sign in to comment.