|
3 | 3 | #include <ydb/core/blobstorage/base/blobstorage_events.h>
|
4 | 4 | #include <ydb/core/blobstorage/dsproxy/dsproxy.h>
|
5 | 5 | #include <ydb/core/blobstorage/dsproxy/dsproxy_nodemon.h>
|
| 6 | +#include <ydb/core/blobstorage/dsproxy/dsproxy_test_helpers.h> |
6 | 7 | #include <ydb/core/blobstorage/groupinfo/blobstorage_groupinfo.h>
|
7 | 8 | #include <ydb/core/blobstorage/pdisk/blobstorage_pdisk.h>
|
8 | 9 | #include <ydb/core/blobstorage/pdisk/blobstorage_pdisk_tools.h>
|
@@ -3433,32 +3434,29 @@ class TTestBlobStorageProxyBatchedPutRequestDoesNotContainAHugeBlob : public TTe
|
3433 | 3434 |
|
3434 | 3435 | switch (TestStep) {
|
3435 | 3436 | case 0: {
|
3436 |
| - TBatchedVec<TEvBlobStorage::TEvPut::TPtr> batched(2); |
3437 |
| - batched[0] = GetPut(blobIds[0], Data1); |
3438 |
| - batched[1] = GetPut(blobIds[1], Data2); |
| 3437 | + Batched[0] = GetPut(blobIds[0], Data1); |
| 3438 | + Batched[1] = GetPut(blobIds[1], Data2); |
3439 | 3439 |
|
3440 | 3440 | TMaybe<TGroupStat::EKind> kind = PutHandleClassToGroupStatKind(HandleClass);
|
3441 |
| - IActor *reqActor = CreateBlobStorageGroupPutRequest( |
3442 |
| - TBlobStorageGroupMultiPutParameters{ |
3443 |
| - .Common = { |
3444 |
| - .GroupInfo = BsInfo, |
3445 |
| - .GroupQueues = GroupQueues, |
3446 |
| - .Mon = Mon, |
3447 |
| - .Now = TMonotonic::Now(), |
3448 |
| - .StoragePoolCounters = StoragePoolCounters, |
3449 |
| - .RestartCounter = TBlobStorageGroupMultiPutParameters::CalculateRestartCounter(batched), |
3450 |
| - .LatencyQueueKind = kind, |
3451 |
| - }, |
3452 |
| - .Events = batched, |
3453 |
| - .TimeStatsEnabled = false, |
3454 |
| - .Stats = PerDiskStatsPtr, |
3455 |
| - .HandleClass = HandleClass, |
3456 |
| - .Tactic = Tactic, |
3457 |
| - .EnableRequestMod3x3ForMinLatency = false, |
3458 |
| - .AccelerationParams = TAccelerationParams{}, |
3459 |
| - }); |
3460 |
| - |
3461 |
| - ctx.Register(reqActor); |
| 3441 | + ctx.Send(Proxy, new TEvExplicitMultiPut(TBlobStorageGroupMultiPutParameters{ |
| 3442 | + .Common = { |
| 3443 | + .GroupInfo = BsInfo, |
| 3444 | + .GroupQueues = GroupQueues, |
| 3445 | + .Mon = Mon, |
| 3446 | + .Now = TMonotonic::Now(), |
| 3447 | + .StoragePoolCounters = StoragePoolCounters, |
| 3448 | + .RestartCounter = TBlobStorageGroupMultiPutParameters::CalculateRestartCounter(Batched), |
| 3449 | + .LatencyQueueKind = kind, |
| 3450 | + .DoSendDeathNote = false, |
| 3451 | + }, |
| 3452 | + .Events = Batched, |
| 3453 | + .TimeStatsEnabled = false, |
| 3454 | + .Stats = PerDiskStatsPtr, |
| 3455 | + .HandleClass = HandleClass, |
| 3456 | + .Tactic = Tactic, |
| 3457 | + .EnableRequestMod3x3ForMinLatency = false, |
| 3458 | + .AccelerationParams = TAccelerationParams{}, |
| 3459 | + })); |
3462 | 3460 | break;
|
3463 | 3461 | }
|
3464 | 3462 | case 10:
|
@@ -3486,10 +3484,12 @@ class TTestBlobStorageProxyBatchedPutRequestDoesNotContainAHugeBlob : public TTe
|
3486 | 3484 | NKikimrBlobStorage::EPutHandleClass HandleClass = NKikimrBlobStorage::TabletLog;
|
3487 | 3485 | TString Data1;
|
3488 | 3486 | TString Data2;
|
| 3487 | + TBatchedVec<TEvBlobStorage::TEvPut::TPtr> Batched; |
3489 | 3488 | public:
|
3490 | 3489 | TTestBlobStorageProxyBatchedPutRequestDoesNotContainAHugeBlob(const TActorId &proxy, const TIntrusivePtr<TBlobStorageGroupInfo> &bsInfo,
|
3491 | 3490 | const TIntrusivePtr<TTestEnvironment> &env, const TIntrusivePtr<ITestParametrs> ¶metrs)
|
3492 | 3491 | : TTestBlobStorageProxyForRequest(proxy, bsInfo, env, parametrs)
|
| 3492 | + , Batched(2) |
3493 | 3493 | {
|
3494 | 3494 | Data1.resize(MaxBatchedPutSize - 1, 'a');
|
3495 | 3495 | Data2.resize(1, 'a');
|
|
0 commit comments