Skip to content

Commit f5eea22

Browse files
committed
Implement data erasure for PQ tablets (#17420)
1 parent 69efbfc commit f5eea22

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

src/client/topic/ut/topic_to_table_ut.cpp

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class TFixture : public NUnitTest::TBaseFixture {
355355
void SplitPartition(const TString& topicPath,
356356
ui32 partitionId,
357357
const TString& boundary);
358-
358+
359359
virtual bool GetEnableOltpSink() const;
360360
virtual bool GetEnableOlapSink() const;
361361
virtual bool GetEnableHtapTx() const;
@@ -1515,9 +1515,7 @@ ui64 TFixture::GetTopicTabletId(const TActorId& actorId, const TString& topicPat
15151515
std::vector<std::string> TFixture::GetTabletKeys(const TActorId& actorId,
15161516
ui64 tabletId)
15171517
{
1518-
using TEvKeyValue = NKikimr::TEvKeyValue;
1519-
1520-
auto request = std::make_unique<TEvKeyValue::TEvRequest>();
1518+
auto request = std::make_unique<NKikimr::TEvKeyValue::TEvRequest>();
15211519
request->Record.SetCookie(12345);
15221520

15231521
auto cmd = request->Record.AddCmdReadRange();
@@ -1532,7 +1530,7 @@ std::vector<std::string> TFixture::GetTabletKeys(const TActorId& actorId,
15321530
auto& runtime = Setup->GetRuntime();
15331531

15341532
runtime.SendToPipe(tabletId, actorId, request.release());
1535-
auto response = runtime.GrabEdgeEvent<TEvKeyValue::TEvResponse>();
1533+
auto response = runtime.GrabEdgeEvent<NKikimr::TEvKeyValue::TEvResponse>();
15361534

15371535
UNIT_ASSERT(response->Record.HasCookie());
15381536
UNIT_ASSERT_VALUES_EQUAL(response->Record.GetCookie(), 12345);
@@ -2211,16 +2209,14 @@ Y_UNIT_TEST_F(WriteToTopic_Demo_10_Query, TFixtureQuery)
22112209
NPQ::TWriteId TFixture::GetTransactionWriteId(const TActorId& actorId,
22122210
ui64 tabletId)
22132211
{
2214-
using TEvKeyValue = NKikimr::TEvKeyValue;
2215-
2216-
auto request = std::make_unique<TEvKeyValue::TEvRequest>();
2212+
auto request = std::make_unique<NKikimr::TEvKeyValue::TEvRequest>();
22172213
request->Record.SetCookie(12345);
22182214
request->Record.AddCmdRead()->SetKey("_txinfo");
22192215

22202216
auto& runtime = Setup->GetRuntime();
22212217

22222218
runtime.SendToPipe(tabletId, actorId, request.release());
2223-
auto response = runtime.GrabEdgeEvent<TEvKeyValue::TEvResponse>();
2219+
auto response = runtime.GrabEdgeEvent<NKikimr::TEvKeyValue::TEvResponse>();
22242220

22252221
UNIT_ASSERT(response->Record.HasCookie());
22262222
UNIT_ASSERT_VALUES_EQUAL(response->Record.GetCookie(), 12345);
@@ -2256,16 +2252,14 @@ void TFixture::WaitForTheTabletToDeleteTheWriteInfo(const TActorId& actorId,
22562252
const NPQ::TWriteId& writeId)
22572253
{
22582254
while (true) {
2259-
using TEvKeyValue = NKikimr::TEvKeyValue;
2260-
2261-
auto request = std::make_unique<TEvKeyValue::TEvRequest>();
2255+
auto request = std::make_unique<NKikimr::TEvKeyValue::TEvRequest>();
22622256
request->Record.SetCookie(12345);
22632257
request->Record.AddCmdRead()->SetKey("_txinfo");
22642258

22652259
auto& runtime = Setup->GetRuntime();
22662260

22672261
runtime.SendToPipe(tabletId, actorId, request.release());
2268-
auto response = runtime.GrabEdgeEvent<TEvKeyValue::TEvResponse>();
2262+
auto response = runtime.GrabEdgeEvent<NKikimr::TEvKeyValue::TEvResponse>();
22692263

22702264
UNIT_ASSERT(response->Record.HasCookie());
22712265
UNIT_ASSERT_VALUES_EQUAL(response->Record.GetCookie(), 12345);

0 commit comments

Comments
 (0)