File tree Expand file tree Collapse file tree 2 files changed +7
-12
lines changed
ydb/public/sdk/cpp/client
ydb_persqueue_public/impl Expand file tree Collapse file tree 2 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -90,10 +90,7 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
90
90
LOG_LAZY (DbDriverState->Log , TLOG_DEBUG, LogPrefix () << " Write session is aborting and will not restart" );
91
91
return result;
92
92
}
93
- LOG_LAZY (DbDriverState->Log , TLOG_ERR,
94
- LogPrefix () << " Got error. Status: " << status.Status
95
- << " . Description: " << IssuesSingleLineString (status.Issues )
96
- );
93
+
97
94
SessionEstablished = false ;
98
95
TMaybe<TDuration> nextDelay = TDuration::Zero ();
99
96
if (!RetryState) {
@@ -104,13 +101,11 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
104
101
if (nextDelay) {
105
102
result.StartDelay = *nextDelay;
106
103
result.DoRestart = true ;
107
- LOG_LAZY (DbDriverState->Log ,
108
- TLOG_DEBUG,
109
- LogPrefix () << " Write session will restart in " << result.StartDelay .MilliSeconds () << " ms"
110
- );
104
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Got error. " << status.ToDebugString ());
105
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Write session will restart in " << result.StartDelay );
111
106
ResetForRetryImpl ();
112
-
113
107
} else {
108
+ LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Got error. " << status.ToDebugString ());
114
109
LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Write session will not restart after a fatal error" );
115
110
result.DoStop = true ;
116
111
CheckHandleResultImpl (result);
Original file line number Diff line number Diff line change @@ -163,7 +163,6 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
163
163
LOG_LAZY (DbDriverState->Log , TLOG_DEBUG, LogPrefix () << " Write session is aborting and will not restart" );
164
164
return result;
165
165
}
166
- LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Got error. " << status.ToDebugString ());
167
166
SessionEstablished = false ;
168
167
169
168
// Keep DirectWriteToPartitionId value on temporary errors.
@@ -185,10 +184,11 @@ TWriteSessionImpl::THandleResult TWriteSessionImpl::RestartImpl(const TPlainStat
185
184
if (nextDelay) {
186
185
result.StartDelay = *nextDelay;
187
186
result.DoRestart = true ;
188
- LOG_LAZY (DbDriverState->Log , TLOG_WARNING, LogPrefix () << " Write session will restart in " << result.StartDelay );
187
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Got error. " << status.ToDebugString ());
188
+ LOG_LAZY (DbDriverState->Log , TLOG_INFO, LogPrefix () << " Write session will restart in " << result.StartDelay );
189
189
ResetForRetryImpl ();
190
-
191
190
} else {
191
+ LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Got error. " << status.ToDebugString ());
192
192
LOG_LAZY (DbDriverState->Log , TLOG_ERR, LogPrefix () << " Write session will not restart after a fatal error" );
193
193
result.DoStop = true ;
194
194
CheckHandleResultImpl (result);
You can’t perform that action at this time.
0 commit comments