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

Signed-off-by: NalinGHub <nalinm01@gmail.com>
  • Loading branch information
NalinGHub committed Jan 29, 2022
1 parent f6cc618 commit e125ced
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 e125ced

Please sign in to comment.