@@ -223,7 +223,7 @@ namespace NKikimr::NPersQueueTests {
223
223
Sleep (TDuration::MilliSeconds (10 ));
224
224
}
225
225
226
- // Ts and firstOffset and expectingQuantities will be set in first iteration of reading by received messages.
226
+ // Ts and firstOffset and expectingQuantities will be set in first iteration of reading by received messages.
227
227
// Each will contains shifts from the message: before, equals and after.
228
228
// It allow check reading from different shift. First iteration read from zero.
229
229
TVector<TInstant> ts { TInstant::Zero () };
@@ -254,10 +254,10 @@ namespace NKikimr::NPersQueueTests {
254
254
ui32 lastOffset = 0 ;
255
255
256
256
settings.EventHandlers_ .SimpleDataHandlers ([&](NYdb::NPersQueue::TReadSessionEvent::TDataReceivedEvent& event) mutable {
257
- Cerr << " >>>>> Iteration: " << i << " TDataReceivedEvent: " << event.DebugString (false )
257
+ Cerr << " >>>>> Iteration: " << i << " TDataReceivedEvent: " << event.DebugString (false )
258
258
<< " size=" << event.GetMessages ().size () << Endl << Flush;
259
259
for (const auto & msg : event.GetMessages ()) {
260
- Cerr << " >>>>> Iteration: " << i << " Got message: " << msg.GetData ().substr (0 , 16 )
260
+ Cerr << " >>>>> Iteration: " << i << " Got message: " << msg.GetData ().substr (0 , 16 )
261
261
<< " :: " << msg.DebugString (false ) << Endl << Flush;
262
262
263
263
auto count = ++map[msg.GetData ()];
@@ -281,12 +281,12 @@ namespace NKikimr::NPersQueueTests {
281
281
} else {
282
282
if (map.size () == 1 ) {
283
283
auto expectedOffset = firstOffset[i];
284
- UNIT_ASSERT_EQUAL_C (msg.GetOffset (), expectedOffset, " Iteration: " << i
285
- << " Expected first message offset " << expectedOffset
284
+ UNIT_ASSERT_EQUAL_C (msg.GetOffset (), expectedOffset, " Iteration: " << i
285
+ << " Expected first message offset " << expectedOffset
286
286
<< " but got " << msg.GetOffset ());
287
287
} else {
288
- UNIT_ASSERT_C (lastOffset < msg.GetOffset (), " Iteration: " << i
289
- << " unexpected offset order. Last offset " << lastOffset
288
+ UNIT_ASSERT_C (lastOffset < msg.GetOffset (), " Iteration: " << i
289
+ << " unexpected offset order. Last offset " << lastOffset
290
290
<< " Message offset " << msg.GetOffset ());
291
291
}
292
292
@@ -310,8 +310,8 @@ namespace NKikimr::NPersQueueTests {
310
310
311
311
if (i == 0 ) {
312
312
for (ui32 j = 1 ; j < ts.size (); ++j) {
313
- Cerr << " >>>>> Planed iteration: " << j
314
- << " . Start reading from time: " << ts[j]
313
+ Cerr << " >>>>> Planed iteration: " << j
314
+ << " . Start reading from time: " << ts[j]
315
315
<< " . Expected first message offset: " << firstOffset[j]
316
316
<< " . Expected message quantity: " << expectingQuantities[j] << Endl;
317
317
}
@@ -462,6 +462,8 @@ namespace NKikimr::NPersQueueTests {
462
462
" topic.read.lag_milliseconds" ,
463
463
" topic.write.bytes" ,
464
464
" topic.write.messages" ,
465
+ " topic.write.discarded_bytes" ,
466
+ " topic.write.discarded_messages" ,
465
467
" api.grpc.topic.stream_write.bytes" ,
466
468
" topic.write.partition_throttled_milliseconds" ,
467
469
" topic.write.message_size_bytes" ,
0 commit comments