-
Notifications
You must be signed in to change notification settings - Fork 742
Refactor TEvPut ctors, return relevance trackers for request actors #30621
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
Merged
serbel324
merged 31 commits into
ydb-platform:main
from
serbel324:bs/dsproxy/safe-put-parameters
Dec 15, 2025
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
c03436e
Mute broken test
serbel324 fc1a7ff
Merge branch 'ydb-platform:main' into main
serbel324 57845e2
Merge branch 'ydb-platform:main' into main
serbel324 85f212d
Merge branch 'ydb-platform:main' into main
serbel324 c88e723
Merge branch 'ydb-platform:main' into main
serbel324 c8dae01
Merge branch 'ydb-platform:main' into main
serbel324 28bb43b
Merge branch 'ydb-platform:main' into main
serbel324 aaaf09a
Merge branch 'ydb-platform:main' into main
serbel324 d6a05be
Merge branch 'ydb-platform:main' into main
serbel324 41aceb1
Merge branch 'ydb-platform:main' into main
serbel324 379c3e1
Merge branch 'ydb-platform:main' into main
serbel324 4415f7e
Merge branch 'ydb-platform:main' into main
serbel324 6e9b82c
Merge branch 'ydb-platform:main' into main
serbel324 838aded
Merge branch 'ydb-platform:main' into main
serbel324 3635fa6
Merge branch 'ydb-platform:main' into main
serbel324 356a16d
Merge branch 'ydb-platform:main' into main
serbel324 857e2e5
Merge branch 'ydb-platform:main' into main
serbel324 9185bc3
Merge branch 'ydb-platform:main' into main
serbel324 50130fc
Merge branch 'ydb-platform:main' into main
serbel324 91ffdc1
Merge branch 'ydb-platform:main' into main
serbel324 94e2813
Merge branch 'ydb-platform:main' into main
serbel324 9e849d1
Merge branch 'ydb-platform:main' into main
serbel324 f1f9742
Merge branch 'ydb-platform:main' into main
serbel324 f94a180
Merge branch 'ydb-platform:main' into main
serbel324 c868ac0
Merge branch 'ydb-platform:main' into main
serbel324 e0b25c7
Merge branch 'ydb-platform:main' into main
serbel324 0db239e
Merge branch 'ydb-platform:main' into main
serbel324 02888e9
Add TParameters constructor for TEvPut
serbel324 218ab2e
Fix UT build
serbel324 f5fb607
Cancel request on actor death
serbel324 cf7a029
Fix BlobId reference
serbel324 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #include "blobstorage_relevance.h" | ||
|
|
||
| namespace NKikimr { | ||
|
|
||
| TMessageRelevance::TMessageRelevance(const TMessageRelevanceOwner& onwer, | ||
| std::optional<TMessageRelevanceWatcher> external) | ||
| : InternalWatcher(onwer) | ||
| , ExternalWatcher(external) | ||
| {} | ||
|
|
||
| bool TMessageRelevance::IsRelevant() const { | ||
| return !InternalWatcher.expired() && (!ExternalWatcher || !ExternalWatcher->expired()); | ||
| } | ||
|
|
||
| } // namespace NKikimr |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #pragma once | ||
|
|
||
| #include <memory> | ||
| #include <optional> | ||
|
|
||
| namespace NKikimr { | ||
|
|
||
| struct TMessageRelevanceTracker {}; | ||
| using TMessageRelevanceOwner = std::shared_ptr<TMessageRelevanceTracker>; | ||
| using TMessageRelevanceWatcher = std::weak_ptr<TMessageRelevanceTracker>; | ||
|
|
||
| class TMessageRelevance { | ||
| public: | ||
| TMessageRelevance() = default; | ||
| TMessageRelevance(const TMessageRelevanceOwner& owner, | ||
| std::optional<TMessageRelevanceWatcher> external = std::nullopt); | ||
| bool IsRelevant() const; | ||
|
|
||
| private: | ||
| // tracks request actor state and cancels request when actor dies | ||
| TMessageRelevanceWatcher InternalWatcher; | ||
| // can be passed as request parameter to cancel request on demand | ||
| std::optional<TMessageRelevanceWatcher> ExternalWatcher; | ||
| }; | ||
|
|
||
| } // namespace NKikimr |
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.