Repository navigation
Destination S3: Deferred deletes on sync success in OVERWRITE - #42579
Gireesh Sreepathi (gisripa) merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join Gireesh Sreepathi (@gisripa) and the rest of your teammates on |
2c71cb7 to
d66a66b
Compare
005b367 to
f2bdd27
Compare
d66a66b to
2b602b5
Compare
f2bdd27 to
d1c1c0a
Compare
2b602b5 to
cc558fa
Compare
cdf2021 to
32f91da
Compare
d1c1c0a to
3b439ea
Compare
32f91da to
196731e
Compare
14faf69 to
96cbf8f
Compare
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
lgtm, had some fyi/questions
196731e to
1627fdb
Compare
96cbf8f to
4ac9531
Compare
e6055c8 to
475d5c2
Compare
4ac9531 to
1aaf8f9
Compare
123df63 to
6629bba
Compare
5a747f0 to
fce1f98
Compare
fce1f98 to
cc4cf39
Compare
00dca62 to
785fbf5
Compare
dd1f010 to
edad67d
Compare
edad67d to
cc4cf39
Compare
785fbf5 to
8fcd413
Compare
There was a problem hiding this comment.
Wrong test input caught once I added explicit check for append + 0 genId
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
seems legit. I didn't read through the test code, lmk if you want more eyes on that. Binary search implementation looks correct, though it is one of those algos that can be weirdly finnicky 🤷
lgtm pending previous comments, plus a few nits on the new code
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
one last question, lgtm once resolved
There was a problem hiding this comment.
are you intentionally keeping the regex matching stuff outside this method? (i.e. the Pattern.compile(getRegexFormat(namespace, streamName, pathFormat)) + objectSumaries.filter { regex.matcher(it).matches() } thing)
There was a problem hiding this comment.
yeah. wasn't sure if all usages are doing filter at the time of refactoring (turns out they seem to be)
There was a problem hiding this comment.
Not requesting a change to this, but I wonder if in the new CDK we should try to keep the BL out of the storage operations as much as possible.
Like this is really an object search with a metadata comparator?
There was a problem hiding this comment.
Another raised CDK question: what's the best way to handle accumulated stream state. Is appending to the config the right way? Does it make things less manageable?
There was a problem hiding this comment.
this is only remnant in S3 land, we avoided attaching to WriteConfig (or rather killed that object all together) and saving states at instance level of that StreamOperation class. If there is a "state" machine then the FSM executor should accumulate and pass it along right ?
|
/publish-java-cdk
|

What
Deferring the deletes until end of the sync to only delete on receving a
COMPLETEfor stream status.How
cleanUpObjects, instead of deleting them immediately, collecting all the object keys marked for delete and sending them toonClosefunction for actual deletion.Review guide
BlobStorageOperationsinterface to support querying and cleaning the objects in a deferred fashion.WriteConfig. Note that it is not thread-safe butonStartandonCloseare only called once so nothing else is mutating that list in between.S3ConsumerFactoryfor deferring the deletion actionOVERWRITEmodeUser Impact
Can this PR be safely reverted and rolled back?