Create configureReadReplication and deprecate ensureReplicas/disableReplicas#6555
Create configureReadReplication and deprecate ensureReplicas/disableReplicas#6555
Conversation
There was a problem hiding this comment.
I'm Bonk, and I've done a quick review of your PR.
This PR adds configureReadReplication() to DurableObjectStorage as a replacement for ensureReplicas()/disableReplicas().
Issues
-
Unused
traceContext(medium): The trace span is created but never attached to the promise, so tracing won't cover this operation. Every other storage method in this file attaches itstraceContextviacontext.attachSpans()or.attach(). -
No tests (medium): No tests were added for the new method. Even though the backend implementation is behind a virtual interface, it would be valuable to have at least a basic test that validates argument parsing (unknown mode, missing mode, replica rejection).
-
Error message omits the rejected value (low): Including the actual mode string in the "unknown mode" error would aid debugging.
|
Review posted successfully on PR #6555. Here's a summary of what I found:
|
78e376f to
754dc4c
Compare
Merging this PR will improve performance by 41.01%
|
| Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|
| ⚡ | simpleStringBody[Response] |
27.2 µs | 19.3 µs | +41.01% |
Comparing jolio/add-configure-read-replication (e14caa5) with main (22c1ca0)
Footnotes
-
129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
592d6dc to
37eff57
Compare
|
trivial rebase ^ |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6555 +/- ##
==========================================
- Coverage 70.85% 70.84% -0.01%
==========================================
Files 438 438
Lines 123642 123663 +21
Branches 19455 19458 +3
==========================================
+ Hits 87604 87610 +6
- Misses 24514 24532 +18
+ Partials 11524 11521 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
37eff57 to
3067ce9
Compare
3067ce9 to
e14caa5
Compare
No description provided.