1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
# This is the main library to use for consumers of sharding on a mongod shard. It will pull the
# version checking and document filtering functionality.
#
# This is the only library, which should be referenced directly outside of mongo/s/ and mongo/db/s/
env.Library(
target='sharding_api_d',
source=[
'collection_metadata.cpp',
'collection_sharding_state_factory_standalone.cpp',
'collection_sharding_state.cpp',
'database_sharding_state.cpp',
'operation_sharding_state.cpp',
'sharding_migration_critical_section.cpp',
'sharding_state.cpp',
'sharding_write_router.cpp',
'transaction_coordinator_curop.cpp',
'transaction_coordinator_factory.cpp',
'transaction_coordinator_worker_curop_repository.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/concurrency/lock_manager',
'$BUILD_DIR/mongo/db/range_arithmetic',
'$BUILD_DIR/mongo/s/grid',
'$BUILD_DIR/mongo/s/sharding_routing_table',
],
)
env.Library(
target='sharding_runtime_d',
source=[
'active_migrations_registry.cpp',
'active_move_primaries_registry.cpp',
'active_shard_collection_registry.cpp',
'auto_split_vector.cpp',
'chunk_move_write_concern_options.cpp',
'chunk_splitter.cpp',
'collection_critical_section_document.idl',
'collection_sharding_runtime.cpp',
'collection_sharding_state_factory_shard.cpp',
'config_server_op_observer.cpp',
'metadata_manager.cpp',
'migration_chunk_cloner_source_legacy.cpp',
'migration_chunk_cloner_source.cpp',
'migration_coordinator_document.idl',
'migration_coordinator.cpp',
'migration_destination_manager.cpp',
'migration_session_id.cpp',
'migration_source_manager.cpp',
'migration_util.cpp',
'move_primary_source_manager.cpp',
'move_timing_helper.cpp',
'namespace_metadata_change_notifications.cpp',
'op_observer_sharding_impl.cpp',
'periodic_balancer_config_refresher.cpp',
'periodic_sharded_index_consistency_checker.cpp',
'range_deletion_task.idl',
'range_deletion_util.cpp',
'read_only_catalog_cache_loader.cpp',
'recoverable_critical_section_service.cpp',
'resharding_util.cpp',
'resharding/coordinator_document.idl','resharding/document_source_resharding_iterate_transaction.cpp',
'resharding/document_source_resharding_ownership_match.cpp',
'resharding/donor_document.idl',
'resharding/donor_oplog_id.idl',
'resharding/recipient_document.idl',
'resharding/resharding_change_event_o2_field.idl',
'resharding/resharding_collection_cloner.cpp',
'resharding/resharding_coordinator_commit_monitor.cpp',
'resharding/resharding_coordinator_observer.cpp',
'resharding/resharding_coordinator_service.cpp',
'resharding/resharding_data_copy_util.cpp',
'resharding/resharding_data_replication.cpp',
'resharding/resharding_donor_oplog_iterator.cpp',
'resharding/resharding_donor_recipient_common.cpp',
'resharding/resharding_donor_service.cpp',
'resharding/resharding_future_util.cpp',
'resharding/resharding_manual_cleanup.cpp',
'resharding/resharding_metrics.cpp',
'resharding/resharding_op_observer.cpp',
'resharding/resharding_oplog_applier.cpp',
'resharding/resharding_oplog_applier_progress.idl',
'resharding/resharding_oplog_application.cpp',
'resharding/resharding_oplog_batch_applier.cpp',
'resharding/resharding_oplog_batch_preparer.cpp',
'resharding/resharding_oplog_fetcher.cpp',
'resharding/resharding_oplog_session_application.cpp',
'resharding/resharding_recipient_service.cpp',
'resharding/resharding_recipient_service_external_state.cpp',
'resharding/resharding_server_parameters.idl',
'resharding/resharding_txn_cloner.cpp',
'resharding/resharding_txn_cloner_progress.idl',
'scoped_operation_completion_sharding_actions.cpp',
'session_catalog_migration_destination.cpp',
'session_catalog_migration_source.cpp',
'shard_collection_legacy.cpp',
'shard_filtering_metadata_refresh.cpp',
'shard_identity_rollback_notifier.cpp',
'shard_key_util.cpp',
'shard_local.cpp',
'shard_metadata_util.cpp',
'shard_server_catalog_cache_loader.cpp',
'shard_server_op_observer.cpp',
'sharding_config_optime_gossip.cpp',
'sharding_initialization_mongod.cpp',
'sharding_runtime_d_params.idl',
'sharding_state_recovery.cpp',
'sharding_statistics.cpp',
'split_chunk.cpp',
'split_vector.cpp',
'start_chunk_clone_request.cpp',
'type_shard_collection.cpp',
'type_shard_collection.idl',
'type_shard_database.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/catalog/multi_index_block',
'$BUILD_DIR/mongo/db/client_metadata_propagation_egress_hook',
'$BUILD_DIR/mongo/db/commands/mongod_fcv',
'$BUILD_DIR/mongo/db/db_raii',
'$BUILD_DIR/mongo/db/dbhelpers',
'$BUILD_DIR/mongo/db/op_observer_impl',
'$BUILD_DIR/mongo/db/ops/write_ops_exec',
'$BUILD_DIR/mongo/db/pipeline/aggregation_request_helper',
'$BUILD_DIR/mongo/db/repl/abstract_async_component',
'$BUILD_DIR/mongo/db/repl/oplog',
'$BUILD_DIR/mongo/db/repl/primary_only_service',
'$BUILD_DIR/mongo/db/repl/wait_for_majority_service',
'$BUILD_DIR/mongo/db/rw_concern_d',
'$BUILD_DIR/mongo/db/server_options_core',
'$BUILD_DIR/mongo/db/storage/remove_saver',
'$BUILD_DIR/mongo/db/transaction',
'$BUILD_DIR/mongo/db/vector_clock_mongod',
'$BUILD_DIR/mongo/s/query/cluster_aggregate',
'$BUILD_DIR/mongo/s/sharding_api',
'$BUILD_DIR/mongo/s/sharding_initialization',
'chunk_splitter',
'sharding_api_d',
'sharding_catalog_manager',
'sharding_logging',
'transaction_coordinator',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/client/clientdriver_minimal',
'$BUILD_DIR/mongo/db/catalog/catalog_helpers',
'$BUILD_DIR/mongo/db/index_builds_coordinator_interface',
'$BUILD_DIR/mongo/db/repl/image_collection_entry',
'$BUILD_DIR/mongo/db/rs_local_client',
'$BUILD_DIR/mongo/db/session_catalog',
'$BUILD_DIR/mongo/idl/server_parameter',
'$BUILD_DIR/mongo/util/future_util',
],
)
env.Library(
target='transaction_coordinator',
source=[
'server_transaction_coordinators_metrics.cpp',
'single_transaction_coordinator_stats.cpp',
'transaction_coordinator_catalog.cpp',
'transaction_coordinator_curop_mongod.cpp',
'transaction_coordinator_document.idl',
'transaction_coordinator_factory_mongod.cpp',
'transaction_coordinator_futures_util.cpp',
'transaction_coordinator_metrics_observer.cpp',
'transaction_coordinator_params.idl',
'transaction_coordinator_service.cpp',
'transaction_coordinator_structures.cpp',
'transaction_coordinator_util.cpp',
'transaction_coordinator_worker_curop_repository_mongod.cpp',
'transaction_coordinator.cpp',
'transaction_coordinators_stats.idl',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/commands/server_status',
'$BUILD_DIR/mongo/db/commands/txn_cmd_request',
'$BUILD_DIR/mongo/db/dbdirectclient',
'$BUILD_DIR/mongo/db/lasterror',
'$BUILD_DIR/mongo/db/repl/wait_for_majority_service',
'$BUILD_DIR/mongo/db/rw_concern_d',
'$BUILD_DIR/mongo/db/transaction',
'$BUILD_DIR/mongo/db/vector_clock_mongod',
'$BUILD_DIR/mongo/executor/task_executor_pool',
'$BUILD_DIR/mongo/s/grid',
'sharding_api_d',
]
)
env.Library(
target='chunk_splitter',
source=[
'chunk_split_state_driver.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/s/chunk_writes_tracker'
],
)
env.Library(
target='sharding_catalog_manager',
source=[
'add_shard_cmd.idl',
'add_shard_util.cpp',
'balancer/balance_stats.cpp',
'balancer/balancer_chunk_selection_policy_impl.cpp',
'balancer/balancer_chunk_selection_policy.cpp',
'balancer/balancer_policy.cpp',
'balancer/balancer.cpp',
'balancer/cluster_statistics_impl.cpp',
'balancer/cluster_statistics.cpp',
'balancer/migration_manager.cpp',
'balancer/scoped_migration_request.cpp',
'balancer/type_migration.cpp',
'config/initial_split_policy.cpp',
'config/sharding_catalog_manager_chunk_operations.cpp',
'config/sharding_catalog_manager_collection_operations.cpp',
'config/sharding_catalog_manager_database_operations.cpp',
'config/sharding_catalog_manager_shard_operations.cpp',
'config/sharding_catalog_manager_zone_operations.cpp',
'config/sharding_catalog_manager.cpp',
'dist_lock_catalog_replset.cpp',
'dist_lock_catalog.cpp',
'dist_lock_manager_replset.cpp',
'dist_lock_manager.cpp',
'drop_collection_legacy.cpp',
'drop_database_legacy.cpp',
'sharding_config_server_parameters.idl',
'sharding_ddl_50_upgrade_downgrade.cpp',
'sharding_ddl_util.cpp',
'sharding_util.cpp',
'type_lockpings.cpp',
'type_locks.cpp',
'type_shard_identity.cpp',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/bson/util/bson_extract',
'$BUILD_DIR/mongo/db/audit',
'$BUILD_DIR/mongo/db/catalog/collection_options',
'$BUILD_DIR/mongo/db/catalog_raii',
'$BUILD_DIR/mongo/db/commands/mongod_fcv',
'$BUILD_DIR/mongo/db/commands/set_feature_compatibility_version_idl',
'$BUILD_DIR/mongo/db/common',
'$BUILD_DIR/mongo/db/dbdirectclient',
'$BUILD_DIR/mongo/db/pipeline/process_interface/shardsvr_process_interface',
'$BUILD_DIR/mongo/db/pipeline/sharded_agg_helpers',
'$BUILD_DIR/mongo/db/repl/hello_command',
'$BUILD_DIR/mongo/db/repl/read_concern_args',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'$BUILD_DIR/mongo/db/repl/replica_set_aware_service',
'$BUILD_DIR/mongo/db/rw_concern_d',
'$BUILD_DIR/mongo/db/snapshot_window_options',
'$BUILD_DIR/mongo/db/transaction',
'$BUILD_DIR/mongo/db/vector_clock_mongod',
'$BUILD_DIR/mongo/executor/network_interface',
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl',
'$BUILD_DIR/mongo/s/client/sharding_client',
'$BUILD_DIR/mongo/s/coreshard',
'$BUILD_DIR/mongo/s/query/cluster_aggregate',
'$BUILD_DIR/mongo/util/log_and_backoff',
'sharding_logging',
],
)
env.Library(
target='sharding_commands_d',
source=[
'add_shard_cmd.cpp',
'auto_split_vector_command.cpp',
'check_sharding_index_command.cpp',
'cleanup_orphaned_cmd.cpp',
'clone_catalog_data_command.cpp',
'clone_collection_options_from_primary_shard_cmd.cpp',
'config/configsvr_abort_reshard_collection_command.cpp',
'config/configsvr_add_shard_command.cpp',
'config/configsvr_add_shard_to_zone_command.cpp',
'config/configsvr_balancer_collection_status_command.cpp',
'config/configsvr_cleanup_reshard_collection_command.cpp',
'config/configsvr_clear_jumbo_flag_command.cpp',
'config/configsvr_commit_chunk_migration_command.cpp',
'config/configsvr_commit_move_primary_command.cpp',
'config/configsvr_commit_reshard_collection_command.cpp',
'config/configsvr_control_balancer_command.cpp',
'config/configsvr_create_database_command.cpp',
'config/configsvr_drop_collection_command.cpp',
'config/configsvr_drop_database_command.cpp',
'config/configsvr_enable_sharding_command.cpp',
'config/configsvr_ensure_chunk_version_is_greater_than_command.cpp',
'config/configsvr_merge_chunk_command.cpp',
'config/configsvr_merge_chunks_command.cpp',
'config/configsvr_move_chunk_command.cpp',
'config/configsvr_move_primary_command.cpp',
'config/configsvr_refine_collection_shard_key_command.cpp',
'config/configsvr_remove_chunks_command.cpp',
'config/configsvr_remove_shard_command.cpp',
'config/configsvr_remove_shard_from_zone_command.cpp',
'config/configsvr_remove_tags_command.cpp',
'config/configsvr_rename_collection_metadata_command.cpp',
'config/configsvr_reshard_collection_cmd.cpp',
'config/configsvr_repair_sharded_collection_chunks_history_command.cpp',
'config/configsvr_set_allow_migrations_command.cpp',
'config/configsvr_shard_collection_command.cpp',
'config/configsvr_split_chunk_command.cpp',
'config/configsvr_update_zone_key_range_command.cpp',
'create_collection_coordinator.cpp',
'create_collection_coordinator_document.idl',
'drop_collection_coordinator.cpp',
'drop_collection_coordinator_document.idl',
'drop_database_coordinator.cpp',
'drop_database_coordinator_document.idl',
'flush_database_cache_updates_command.cpp',
'flush_resharding_state_change_command.cpp',
'flush_routing_table_cache_updates_command.cpp',
'get_database_version_command.cpp',
'forwardable_operation_metadata.cpp',
'forwardable_operation_metadata.idl',
'get_shard_version_command.cpp',
'merge_chunks_command.cpp',
'migration_chunk_cloner_source_legacy_commands.cpp',
'migration_destination_manager_legacy_commands.cpp',
'move_chunk_command.cpp',
'move_primary_coordinator.cpp',
'remove_chunks.idl',
'rename_collection_coordinator.cpp',
'sharded_rename_collection.idl',
'rename_collection_participant_service.cpp',
'refine_collection_shard_key_coordinator.cpp',
'reshard_collection_coordinator.cpp',
'resharding_test_commands.cpp',
'resharding_test_commands.idl',
'set_allow_migrations_coordinator.cpp',
'set_allow_migrations_coordinator_document.idl',
'set_shard_version_command.cpp',
'sharded_index_consistency_server_status.cpp',
'sharding_ddl_coordinator.cpp',
'sharding_ddl_coordinator.idl',
'sharding_ddl_coordinator_service.cpp',
'sharding_server_status.cpp',
'sharding_state_command.cpp',
'shardsvr_abort_reshard_collection_command.cpp',
'shardsvr_cleanup_reshard_collection_command.cpp',
'shardsvr_commit_reshard_collection_command.cpp',
'shardsvr_create_collection_command.cpp',
'shardsvr_create_collection_participant_command.cpp',
'shardsvr_drop_collection_command.cpp',
'shardsvr_drop_collection_if_uuid_not_matching_command.cpp',
'shardsvr_drop_collection_participant_command.cpp',
'shardsvr_drop_database_command.cpp',
'shardsvr_drop_database_participant_command.cpp',
'shardsvr_move_primary_command.cpp',
'shardsvr_refine_collection_shard_key_command.cpp',
'shardsvr_rename_collection_command.cpp',
'shardsvr_rename_collection_participant_command.cpp',
'shardsvr_reshard_collection_command.cpp',
'shardsvr_resharding_operation_time_command.cpp',
'shardsvr_shard_collection_command.cpp',
'shardsvr_set_allow_migrations_command.cpp',
'split_chunk_command.cpp',
'split_vector_command.cpp',
'txn_two_phase_commit_cmds.cpp',
'wait_for_ongoing_chunk_splits_command.cpp',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/bson/dotted_path_support',
'$BUILD_DIR/mongo/db/catalog/catalog_helpers',
'$BUILD_DIR/mongo/db/cloner',
'$BUILD_DIR/mongo/db/commands/create_command',
'$BUILD_DIR/mongo/db/commands/mongod_fcv',
'$BUILD_DIR/mongo/db/commands/server_status',
'$BUILD_DIR/mongo/db/commands/test_commands_enabled',
'$BUILD_DIR/mongo/db/commands/txn_cmd_request',
'$BUILD_DIR/mongo/db/repl/primary_only_service',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
'$BUILD_DIR/mongo/db/repl/replica_set_messages',
'$BUILD_DIR/mongo/db/timeseries/catalog_helper',
'$BUILD_DIR/mongo/db/timeseries/timeseries_index_schema_conversion_functions',
'$BUILD_DIR/mongo/db/timeseries/timeseries_options',
'$BUILD_DIR/mongo/s/commands/shared_cluster_commands',
'$BUILD_DIR/mongo/s/sharding_initialization',
'$BUILD_DIR/mongo/s/sharding_router_api',
'sharding_runtime_d',
],
)
env.Library(
target='sessions_collection_config_server',
source=[
'sessions_collection_config_server.cpp',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/dbdirectclient',
'$BUILD_DIR/mongo/db/pipeline/sharded_agg_helpers',
'$BUILD_DIR/mongo/s/sessions_collection_sharded',
'$BUILD_DIR/mongo/s/sharding_api',
]
)
env.Library(
target='sharding_logging',
source=[
'sharding_logging.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_impl',
'sharding_api_d',
],
)
env.Library(
target='sharding_mongod_test_fixture',
source=[
'sharding_mongod_test_fixture.cpp',
'resharding/resharding_service_test_helpers.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/repl/drop_pending_collection_reaper',
'$BUILD_DIR/mongo/db/repl/replmocks',
'$BUILD_DIR/mongo/db/service_context_d_test_fixture',
'$BUILD_DIR/mongo/s/sharding_test_fixture_common',
'sharding_runtime_d',
],
)
env.Library(
target='shard_server_test_fixture',
source=[
'shard_server_test_fixture.cpp',
],
LIBDEPS=[
'sharding_mongod_test_fixture',
],
)
env.Library(
target='config_server_test_fixture',
source=[
'config/config_server_test_fixture.cpp',
],
LIBDEPS=[
'sharding_mongod_test_fixture',
],
)
env.CppUnitTest(
target='db_s_shard_server_test',
source=[
'active_migrations_registry_test.cpp',
'active_move_primaries_registry_test.cpp',
'active_shard_collection_registry_test.cpp',
'auto_split_vector_test.cpp',
'balancer/balance_stats_test.cpp',
'chunk_split_state_driver_test.cpp',
'collection_metadata_filtering_test.cpp',
'collection_metadata_test.cpp',
'collection_sharding_runtime_test.cpp',
'database_sharding_state_test.cpp',
'dist_lock_catalog_mock.cpp',
'dist_lock_catalog_replset_test.cpp',
'dist_lock_manager_replset_test.cpp',
'implicit_collection_creation_test.cpp',
'metadata_manager_test.cpp',
'migration_chunk_cloner_source_legacy_test.cpp',
'migration_destination_manager_test.cpp',
'migration_session_id_test.cpp',
'migration_util_test.cpp',
'namespace_metadata_change_notifications_test.cpp',
'op_observer_sharding_test.cpp',
'persistent_task_queue_test.cpp',
'range_deletion_util_test.cpp',
'resharding_collection_test.cpp',
'resharding_destined_recipient_test.cpp',
'resharding/resharding_agg_test.cpp',
'resharding/resharding_collection_cloner_test.cpp',
'resharding/resharding_data_replication_test.cpp',
'resharding/resharding_donor_oplog_iterator_test.cpp',
'resharding/resharding_donor_recipient_common_test.cpp',
'resharding/resharding_donor_service_test.cpp',
'resharding/resharding_future_util_test.cpp',
'resharding/resharding_metrics_test.cpp',
'resharding/resharding_oplog_applier_test.cpp',
'resharding/resharding_oplog_batch_applier_test.cpp',
'resharding/resharding_oplog_batch_preparer_test.cpp',
'resharding/resharding_oplog_crud_application_test.cpp',
'resharding/resharding_oplog_fetcher_test.cpp',
'resharding/resharding_oplog_session_application_test.cpp',
'resharding/resharding_recipient_service_external_state_test.cpp',
'resharding/resharding_recipient_service_test.cpp',
'resharding/resharding_donor_service_test.cpp',
'resharding/resharding_txn_cloner_test.cpp',
'session_catalog_migration_destination_test.cpp',
'session_catalog_migration_source_test.cpp',
'shard_local_test.cpp',
'shard_metadata_util_test.cpp',
'shard_server_catalog_cache_loader_test.cpp',
'sharding_initialization_mongod_test.cpp',
'sharding_initialization_op_observer_test.cpp',
'sharding_logging_test.cpp',
'split_vector_test.cpp',
'start_chunk_clone_request_test.cpp',
'transaction_coordinator_catalog_test.cpp',
'transaction_coordinator_futures_util_test.cpp',
'transaction_coordinator_service_test.cpp',
'transaction_coordinator_structures_test.cpp',
'transaction_coordinator_test_fixture.cpp',
'transaction_coordinator_test.cpp',
'type_shard_collection_test.cpp',
'type_shard_identity_test.cpp',
'vector_clock_shard_server_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/client/remote_command_targeter_mock',
'$BUILD_DIR/mongo/db/auth/authmocks',
'$BUILD_DIR/mongo/db/commands/server_status',
'$BUILD_DIR/mongo/db/keys_collection_client_direct',
'$BUILD_DIR/mongo/db/logical_session_cache_impl',
'$BUILD_DIR/mongo/db/ops/write_ops_exec',
'$BUILD_DIR/mongo/db/pipeline/document_source_mock',
'$BUILD_DIR/mongo/db/pipeline/expression_context',
'$BUILD_DIR/mongo/db/pipeline/process_interface/shardsvr_process_interface',
'$BUILD_DIR/mongo/db/query/query_request',
'$BUILD_DIR/mongo/db/query/query_test_service_context',
'$BUILD_DIR/mongo/db/repl/image_collection_entry',
'$BUILD_DIR/mongo/db/repl/mock_repl_coord_server_fixture',
'$BUILD_DIR/mongo/db/repl/oplog_application',
'$BUILD_DIR/mongo/db/repl/oplog_interface_local',
'$BUILD_DIR/mongo/db/repl/primary_only_service_test_fixture',
'$BUILD_DIR/mongo/db/repl/replmocks',
'$BUILD_DIR/mongo/db/repl/storage_interface_impl',
'$BUILD_DIR/mongo/db/repl/wait_for_majority_service',
'$BUILD_DIR/mongo/executor/thread_pool_task_executor_test_fixture',
'$BUILD_DIR/mongo/s/catalog/sharding_catalog_client_mock',
'$BUILD_DIR/mongo/s/sharding_router_test_fixture',
'shard_server_test_fixture',
'sharding_commands_d',
'sharding_logging',
'transaction_coordinator',
],
)
env.CppUnitTest(
target='db_s_config_server_test',
source=[
'balancer/balancer_chunk_selection_policy_test.cpp',
'balancer/balancer_policy_test.cpp',
'balancer/cluster_statistics_test.cpp',
'balancer/core_options_stub.cpp',
'balancer/migration_manager_test.cpp',
'balancer/migration_test_fixture.cpp',
'balancer/scoped_migration_request_test.cpp',
'balancer/type_migration_test.cpp',
'config_server_op_observer_test.cpp',
'config/initial_split_policy_test.cpp',
'config/sharding_catalog_manager_add_shard_test.cpp',
'config/sharding_catalog_manager_add_shard_to_zone_test.cpp',
'config/sharding_catalog_manager_assign_key_range_to_zone_test.cpp',
'config/sharding_catalog_manager_bump_shard_versions_and_change_metadata_test.cpp',
'config/sharding_catalog_manager_clear_jumbo_flag_test.cpp',
'config/sharding_catalog_manager_commit_chunk_migration_test.cpp',
'config/sharding_catalog_manager_config_initialization_test.cpp',
'config/sharding_catalog_manager_drop_coll_test.cpp',
'config/sharding_catalog_manager_ensure_chunk_version_is_greater_than_test.cpp',
'config/sharding_catalog_manager_merge_chunks_test.cpp',
'config/sharding_catalog_manager_remove_shard_from_zone_test.cpp',
'config/sharding_catalog_manager_remove_shard_test.cpp',
'config/sharding_catalog_manager_shard_collection_test.cpp',
'config/sharding_catalog_manager_split_chunk_test.cpp',
'resharding/resharding_coordinator_commit_monitor_test.cpp',
'resharding/resharding_coordinator_observer_test.cpp',
'resharding/resharding_coordinator_test.cpp',
'resharding/resharding_coordinator_service_test.cpp',
'resharding/resharding_util_test.cpp',
'sharding_ddl_util_test.cpp',
'sharding_util_refresh_test.cpp',
'topology_time_ticker_test.cpp',
'type_lockpings_test.cpp',
'type_locks_test.cpp',
'vector_clock_config_server_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/auth/authmocks',
'$BUILD_DIR/mongo/db/commands/set_feature_compatibility_version_idl',
'$BUILD_DIR/mongo/db/pipeline/document_source_mock',
'$BUILD_DIR/mongo/db/read_write_concern_defaults_mock',
'$BUILD_DIR/mongo/db/repl/replication_info',
'$BUILD_DIR/mongo/util/version_impl',
'config_server_test_fixture',
],
)
env.Benchmark(
target="sharding_write_router_bm",
source=["sharding_write_router_bm.cpp"],
LIBDEPS=[
"$BUILD_DIR/mongo/db/auth/authmocks",
"$BUILD_DIR/mongo/s/grid",
"$BUILD_DIR/mongo/s/sharding_test_fixture_common",
"sharding_api_d",
"sharding_runtime_d",
],
)
|