File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ TClientWriter::TClientWriter(
36
36
} else {
37
37
bool useV2Writer = context.Config ->TableWriterVersion == ETableWriterVersion::V2;
38
38
if (useV2Writer) {
39
- auto serializedWriterOptions = FormIORequestParameters (options);
39
+ auto serializedWriterOptions = FormIORequestParameters (path, options);
40
40
41
41
RawWriter_ = MakeIntrusive<NPrivate::TRetryfulWriterV2>(
42
42
rawClient,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ void THeavyRequestRetrier::Retry(const std::function<void()> &function)
67
67
function ();
68
68
return ;
69
69
} catch (const std::exception& ex) {
70
- YT_LOG_ERROR (" RSP %v - attempt %v failed" ,
70
+ YT_LOG_ERROR (" RSP %v - %v failed" ,
71
71
Attempt_->RequestId ,
72
72
RequestRetryPolicy_->GetAttemptDescription ());
73
73
Attempt_.reset ();
@@ -89,6 +89,7 @@ void THeavyRequestRetrier::Retry(const std::function<void()> &function)
89
89
throw ;
90
90
}
91
91
NDetail::TWaitProxy::Get ()->Sleep (*backoffDuration);
92
+ RequestRetryPolicy_->NotifyNewAttempt ();
92
93
}
93
94
}
94
95
}
Original file line number Diff line number Diff line change @@ -389,6 +389,9 @@ void TRetryfulWriterV2::DoStartBatch()
389
389
390
390
void TRetryfulWriterV2::DoWrite (const void * buf, size_t len)
391
391
{
392
+ if (!Sender_) {
393
+ throw TApiUsageError () << " Cannot use table writer that is finished" ;
394
+ }
392
395
Current_->Buffer .Append (buf, len);
393
396
auto currentSize = Current_->Buffer .Size ();
394
397
if (currentSize >= NextSizeToSend_) {
You can’t perform that action at this time.
0 commit comments