Repository navigation
INTERNAL: Release elements on a sweeper after the searches before them - #25
Merged
Merged
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 5, 2026 08:50
638577e to
e711a97
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 5, 2026 09:09
e711a97 to
51dbe49
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 5, 2026 14:10
51dbe49 to
b2b701d
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 5, 2026 15:15
b2b701d to
ac74c8a
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 5, 2026 15:45
ac74c8a to
d7e56a0
Compare
ing-eoking
force-pushed
the
sweeper
branch
2 times, most recently
from
November 5, 2026 23:59
d384b93 to
1fd2840
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
2 times, most recently
from
November 6, 2026 00:05
1473bee to
fb39e69
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 6, 2026 01:20
fb39e69 to
482bd97
Compare
ing-eoking
marked this pull request as draft
November 6, 2026 03:15
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 6, 2026 06:57
482bd97 to
8a07842
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 6, 2026 07:34
8a07842 to
dba1e98
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 6, 2026 07:58
dba1e98 to
d37773c
Compare
ing-eoking
force-pushed
the
sweeper
branch
2 times, most recently
from
November 6, 2026 08:05
193eb57 to
7c02867
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 6, 2026 08:05
d37773c to
62fe504
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 8, 2026 23:54
9cc4121 to
2002aa4
Compare
ing-eoking
force-pushed
the
sweeper
branch
2 times, most recently
from
November 8, 2026 23:59
341ae01 to
9c32eb1
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
2 times, most recently
from
November 9, 2026 02:38
55764d4 to
f1faea7
Compare
ing-eoking
force-pushed
the
sweeper
branch
2 times, most recently
from
November 10, 2026 01:36
d1349ce to
37e4653
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 10, 2026 01:36
f1faea7 to
4322d1b
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
2 times, most recently
from
November 10, 2026 02:02
5ff9bb9 to
813cb24
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 11, 2026 01:31
813cb24 to
74f70ba
Compare
ing-eoking
force-pushed
the
sweeper
branch
2 times, most recently
from
November 12, 2026 00:41
6beab90 to
96a1e61
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
2 times, most recently
from
November 12, 2026 00:57
9370bc6 to
4d97960
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 12, 2026 01:15
4d97960 to
c18a3c8
Compare
ing-eoking
force-pushed
the
sweeper
branch
3 times, most recently
from
November 12, 2026 05:59
948f3dc to
930144d
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 12, 2026 05:59
30bfea7 to
6d814d5
Compare
zhy2on
approved these changes
Nov 13, 2026
| let (events, rx) = channel(); | ||
| let sweeper = Box::leak(Box::new(Sweeper { | ||
| events, | ||
| closed: AtomicBool::new(false), |
Member
There was a problem hiding this comment.
lane은 기다리는 connection에 바로 응답하려고 closed로 남은 Task를 버리는 것으로 이해했습니다.
스위퍼 큐에는 기다리는 connection이 없으니, closed 없이 Shutdown을 받을 때 끝나도 될 것 같은데 어떻게 생각하시나요?
일관성 측면에서 스위퍼에도 closed를 쓰는 게 더 좋을까요?
| .name("arcus-vector-sweeper".into()) | ||
| .spawn(move || { | ||
| let _ = ready.send(()); | ||
| run(sweeper, &events); |
Member
There was a problem hiding this comment.
Sweeper의 Sender(events)는 다른 스레드가 스위퍼에 보낼 때 쓰는 것이라, run에서는 closed만 쓰는 것 같습니다.
closed만 넘기면 될 것 같습니다.
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 13, 2026 05:11
6d814d5 to
c5665e8
Compare
ing-eoking
force-pushed
the
lane-shutdown
branch
from
November 13, 2026 07:15
c5665e8 to
072a5ed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
⌨️ What I did
wait_for_searches()(write lock)로 진행 중인 search가 끝나기를 기다린 뒤 직접 release했습니다.스위퍼
이벤트 큐 하나를 두고, 들어온 순서대로 하나씩 처리합니다.
Release(elem)Block(rx)Readingdrop) 뒤에 쌓인 이벤트를 막음Shutdownshutdown()Block뒤에Release가 들어갑니다. 그래서 search가 결과로 찾은 element를 다 읽기 전에는 release되지 않습니다.Release가 먼저 처리되어도 안전합니다.