@@ -150,8 +150,8 @@ impl IngestWorkbench {
150
150
/// Marks a node as unavailable for the span of the workbench.
151
151
///
152
152
/// Remaining attempts will treat the node as if it was not in the ingester pool.
153
- pub fn record_connection_error ( & mut self , subrequest_id : SubrequestId ) {
154
- self . record_failure ( subrequest_id, SubworkbenchFailure :: TransportError ) ;
153
+ pub fn record_transport_error ( & mut self , subrequest_id : SubrequestId ) {
154
+ self . record_failure ( subrequest_id, SubworkbenchFailure :: Transport ) ;
155
155
}
156
156
157
157
pub fn record_persist_failure ( & mut self , persist_failure : & PersistFailure ) {
@@ -217,7 +217,7 @@ pub(super) enum SubworkbenchFailure {
217
217
SourceNotFound ,
218
218
NoShardsAvailable ,
219
219
// Transport error: we failed to reach the ingester.
220
- TransportError ,
220
+ Transport ,
221
221
// This is an error supplied by the ingester.
222
222
Persist ( PersistFailureReason ) ,
223
223
Internal ( String ) ,
@@ -232,7 +232,7 @@ impl SubworkbenchFailure {
232
232
Self :: NoShardsAvailable => IngestFailureReason :: NoShardsAvailable ,
233
233
// In our last attempt, we did not manage to reach the ingester.
234
234
// We can consider that as a no shards available.
235
- Self :: TransportError => IngestFailureReason :: NoShardsAvailable ,
235
+ Self :: Transport => IngestFailureReason :: NoShardsAvailable ,
236
236
Self :: Persist ( persist_failure_reason) => ( * persist_failure_reason) . into ( ) ,
237
237
}
238
238
}
@@ -271,7 +271,7 @@ impl IngestSubworkbench {
271
271
// No need to retry no shards were available.
272
272
Some ( SubworkbenchFailure :: NoShardsAvailable ) => false ,
273
273
Some ( SubworkbenchFailure :: Persist ( _) ) => true ,
274
- Some ( SubworkbenchFailure :: TransportError ) => true ,
274
+ Some ( SubworkbenchFailure :: Transport ) => true ,
275
275
None => true ,
276
276
}
277
277
}
@@ -292,7 +292,7 @@ mod tests {
292
292
assert ! ( subworkbench. is_pending( ) ) ;
293
293
assert ! ( subworkbench. last_failure_is_transient( ) ) ;
294
294
295
- subworkbench. last_failure_opt = Some ( SubworkbenchFailure :: TransportError ) ;
295
+ subworkbench. last_failure_opt = Some ( SubworkbenchFailure :: Transport ) ;
296
296
assert ! ( subworkbench. is_pending( ) ) ;
297
297
assert ! ( subworkbench. last_failure_is_transient( ) ) ;
298
298
0 commit comments