@@ -91,7 +91,10 @@ impl SplitReader for KinesisSplitReader {
91
91
if !matches ! ( start_position, KinesisOffset :: Timestamp ( _) )
92
92
&& properties. timestamp_offset . is_some ( )
93
93
{
94
- bail ! ( "scan.startup.mode need to be set to 'timestamp' if you want to start with a specific timestamp" ) ;
94
+ // cannot bail! here because all new split readers will fail to start if user set 'scan.startup.mode' to 'timestamp'
95
+ tracing:: warn!( "scan.startup.mode need to be set to 'timestamp' if you want to start with a specific timestamp, starting shard {} from the beginning" ,
96
+ split. id( )
97
+ ) ;
95
98
}
96
99
97
100
let stream_name = properties. common . stream_name . clone ( ) ;
@@ -337,40 +340,6 @@ mod tests {
337
340
use crate :: connector_common:: KinesisCommon ;
338
341
use crate :: source:: SourceContext ;
339
342
340
- #[ tokio:: test]
341
- async fn test_reject_redundant_seq_props ( ) {
342
- let properties = KinesisProperties {
343
- common : KinesisCommon {
344
- assume_role_arn : None ,
345
- credentials_access_key : None ,
346
- credentials_secret_access_key : None ,
347
- stream_name : "kinesis_debug" . to_string ( ) ,
348
- stream_region : "cn-northwest-1" . to_string ( ) ,
349
- endpoint : None ,
350
- session_token : None ,
351
- assume_role_external_id : None ,
352
- } ,
353
-
354
- scan_startup_mode : None ,
355
- timestamp_offset : Some ( 123456789098765432 ) ,
356
-
357
- unknown_fields : Default :: default ( ) ,
358
- } ;
359
- let client = KinesisSplitReader :: new (
360
- properties,
361
- vec ! [ KinesisSplit {
362
- shard_id: "shardId-000000000001" . to_string( ) . into( ) ,
363
- start_position: KinesisOffset :: Earliest ,
364
- end_position: KinesisOffset :: None ,
365
- } ] ,
366
- Default :: default ( ) ,
367
- SourceContext :: dummy ( ) . into ( ) ,
368
- None ,
369
- )
370
- . await ;
371
- assert ! ( client. is_err( ) ) ;
372
- }
373
-
374
343
#[ tokio:: test]
375
344
#[ ignore]
376
345
async fn test_single_thread_kinesis_reader ( ) -> Result < ( ) > {
0 commit comments