diff options
author | danilalexeev <danilalexeev@yandex-team.com> | 2024-11-16 22:13:07 +0300 |
---|---|---|
committer | danilalexeev <danilalexeev@yandex-team.com> | 2024-11-16 22:23:32 +0300 |
commit | de44d83afa148a543521001a18741f298fe657d4 (patch) | |
tree | bc7ed87f2122c35fd0c16f5ca26495cc250f9372 | |
parent | fc534ef7d05a8f876fe68dac33664d5cf973ac6b (diff) | |
download | ydb-de44d83afa148a543521001a18741f298fe657d4.tar.gz |
YT-18537: Expiration of nodes in Sequoia
Sequoia node expiration uses the same mechanism as for master nodes. Master servers are responsible for access tracking and removal of expired nodes with only difference that removal requests are now executed at Cypress Proxies. Moreover, these changes ensure the proper Sequoia nodes life prolongation via requests.
commit_hash:675c4b5d2ba1ecf158cddb3f2e8dc0bd04d84b72
-rw-r--r-- | yt/yt/core/ytree/ypath_detail.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt/yt/core/ytree/ypath_detail.h b/yt/yt/core/ytree/ypath_detail.h index 797fff24d1..290da3a1fc 100644 --- a/yt/yt/core/ytree/ypath_detail.h +++ b/yt/yt/core/ytree/ypath_detail.h @@ -154,11 +154,12 @@ protected: DEFINE_RPC_SERVICE_METHOD(TSupports##method, method) \ { \ NYPath::TTokenizer tokenizer(GetRequestTargetYPath(context->RequestHeader())); \ - if (tokenizer.Advance() == NYPath::ETokenType::EndOfStream) { \ + tokenizer.Advance(); \ + tokenizer.Skip(NYPath::ETokenType::Ampersand); \ + if (tokenizer.GetType() == NYPath::ETokenType::EndOfStream) { \ method##Self(request, response, context); \ return; \ } \ - tokenizer.Skip(NYPath::ETokenType::Ampersand); \ if (tokenizer.GetType() != NYPath::ETokenType::Slash) { \ onPathError \ return; \ |