Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,6 @@ public void decrementPendingBulkRequests() {
pendingBulkRequests.decrementAndGet();
}

// --- Backpressure ---

public void recordBackpressureEvent() {
backpressureEvents.increment();
}

// --- Promotion metrics (dynamic tags) ---

public void recordPromotionSuccess(String entityType) {
Expand Down Expand Up @@ -323,16 +317,4 @@ public void recordCircuitBreakerTrip(String transition) {
.register(meterRegistry))
.increment();
}

// --- Vector timeouts ---

public void recordVectorTimeout(int pendingCount) {
vectorTimeouts.increment();
}

// --- Queue fill ratio ---

public void updateQueueFillRatio(int percent) {
queueFillRatio.set(percent);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -339,22 +339,6 @@ void testPendingBulkRequests() {
}
}

@Nested
@DisplayName("Backpressure")
class BackpressureTests {

@Test
@DisplayName("recordBackpressureEvent increments counter")
void testRecordBackpressureEvent() {
ReindexingMetrics metrics = ReindexingMetrics.getInstance();
metrics.recordBackpressureEvent();
metrics.recordBackpressureEvent();
metrics.recordBackpressureEvent();

assertEquals(3, getCounterValue("reindexing.backpressure.events"));
}
}

@Nested
@DisplayName("Promotion Metrics")
class PromotionTests {
Expand Down
Loading