-
Notifications
You must be signed in to change notification settings - Fork 638
messages for shadow partition #1084
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
Conversation
ydb/core/persqueue/events/internal.h
Outdated
struct TSuccess { | ||
TString SourceId; | ||
ui64 MinSeqNo, MaxSeqNo; | ||
NKikimrPQ::TPartitionKeyRange KeyRange; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут список ключей для ренейма, а не рендж. А лучше то, что в body лежит сразу
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
исправил
1518b41
ydb/core/persqueue/events/internal.h
Outdated
}; | ||
|
||
struct TEvGetWriteInfoResponse : public TEventLocal<TEvGetWriteInfoResponse, EvGetWriteInfoResponse> { | ||
struct TError { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут надо сообщение об ошике, и его в Propose отдавать в итоге ( или в причине аборта транзакции)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавил текст сообщения об ошибке
ydb/core/persqueue/events/internal.h
Outdated
}; | ||
|
||
struct TSuccess { | ||
TString SourceId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут вектор. Сорсидов может быть много.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
исправил
1518b41
ui32 Cookie; // ShadowPartitionId | ||
}; | ||
|
||
struct TEvGetWriteInfoResponse : public TEventLocal<TEvGetWriteInfoResponse, EvGetWriteInfoResponse> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split in 2 messages - writeinforesponse and writeinfoerror
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
7f74ed7
ydb/core/persqueue/events/internal.h
Outdated
struct TSuccess { | ||
THashMap<TString, NPQ::TSeqNoRange> SeqNo; // SourceId -> (MinSeqNo, MaxSeqNo) | ||
std::deque<NPQ::TDataKey> BodyKeys; | ||
std::deque<NPQ::TBatch> Head; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to list of messages (MsgWrite)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
00dee5e
@@ -65,6 +66,18 @@ namespace NPQ { | |||
{} | |||
}; | |||
|
|||
struct TDataKey { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Change caching proxy logic to process move commands too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it to the task of transferring data
b3d61ee
to
00dee5e
Compare
7f74ed7
to
32351ec
Compare
⚪
|
⚪
|
ydb/core/persqueue/events/internal.h
Outdated
@@ -1033,7 +1033,7 @@ struct TEvPQ { | |||
TEvGetWriteInfoResponse(ui32 cookie, | |||
THashMap<TString, NPQ::TSeqNoRange> seqNo, | |||
std::deque<NPQ::TDataKey> bodyKeys, | |||
std::deque<NPQ::TBatch> head) : | |||
TVector<NPQ::TClientBlob> head) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TVector && - будет лишнее копирование
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
исправил
8fc84c4
Сообщения для служебной партиции. Позволяют получить информацию о записанных данных