-
Notifications
You must be signed in to change notification settings - Fork 276
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
Support rename dataset version #2935
Conversation
2f0bfe9
to
f2f89ce
Compare
26e0346
to
7f4fce5
Compare
ambry-api/src/main/java/com/github/ambry/account/DatasetVersionRecord.java
Show resolved
Hide resolved
ambry-account/src/main/java/com/github/ambry/account/mysql/DatasetDao.java
Outdated
Show resolved
Hide resolved
ambry-account/src/main/java/com/github/ambry/account/mysql/DatasetDao.java
Show resolved
Hide resolved
ambry-account/src/main/java/com/github/ambry/account/mysql/DatasetDao.java
Outdated
Show resolved
Hide resolved
38979b2
to
e5e32ee
Compare
ambry-frontend/src/main/java/com/github/ambry/frontend/GetBlobHandler.java
Outdated
Show resolved
Hide resolved
ambry-frontend/src/main/java/com/github/ambry/frontend/GetBlobHandler.java
Outdated
Show resolved
Hide resolved
ambry-frontend/src/main/java/com/github/ambry/frontend/DeleteBlobHandler.java
Outdated
Show resolved
Hide resolved
ambry-frontend/src/main/java/com/github/ambry/frontend/DeleteDatasetHandler.java
Outdated
Show resolved
Hide resolved
ambry-api/src/main/java/com/github/ambry/frontend/DatasetVersionPath.java
Outdated
Show resolved
Hide resolved
defa0a9
to
e676407
Compare
if (datasetVersionRecord.getRenameFrom() != null) { | ||
return datasetVersionRecord.getRenamedPath(accountName, containerName); | ||
} else { | ||
return datasetVersionRecord.getOriginalPath(accountName, containerName); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be put in one method in DatasetVersionRecord. Let's add this to dataset version recoard
public String getNamedBlobNamePath(String acountName, String containerName) {
if (this.renamedPath != null) {
return getRenamedPath(accountName, containerName);
} else {
return getOriginalPath(accountName, containerName);
}
}
In this way, the reconstructRequestPath
doesn't need this branches again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, updated.
* Support rename dataset version in AccountService * Update to use the colum map to original value * Adding more test and details * Adding handler logic * Address comments * Empty commit to try and rerun unit test * Empty commit to try and rerun unit test * Address comments * Code refactoring * Fix bug for delete * address comments * code refactor * Addressed comments --------- Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz>
* Support rename dataset version in AccountService * Update to use the colum map to original value * Adding more test and details * Adding handler logic * Address comments * Empty commit to try and rerun unit test * Empty commit to try and rerun unit test * Address comments * Code refactoring * Fix bug for delete * address comments * code refactor * Addressed comments --------- Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz>
* More Changes For LLD * [S3 API] Support for S3 AbortMultipartUpload API (#2940) * Support AbortMultipartUpload for S3 API --------- Co-authored-by: Shan Xu <shaxu@linkedin.com> * Support rename dataset version (#2935) * Support rename dataset version in AccountService * Update to use the colum map to original value * Adding more test and details * Adding handler logic * Address comments * Empty commit to try and rerun unit test * Empty commit to try and rerun unit test * Address comments * Code refactoring * Fix bug for delete * address comments * code refactor * Addressed comments --------- Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz> * add local store to logs (#2947) Co-authored-by: Navneet Sachan <nsachan@nsachan-mn1.linkedin.biz> * Updating LLD Flow For bootstrap * Updating FileStore Class * updating commit --------- Co-authored-by: Shan Xu <alyssaxu333@gmail.com> Co-authored-by: Shan Xu <shaxu@linkedin.com> Co-authored-by: sopguo <sopguo@linkedin.com> Co-authored-by: Sophie Guo <sopguo@sopguo-mn2.linkedin.biz> Co-authored-by: Navneet Sachan <nsachan@linkedin.com> Co-authored-by: Navneet Sachan <nsachan@nsachan-mn1.linkedin.biz>
No description provided.