-
Notifications
You must be signed in to change notification settings - Fork 275
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
Blobs get TTL upload should be uploaded to Cloud. #1165
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1165 +/- ##
============================================
- Coverage 70.03% 69.98% -0.05%
+ Complexity 5352 5348 -4
============================================
Files 426 426
Lines 32650 32656 +6
Branches 4142 4144 +2
============================================
- Hits 22865 22855 -10
- Misses 8653 8662 +9
- Partials 1132 1139 +7
Continue to review full report at Codecov.
|
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.
I still need to do a more detailed review. My main suggestion so far is to rename the MockXXX classes to InMemoryXXX. Optional: consider making some of them static inner classes of a container class.
The test cases look very thorough.
ambry-cloud/src/test/java/com.github.ambry.cloud/CloudBlobStoreTest.java
Show resolved
Hide resolved
Comment addressed. Let's try to merge it today. |
ambry-cloud/src/main/java/com.github.ambry.cloud/CloudBlobStore.java
Outdated
Show resolved
Hide resolved
ambry-cloud/src/test/java/com.github.ambry.cloud/CloudBlobStoreTest.java
Show resolved
Hide resolved
ambry-cloud/src/test/java/com.github.ambry.cloud/CloudBlobStoreTest.java
Show resolved
Hide resolved
ambry-cloud/src/test/java/com.github.ambry.cloud/CloudBlobStoreTest.java
Outdated
Show resolved
Hide resolved
ambry-replication/src/test/java/com.github.ambry.replication/InMemoryStore.java
Outdated
Show resolved
Hide resolved
ambry-replication/src/test/java/com.github.ambry.replication/InMemoryStore.java
Show resolved
Hide resolved
ambry-replication/src/test/java/com.github.ambry.replication/MockHost.java
Show resolved
Hide resolved
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.
Overall looks very good. Will approve after addressing a few remaining comments.
Fix blobs with ttlUpdate upload to cloud bug. Refactored test Classes in ReplicationTest for their use in other modules. Fix metric name typo in HelixVcrClusterMetrics.
Update expiration time is reflaced in TtlUpdate messageInfo. Revert CloudBlobStore#shouldUpload(). Add ttlUpdate() to endToEndCloudBackupTest.
Fix blobs with ttlUpdate upload to cloud bug.
Refactored test Classes in ReplicationTest for their use in other modules.
Fix metric name typo in HelixVcrClusterMetrics.