feat: cluster migrations restarts immediately if timeout happens (#4081)

* feat: cluster migrations restarts immediately if timeout happens

* feat: add DEBUG MIGRATION PAUSE command
This commit is contained in:
Borys 2024-11-25 16:02:22 +02:00 committed by GitHub
parent 3c65651c69
commit 43c83d29fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 199 additions and 70 deletions

View file

@ -167,7 +167,7 @@ void JournalStreamer::ThrottleIfNeeded() {
if (status == std::cv_status::timeout) {
LOG(WARNING) << "Stream timed out, inflight bytes/sent start: " << inflight_start << "/"
<< sent_start << ", end: " << in_flight_bytes_ << "/" << total_sent_;
cntx_->ReportError(make_error_code(errc::stream_timeout));
cntx_->ReportError("JournalStreamer write operation timeout");
}
}