Skip to content
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

Merged
merged 3 commits into from
May 6, 2019

Conversation

zzmao
Copy link
Contributor

@zzmao zzmao commented May 2, 2019

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.

@zzmao zzmao requested review from cgtz and lightningrob May 2, 2019 19:04
@codecov-io
Copy link

codecov-io commented May 2, 2019

Codecov Report

Merging #1165 into master will decrease coverage by 0.04%.
The diff coverage is 63.63%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ Complexity Δ
...va/com.github.ambry.replication/ReplicaThread.java 75.54% <0%> (ø) 63 <0> (ø) ⬇️
...com.github.ambry.cloud/HelixVcrClusterMetrics.java 100% <100%> (ø) 1 <0> (ø) ⬇️
...c/main/java/com.github.ambry.cloud/VcrMetrics.java 100% <100%> (ø) 2 <0> (ø) ⬇️
...in/java/com.github.ambry.cloud/CloudBlobStore.java 77.03% <62.5%> (+0.88%) 27 <0> (+3) ⬆️
...java/com.github.ambry.network/BlockingChannel.java 78.87% <0%> (-2.82%) 9% <0%> (-1%)
...java/com.github.ambry.store/CompactionManager.java 87.33% <0%> (-2.67%) 19% <0%> (ø)
...in/java/com.github.ambry.store/BlobStoreStats.java 71.75% <0%> (-1.65%) 104% <0%> (-1%)
.../main/java/com.github.ambry.store/ScanResults.java 81.25% <0%> (-1.57%) 16% <0%> (-1%)
...ain/java/com.github.ambry.router/PutOperation.java 90.86% <0%> (-0.72%) 107% <0%> (-2%)
...src/main/java/com.github.ambry.commons/BlobId.java 93.18% <0%> (-0.36%) 71% <0%> (-1%)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aaf8d92...03ced73. Read the comment docs.

Copy link
Contributor

@lightningrob lightningrob left a 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.

@zzmao
Copy link
Contributor Author

zzmao commented May 3, 2019

Comment addressed. Let's try to merge it today.

Copy link
Contributor

@lightningrob lightningrob left a 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.

zzmao added 3 commits May 6, 2019 11:29
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.
@lightningrob lightningrob merged commit 7f82832 into linkedin:master May 6, 2019
zzmao added a commit to zzmao/ambry that referenced this pull request May 6, 2019
Update expiration time is reflaced in TtlUpdate messageInfo.
Revert CloudBlobStore#shouldUpload().
Add ttlUpdate() to endToEndCloudBackupTest.
cgtz pushed a commit that referenced this pull request May 7, 2019
Update expiration time is reflaced in TtlUpdate messageInfo.
Revert CloudBlobStore#shouldUpload().
Add ttlUpdate() to endToEndCloudBackupTest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants