File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -93,10 +93,7 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
93
93
LOG_LAZY (DbDriverState->Log , TLOG_DEBUG, LogPrefix () << " Write session is aborting and will not restart" );
94
94
return result;
95
95
}
96
- LOG_LAZY (DbDriverState->Log , TLOG_ERR,
97
- LogPrefix () << " Got error. Status: " << status.Status
98
- << " . Description: " << IssuesSingleLineString (status.Issues )
99
- );
96
+
100
97
SessionEstablished = false ;
101
98
if (!RetryState) {
102
99
RetryState = Settings.RetryPolicy_ ->CreateRetryState ();
@@ -106,13 +103,11 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
106
103
if (nextDelay) {
107
104
result.StartDelay = *nextDelay;
108
105
result.DoRestart = true ;
109
- LOG_LAZY (DbDriverState->Log ,
110
- TLOG_DEBUG,
111
- LogPrefix () << " Write session will restart in " << result.StartDelay .MilliSeconds () << " ms"
112
- );
106
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Got error. " << status.ToDebugString ());
107
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Write session will restart in " << result.StartDelay );
113
108
ResetForRetryImpl ();
114
-
115
109
} else {
110
+ LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Got error. " << status.ToDebugString ());
116
111
LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Write session will not restart after a fatal error" );
117
112
result.DoStop = true ;
118
113
CheckHandleResultImpl (result);
Original file line number Diff line number Diff line change @@ -171,7 +171,6 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
171
171
LOG_LAZY (DbDriverState->Log , TLOG_DEBUG, LogPrefix () << " Write session is aborting and will not restart" );
172
172
return result;
173
173
}
174
- LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Got error. " << status.ToDebugString ());
175
174
SessionEstablished = false ;
176
175
177
176
// Keep DirectWriteToPartitionId value on temporary errors.
@@ -192,10 +191,11 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
192
191
if (nextDelay) {
193
192
result.StartDelay = *nextDelay;
194
193
result.DoRestart = true ;
195
- LOG_LAZY (DbDriverState->Log , TLOG_WARNING, LogPrefix () << " Write session will restart in " << result.StartDelay );
194
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Got error. " << status.ToDebugString ());
195
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Write session will restart in " << result.StartDelay );
196
196
ResetForRetryImpl ();
197
-
198
197
} else {
198
+ LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Got error. " << status.ToDebugString ());
199
199
LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Write session will not restart after a fatal error" );
200
200
result.DoStop = true ;
201
201
CheckHandleResultImpl (result);
You can’t perform that action at this time.
0 commit comments