Skip to content

apollo_storage: add DynamicConfigProvider trait for storage reader server#12876

Open
nadin-Starkware wants to merge 1 commit into02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabledfrom
02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server
Open

apollo_storage: add DynamicConfigProvider trait for storage reader server#12876
nadin-Starkware wants to merge 1 commit into02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabledfrom
02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server

Conversation

@nadin-Starkware
Copy link
Collaborator

@nadin-Starkware nadin-Starkware commented Feb 26, 2026

Note

Medium Risk
Changes the storage reader HTTP server to consult an async dynamic config source on every request and threads a new provider dependency through storage initialization across multiple components; misconfiguration or provider failures can now cause 500s/availability changes at runtime.

Overview
Storage reader server enablement is now truly dynamic. The server no longer relies on a fixed enabled flag captured at startup; it calls a new async DynamicConfigProvider on each /storage/query request and returns 503 when the latest config disables the endpoint.

This introduces DynamicConfigProvider/SharedDynamicConfigProvider (plus DynamicConfigError) in apollo_storage, updates StorageReaderServer::new/create_storage_reader_server and open_storage_with_metric_and_server to require a provider, and wires concrete providers in batcher, class_manager storage, and state_sync to fetch dynamic config from config_manager_client (with tests updated to use stub providers).

Written by Cursor Bugbot for commit d29278c. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

@github-actions
Copy link

github-actions bot commented Feb 26, 2026

Copy link
Collaborator Author

nadin-Starkware commented Feb 26, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@nadin-Starkware nadin-Starkware force-pushed the 02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server branch from c145a93 to 1a3379f Compare February 26, 2026 10:04
@nadin-Starkware nadin-Starkware force-pushed the 02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabled branch from 2cf61c8 to 0fee538 Compare February 26, 2026 13:10
@nadin-Starkware nadin-Starkware force-pushed the 02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server branch from 1a3379f to b24f87e Compare February 26, 2026 13:10
@nadin-Starkware nadin-Starkware force-pushed the 02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabled branch from 0fee538 to 71fd13d Compare February 26, 2026 16:22
@nadin-Starkware nadin-Starkware force-pushed the 02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server branch from b24f87e to 938a6ac Compare February 26, 2026 16:22
@nadin-Starkware nadin-Starkware force-pushed the 02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabled branch from 71fd13d to 32b347d Compare February 26, 2026 16:40
@nadin-Starkware nadin-Starkware force-pushed the 02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server branch from 938a6ac to 062d992 Compare February 26, 2026 16:40
@nadin-Starkware nadin-Starkware force-pushed the 02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabled branch from 32b347d to c63745d Compare February 26, 2026 17:05
@nadin-Starkware nadin-Starkware force-pushed the 02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server branch from 062d992 to 9af2095 Compare February 26, 2026 17:05
@nadin-Starkware nadin-Starkware force-pushed the 02-24-apollo_storage_always_spawn_storage_reader_server_return_503_when_disabled branch from c63745d to be9e90b Compare March 1, 2026 07:44
@nadin-Starkware nadin-Starkware force-pushed the 02-26-apollo_storage_add_dynamicconfigprovider_trait_for_storage_reader_server branch from 9af2095 to d29278c Compare March 1, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants