ambry
ambry copied to clipboard
Named blob update api implementation
Named blob update api implementation:
- Create a new blob with temp TTL
- Insert a row into MySQL named_blobs_v2 db with state='IN_PROGRESS'
- Update Blob TTL to infinity
- Insert a MySQL row with state to be 'READY'
Will schedule a repeating job (eg daily) to 1. try update Blob TTL for active 'IN_PROGRESS' rows and 2. clean up the outdated 'IN_PROGRESS' mysql rows.
Codecov Report
Base: 73.15% // Head: 73.15% // Increases project coverage by +0.00% :tada:
Coverage data is based on head (
10b0ac3) compared to base (7f3d471). Patch coverage: 81.81% of modified lines in pull request are covered.
Additional details and impacted files
@@ Coverage Diff @@
## master #2247 +/- ##
=========================================
Coverage 73.15% 73.15%
- Complexity 10483 10498 +15
=========================================
Files 755 755
Lines 57907 57941 +34
Branches 7111 7118 +7
=========================================
+ Hits 42359 42389 +30
- Misses 13212 13216 +4
Partials 2336 2336
| Impacted Files | Coverage Δ | |
|---|---|---|
| ...om/github/ambry/config/MySqlNamedBlobDbConfig.java | 100.00% <ø> (ø) |
|
| ...hub/ambry/frontend/FrontendRestRequestService.java | 97.24% <ø> (ø) |
|
| ...src/main/java/com/github/ambry/rest/RestUtils.java | 92.12% <60.00%> (-0.97%) |
:arrow_down: |
| ...github/ambry/frontend/AmbryIdConverterFactory.java | 95.00% <75.00%> (-1.11%) |
:arrow_down: |
| .../java/com/github/ambry/named/MySqlNamedBlobDb.java | 93.05% <90.00%> (-0.44%) |
:arrow_down: |
| .../main/java/com/github/ambry/named/NamedBlobDb.java | 100.00% <100.00%> (ø) |
|
| ...com/github/ambry/frontend/NamedBlobPutHandler.java | 92.90% <100.00%> (+0.28%) |
:arrow_up: |
| ...n/java/com/github/ambry/clustermap/MockDiskId.java | 77.77% <0.00%> (-5.56%) |
:arrow_down: |
| ...a/com/github/ambry/network/SSLBlockingChannel.java | 75.67% <0.00%> (-5.41%) |
:arrow_down: |
| ...va/com/github/ambry/replication/ReplicaThread.java | 83.73% <0.00%> (-0.77%) |
:arrow_down: |
| ... and 14 more |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.