X-Telemt-Retry-After-Ms added

This commit is contained in:
Alexey
2026-10-31 13:22:59 +03:00
parent b144075b73
commit ed2139502f
20 changed files with 81 additions and 32 deletions
+2 -6
View File
@@ -68,7 +68,6 @@ struct FamilyFloorPlan {
warm_writers_current: usize,
}
#[cfg(test)]
struct ScheduledReconnects<'a> {
inflight: &'a mut HashMap<(i32, IpFamily), usize>,
@@ -77,7 +76,6 @@ struct ScheduledReconnects<'a> {
#[cfg(test)]
impl ScheduledReconnects<'_> {
fn reserve(&mut self, key: (i32, IpFamily)) {
self.keys.push(key);
*self.inflight.entry(key).or_insert(0) += 1;
@@ -119,17 +117,15 @@ mod recovery;
// Independent stale draining-writer watchdog.
mod zombie_watchdog;
pub use drain::me_drain_timeout_enforcer;
#[cfg(test)]
pub(in crate::transport::middle_proxy) use drain::health_drain_close_budget;
pub use drain::me_drain_timeout_enforcer;
pub(in crate::transport::middle_proxy) use drain::reap_draining_writers;
use family::{check_family, update_family_runtime_state};
use floor_plan::build_family_floor_plan;
use idle_refresh::maybe_refresh_idle_writer_for_dc;
pub use monitor::me_health_monitor;
use recovery::{
has_bound_clients_on_endpoint, maybe_rotate_single_endpoint_shadow,
};
use recovery::{has_bound_clients_on_endpoint, maybe_rotate_single_endpoint_shadow};
pub use zombie_watchdog::me_zombie_writer_watchdog;
#[cfg(test)]
@@ -1,7 +1,5 @@
use super::*;
pub(super) fn adaptive_floor_class_min(
pool: &Arc<MePool>,
endpoint_count: usize,
@@ -1,6 +1,5 @@
use super::*;
pub(super) async fn maybe_refresh_idle_writer_for_dc(
pool: &Arc<MePool>,
rng: &Arc<SecureRandom>,
@@ -193,7 +193,6 @@ impl MePool {
self.refill_states.lock().contains_key(&key)
}
pub(super) async fn connect_endpoints_round_robin_with_generation_contour(
self: &Arc<Self>,
dc: i32,
@@ -169,7 +169,6 @@ impl MePool {
}
}
/// Reconciles exactly the revision owned by the scheduler's retry objective.
pub(in crate::transport::middle_proxy) async fn reinit_endpoint_snapshot(
self: &Arc<Self>,
@@ -408,5 +407,4 @@ impl MePool {
}
true
}
}
+4 -1
View File
@@ -57,7 +57,10 @@ pub(super) enum WriterReplacementPurpose {
/// Moves one idle slot from a donor above floor to a receiver below floor.
#[cfg_attr(
not(test),
expect(dead_code, reason = "Legacy purpose is exercised by commit-fence regression tests")
expect(
dead_code,
reason = "Legacy purpose is exercised by commit-fence regression tests"
)
)]
FloorRebalance {
/// Minimum writer count that must remain in the donor group.
@@ -407,7 +407,6 @@ impl MePool {
removed
}
/// Publishes drain metadata before the release-store that makes draining observable.
pub(in crate::transport::middle_proxy) fn apply_writer_draining_state(
&self,
@@ -441,7 +440,6 @@ impl MePool {
!already_draining
}
pub(in crate::transport::middle_proxy) fn writer_accepts_new_binding(
&self,
writer: &MeWriter,