@@ -36,8 +36,8 @@ use quickwit_common::io::Limiter;
36
36
use quickwit_common:: pubsub:: EventBroker ;
37
37
use quickwit_common:: { io, temp_dir} ;
38
38
use quickwit_config:: {
39
- build_doc_mapper, indexing_params_fingerprint , IndexConfig , IndexerConfig , SourceConfig ,
40
- INGEST_API_SOURCE_ID ,
39
+ build_doc_mapper, indexing_pipeline_params_fingerprint , IndexConfig , IndexerConfig ,
40
+ SourceConfig , INGEST_API_SOURCE_ID ,
41
41
} ;
42
42
use quickwit_ingest:: {
43
43
DropQueueRequest , GetPartitionId , IngestApiService , IngesterPool , ListQueuesRequest ,
@@ -324,7 +324,8 @@ impl IndexingService {
324
324
let max_concurrent_split_uploads_merge =
325
325
( self . max_concurrent_split_uploads - max_concurrent_split_uploads_index) . max ( 1 ) ;
326
326
327
- let params_fingerprint = indexing_params_fingerprint ( & index_config, & source_config) ;
327
+ let params_fingerprint =
328
+ indexing_pipeline_params_fingerprint ( & index_config, & source_config) ;
328
329
if let Some ( expected_params_fingerprint) = expected_params_fingerprint {
329
330
if params_fingerprint != expected_params_fingerprint {
330
331
warn ! (
@@ -1220,7 +1221,9 @@ mod tests {
1220
1221
1221
1222
#[ tokio:: test]
1222
1223
async fn test_indexing_service_apply_plan ( ) {
1223
- const PARAMS_FINGERPRINT : u64 = 3865067856550546352 ;
1224
+ const PARAMS_FINGERPRINT_INGEST_API : u64 = 1637744865450232394 ;
1225
+ const PARAMS_FINGERPRINT_SOURCE_1 : u64 = 1705211905504908791 ;
1226
+ const PARAMS_FINGERPRINT_SOURCE_2 : u64 = 8706667372658059428 ;
1224
1227
1225
1228
quickwit_common:: setup_logging_for_tests ( ) ;
1226
1229
let transport = ChannelTransport :: default ( ) ;
@@ -1281,14 +1284,14 @@ mod tests {
1281
1284
source_id: "test-indexing-service--source-1" . to_string( ) ,
1282
1285
shard_ids: Vec :: new( ) ,
1283
1286
pipeline_uid: Some ( PipelineUid :: for_test( 0u128 ) ) ,
1284
- params_fingerprint: PARAMS_FINGERPRINT ,
1287
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_1 ,
1285
1288
} ,
1286
1289
IndexingTask {
1287
1290
index_uid: Some ( metadata. index_uid. clone( ) ) ,
1288
1291
source_id: "test-indexing-service--source-1" . to_string( ) ,
1289
1292
shard_ids: Vec :: new( ) ,
1290
1293
pipeline_uid: Some ( PipelineUid :: for_test( 1u128 ) ) ,
1291
- params_fingerprint: PARAMS_FINGERPRINT ,
1294
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_1 ,
1292
1295
} ,
1293
1296
] ;
1294
1297
indexing_service
@@ -1327,28 +1330,28 @@ mod tests {
1327
1330
source_id: INGEST_API_SOURCE_ID . to_string( ) ,
1328
1331
shard_ids: Vec :: new( ) ,
1329
1332
pipeline_uid: Some ( PipelineUid :: for_test( 3u128 ) ) ,
1330
- params_fingerprint: PARAMS_FINGERPRINT ,
1333
+ params_fingerprint: PARAMS_FINGERPRINT_INGEST_API ,
1331
1334
} ,
1332
1335
IndexingTask {
1333
1336
index_uid: Some ( metadata. index_uid. clone( ) ) ,
1334
1337
source_id: "test-indexing-service--source-1" . to_string( ) ,
1335
1338
shard_ids: Vec :: new( ) ,
1336
1339
pipeline_uid: Some ( PipelineUid :: for_test( 1u128 ) ) ,
1337
- params_fingerprint: PARAMS_FINGERPRINT ,
1340
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_1 ,
1338
1341
} ,
1339
1342
IndexingTask {
1340
1343
index_uid: Some ( metadata. index_uid. clone( ) ) ,
1341
1344
source_id: "test-indexing-service--source-1" . to_string( ) ,
1342
1345
shard_ids: Vec :: new( ) ,
1343
1346
pipeline_uid: Some ( PipelineUid :: for_test( 2u128 ) ) ,
1344
- params_fingerprint: PARAMS_FINGERPRINT ,
1347
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_1 ,
1345
1348
} ,
1346
1349
IndexingTask {
1347
1350
index_uid: Some ( metadata. index_uid. clone( ) ) ,
1348
1351
source_id: source_config_2. source_id. clone( ) ,
1349
1352
shard_ids: Vec :: new( ) ,
1350
1353
pipeline_uid: Some ( PipelineUid :: for_test( 4u128 ) ) ,
1351
- params_fingerprint: PARAMS_FINGERPRINT ,
1354
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_2 ,
1352
1355
} ,
1353
1356
] ;
1354
1357
indexing_service
@@ -1389,21 +1392,21 @@ mod tests {
1389
1392
source_id: INGEST_API_SOURCE_ID . to_string( ) ,
1390
1393
shard_ids: Vec :: new( ) ,
1391
1394
pipeline_uid: Some ( PipelineUid :: for_test( 3u128 ) ) ,
1392
- params_fingerprint: PARAMS_FINGERPRINT ,
1395
+ params_fingerprint: PARAMS_FINGERPRINT_INGEST_API ,
1393
1396
} ,
1394
1397
IndexingTask {
1395
1398
index_uid: Some ( metadata. index_uid. clone( ) ) ,
1396
1399
source_id: "test-indexing-service--source-1" . to_string( ) ,
1397
1400
shard_ids: Vec :: new( ) ,
1398
1401
pipeline_uid: Some ( PipelineUid :: for_test( 1u128 ) ) ,
1399
- params_fingerprint: PARAMS_FINGERPRINT ,
1402
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_1 ,
1400
1403
} ,
1401
1404
IndexingTask {
1402
1405
index_uid: Some ( metadata. index_uid. clone( ) ) ,
1403
1406
source_id: source_config_2. source_id. clone( ) ,
1404
1407
shard_ids: Vec :: new( ) ,
1405
1408
pipeline_uid: Some ( PipelineUid :: for_test( 4u128 ) ) ,
1406
- params_fingerprint: PARAMS_FINGERPRINT ,
1409
+ params_fingerprint: PARAMS_FINGERPRINT_SOURCE_2 ,
1407
1410
} ,
1408
1411
] ;
1409
1412
indexing_service
0 commit comments