Skip to content

Commit 8c51658

Browse files
Partition transactions batchingand data tx calc predicate
1 parent 4e7ecb5 commit 8c51658

File tree

10 files changed

+2300
-881
lines changed

10 files changed

+2300
-881
lines changed

ydb/core/persqueue/events/internal.h

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ struct TEvPQ {
183183
EvGetWriteInfoRequest,
184184
EvGetWriteInfoResponse,
185185
EvGetWriteInfoError,
186+
EvTxBatchComplete,
186187
EvReadingPartitionStatusRequest,
187188
EvProcessChangeOwnerRequests,
188189
EvWakeupReleasePartition,
@@ -1053,12 +1054,6 @@ struct TEvPQ {
10531054
};
10541055

10551056
struct TEvGetWriteInfoRequest : public TEventLocal<TEvGetWriteInfoRequest, EvGetWriteInfoRequest> {
1056-
explicit TEvGetWriteInfoRequest(ui32 cookie) :
1057-
Cookie(cookie)
1058-
{
1059-
}
1060-
1061-
ui32 Cookie; // InternalPartitionId
10621057
};
10631058

10641059
struct TEvGetWriteInfoResponse : public TEventLocal<TEvGetWriteInfoResponse, EvGetWriteInfoResponse> {
@@ -1078,6 +1073,7 @@ struct TEvPQ {
10781073
NPQ::TSourceIdMap SrcIdInfo;
10791074
std::deque<NPQ::TDataKey> BodyKeys;
10801075
TVector<NPQ::TClientBlob> BlobsFromHead;
1076+
10811077
ui64 BytesWrittenTotal;
10821078
ui64 BytesWrittenGrpc;
10831079
ui64 BytesWrittenUncompressed;
@@ -1097,6 +1093,13 @@ struct TEvPQ {
10971093
}
10981094
};
10991095

1096+
struct TEvTxBatchComplete : public TEventLocal<TEvTxBatchComplete, EvTxBatchComplete> {
1097+
explicit TEvTxBatchComplete(ui64 batchSize)
1098+
: BatchSize(batchSize)
1099+
{}
1100+
ui64 BatchSize;
1101+
};
1102+
11001103
struct TEvReadingPartitionStatusRequest : public TEventPB<TEvReadingPartitionStatusRequest, NKikimrPQ::TEvReadingPartitionStatusRequest, EvReadingPartitionStatusRequest> {
11011104
TEvReadingPartitionStatusRequest() = default;
11021105

0 commit comments

Comments
 (0)