You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by gi...@apache.org on 2026/09/10 16:21:03 UTC
(seatunnel) branch gh-readonly-queue/dev/pr-12107-05472d8bd66a34311a41269f7ad902b85f21cf95 created (now 98ff97a743)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a change to branch gh-readonly-queue/dev/pr-12107-05472d8bd66a34311a41269f7ad902b85f21cf95
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
at 98ff97a743 [Test][E2E] Add sustained backpressure IT for fast source vs slow sink (#12107)
This branch includes the following new commits:
new 98ff97a743 [Test][E2E] Add sustained backpressure IT for fast source vs slow sink (#12107)
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(seatunnel) 01/01: [Test][E2E] Add sustained backpressure IT for fast source vs slow sink (#12107)
Posted by gi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/dev/pr-12107-05472d8bd66a34311a41269f7ad902b85f21cf95
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit 98ff97a743a175242a5c79087afbdb5feb0db684
Author: David Zollo <da...@gmail.com>
AuthorDate: Thu Sep 10 15:44:44 2026 +0000
[Test][E2E] Add sustained backpressure IT for fast source vs slow sink (#12107)
---
.../e2e/sink/inmemory/InMemorySinkFactory.java | 12 +
.../e2e/sink/inmemory/InMemorySinkWriter.java | 13 +
.../engine/e2e/BackpressureSlowSinkIT.java | 335 +++++++++++++++++++++
...t_fakesource_to_slow_inmemory_backpressure.conf | 67 +++++
4 files changed, 427 insertions(+)
diff --git a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkFactory.java b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkFactory.java
index 674d69584c..e34f4333ab 100644
--- a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkFactory.java
+++ b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkFactory.java
@@ -44,6 +44,17 @@ public class InMemorySinkFactory
public static final Option<Boolean> WRITER_SLEEP =
Options.key("writer_sleep").booleanType().defaultValue(false);
+ /**
+ * Per-record artificial delay (milliseconds) applied inside the writer's {@code write()}
+ * method. Unlike {@link #WRITER_SLEEP} (which blocks a single record forever to simulate a
+ * stuck slot), this option is graduated and tunable: it throttles sustained write throughput to
+ * a fixed rate so tests can construct a deliberately slow-but-alive sink and observe how the
+ * engine handles sustained backpressure from a fast source. Default 0 means no delay (existing
+ * behavior of every other test using this sink is unaffected).
+ */
+ public static final Option<Long> WRITE_DELAY_MS =
+ Options.key("write_delay_ms").longType().defaultValue(0L);
+
public static final Option<Boolean> THROW_OUT_OF_MEMORY =
Options.key("throw_out_of_memory").booleanType().defaultValue(false);
public static final Option<Boolean> CHECKPOINT_SLEEP =
@@ -71,6 +82,7 @@ public class InMemorySinkFactory
THROW_EXCEPTION,
THROW_OUT_OF_MEMORY,
WRITER_SLEEP,
+ WRITE_DELAY_MS,
CHECKPOINT_SLEEP,
THROW_EXCEPTION_OF_COMMITTER,
ASSERT_OPTIONS_KEY,
diff --git a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkWriter.java b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkWriter.java
index b5dc29e41c..ffce5fbaab 100644
--- a/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkWriter.java
+++ b/seatunnel-e2e/seatunnel-e2e-common/src/test/java/org/apache/seatunnel/e2e/sink/inmemory/InMemorySinkWriter.java
@@ -87,6 +87,19 @@ public class InMemorySinkWriter
}
}
+ long writeDelayMs = config.get(InMemorySinkFactory.WRITE_DELAY_MS);
+ if (writeDelayMs > 0) {
+ // Throttle this writer to simulate a slow/rate-limited sink: sleeping here (on the
+ // sink task's own thread) keeps it from draining the bounded intermediate queue,
+ // which is exactly the condition needed to exercise sustained source->sink
+ // backpressure in tests.
+ try {
+ Thread.sleep(writeDelayMs);
+ } catch (InterruptedException e) {
+ throw new RuntimeException(e);
+ }
+ }
+
if (config.get(InMemorySinkFactory.THROW_OUT_OF_MEMORY)) {
throw new OutOfMemoryError();
}
diff --git a/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/BackpressureSlowSinkIT.java b/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/BackpressureSlowSinkIT.java
new file mode 100644
index 0000000000..decca6e307
--- /dev/null
+++ b/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/BackpressureSlowSinkIT.java
@@ -0,0 +1,335 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.engine.e2e;
+
+import org.apache.seatunnel.engine.client.SeaTunnelClient;
+import org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment;
+import org.apache.seatunnel.engine.client.job.ClientJobProxy;
+import org.apache.seatunnel.engine.common.config.ConfigProvider;
+import org.apache.seatunnel.engine.common.config.JobConfig;
+import org.apache.seatunnel.engine.common.config.SeaTunnelConfig;
+import org.apache.seatunnel.engine.common.job.JobStatus;
+import org.apache.seatunnel.engine.server.SeaTunnelServerStarter;
+import org.apache.seatunnel.engine.server.rest.RestConstant;
+
+import org.awaitility.Awaitility;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+
+import com.hazelcast.client.config.ClientConfig;
+import com.hazelcast.instance.impl.HazelcastInstanceImpl;
+import io.restassured.common.mapper.TypeRef;
+import lombok.extern.slf4j.Slf4j;
+
+import java.io.IOException;
+import java.net.ServerSocket;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.concurrent.TimeUnit;
+
+import static io.restassured.RestAssured.given;
+
+/**
+ * Scale/stress E2E coverage for sustained backpressure between a fast source and a deliberately
+ * slow sink (Tier 3, item L1 of the Zeta extreme-case gap analysis).
+ *
+ * <p>The job pairs a {@code FakeSource} that produces as fast as the JVM allows
+ * (split.read-interval = 0, a very large row.num) with an {@code InMemory} sink throttled to a
+ * fixed ~500 rows/sec via {@code write_delay_ms}. Because the sink's writer thread is also the
+ * thread that drains Zeta's bounded source-to-sink intermediate queue (an {@code
+ * ArrayBlockingQueue} of fixed capacity, see {@code
+ * TaskGroupWithIntermediateBlockingQueue#QUEUE_SIZE}), a slow writer keeps that queue saturated for
+ * as long as the job runs, which in turn blocks the source's own enqueue calls. This is exactly the
+ * "fast source outruns slow sink" condition the rest of this E2E suite has no coverage for.
+ *
+ * <p>What is asserted, and why each assertion is meaningful:
+ *
+ * <ul>
+ * <li>The job stays {@code RUNNING} for the whole sustained window - no crash, no OOM, no stuck
+ * state, despite the queue being kept full for tens of seconds.
+ * <li>The checkpoint-overview REST API's completed-checkpoint counter for the job's single
+ * pipeline never regresses and grows by a healthy minimum across the window - i.e.
+ * checkpoints keep completing on their configured schedule even while backpressure is
+ * continuously in effect, not just once before backpressure kicks in.
+ * <li>(Stronger, supplementary signal) The realtime-observability edges API reports a stable,
+ * positive queue capacity throughout - confirming the intermediate queue is a genuinely
+ * bounded structure, not something that silently grows - and a positive {@code emitBlockedNs}
+ * - confirming the fast source was actually measured blocking on that full queue, i.e. real
+ * backpressure was enforced end-to-end rather than merely "the job didn't crash".
+ * </ul>
+ */
+@Slf4j
+public class BackpressureSlowSinkIT {
+
+ private static final String HOST = "http://localhost:";
+
+ private static final String CONF_FILE =
+ "stream_fast_fakesource_to_slow_inmemory_backpressure.conf";
+
+ /** How long to sustain the slow-sink backpressure condition before asserting and stopping. */
+ private static final long BACKPRESSURE_WINDOW_MS = TimeUnit.SECONDS.toMillis(90);
+
+ /** Sampling cadence for checkpoint/queue observations during the sustained window. */
+ private static final long POLL_INTERVAL_MS = TimeUnit.SECONDS.toMillis(10);
+
+ /**
+ * Window requested from the realtime-metrics edges API on each poll; wide enough to always
+ * contain the freshest completed metrics bucket (bucket_ms defaults to 5000).
+ */
+ private static final long REALTIME_METRICS_WINDOW_MS = TimeUnit.SECONDS.toMillis(20);
+
+ /**
+ * Conservative lower bound for how many additional checkpoints must complete during {@link
+ * #BACKPRESSURE_WINDOW_MS}. This is well below the nominal count implied by {@code
+ * checkpoint.interval = 15000} in {@link #CONF_FILE} (~6 over 90s) to absorb job startup
+ * ramp-up and CI scheduling slack while still proving checkpoints keep completing repeatedly,
+ * not just once.
+ */
+ private static final long MIN_NEW_COMPLETED_CHECKPOINTS = 3;
+
+ private HazelcastInstanceImpl node;
+ private SeaTunnelClient engineClient;
+ private SeaTunnelConfig config;
+ private ClientJobProxy jobProxy;
+
+ @BeforeEach
+ void beforeEach() throws Exception {
+ String testClusterName = TestUtils.getClusterName("BackpressureSlowSinkIT");
+ config = ConfigProvider.locateAndGetSeaTunnelConfig();
+ config.getEngineConfig().getHttpConfig().setPort(getAvailablePort());
+ config.getEngineConfig().getHttpConfig().setEnabled(true);
+ config.getHazelcastConfig().setClusterName(testClusterName);
+ config.getEngineConfig().getSlotServiceConfig().setDynamicSlot(false);
+ config.getEngineConfig().getSlotServiceConfig().setSlotNum(20);
+ node = SeaTunnelServerStarter.createHazelcastInstance(config);
+
+ String filePath = TestUtils.getResource(CONF_FILE);
+ JobConfig jobConfig = new JobConfig();
+ jobConfig.setName("backpressure_slow_sink_it");
+
+ ClientConfig clientConfig = ConfigProvider.locateAndGetClientConfig();
+ clientConfig.setClusterName(testClusterName);
+ engineClient = new SeaTunnelClient(clientConfig);
+ ClientJobExecutionEnvironment jobExecutionEnv =
+ engineClient.createExecutionContext(filePath, jobConfig, config);
+
+ jobProxy = jobExecutionEnv.execute();
+ Awaitility.await()
+ .atMost(2, TimeUnit.MINUTES)
+ .untilAsserted(
+ () -> Assertions.assertEquals(JobStatus.RUNNING, jobProxy.getJobStatus()));
+ }
+
+ @AfterEach
+ void afterEach() {
+ try {
+ if (jobProxy != null) {
+ JobStatus status = jobProxy.getJobStatus();
+ if (status != null && !status.isEndState()) {
+ jobProxy.cancelJob();
+ }
+ }
+ } catch (Exception e) {
+ log.warn("Failed to cancel the streaming job during teardown", e);
+ }
+ if (engineClient != null) {
+ engineClient.close();
+ }
+ if (node != null) {
+ node.shutdown();
+ }
+ }
+
+ /**
+ * Runs the fast-source/slow-sink job for a sustained window and verifies the job stays healthy
+ * while its checkpoints keep completing on schedule, then supplements that with a
+ * realtime-metrics-based proof that the intermediate queue is genuinely bounded and that real
+ * backpressure (not silent unbounded buffering) is what is happening.
+ *
+ * @throws Exception if polling the cluster's REST endpoints fails unexpectedly
+ */
+ @Test
+ public void testCheckpointsKeepCompletingUnderSustainedBackpressure() throws Exception {
+ String checkpointBaseUrl =
+ HOST
+ + config.getEngineConfig().getHttpConfig().getPort()
+ + config.getEngineConfig().getHttpConfig().getContextPath();
+ String metricsBaseUrl = HOST + config.getEngineConfig().getHttpConfig().getPort();
+ long jobId = jobProxy.getJobId();
+
+ // Wait for the first checkpoint so the sampling loop below always starts from a
+ // well-defined baseline instead of racing the job's own startup.
+ Awaitility.await()
+ .atMost(2, TimeUnit.MINUTES)
+ .pollInterval(2, TimeUnit.SECONDS)
+ .untilAsserted(
+ () -> {
+ Assertions.assertEquals(JobStatus.RUNNING, jobProxy.getJobStatus());
+ Map<String, Object> overview =
+ getCheckpointOverview(jobId, checkpointBaseUrl);
+ List<Map<String, Object>> pipelines =
+ castList(overview.get("pipelines"));
+ Assertions.assertFalse(pipelines.isEmpty());
+ Map<String, Object> counts = castMap(pipelines.get(0).get("counts"));
+ Assertions.assertTrue(getLong(counts, "completed") >= 1L);
+ });
+
+ List<Long> completedSamples = new ArrayList<>();
+ List<Long> queueCapacitySamples = new ArrayList<>();
+ List<Long> blockedNsSamples = new ArrayList<>();
+
+ long deadline = System.currentTimeMillis() + BACKPRESSURE_WINDOW_MS;
+ while (System.currentTimeMillis() < deadline) {
+ // The job must stay healthy throughout - no crash, no failure, no stuck state - while
+ // the slow sink keeps the intermediate queue saturated.
+ Assertions.assertEquals(
+ JobStatus.RUNNING,
+ jobProxy.getJobStatus(),
+ "job must remain RUNNING throughout the sustained backpressure window");
+
+ Map<String, Object> overview = getCheckpointOverview(jobId, checkpointBaseUrl);
+ List<Map<String, Object>> pipelines = castList(overview.get("pipelines"));
+ Assertions.assertFalse(pipelines.isEmpty(), "checkpoint overview has no pipelines");
+ Map<String, Object> counts = castMap(pipelines.get(0).get("counts"));
+ Assertions.assertEquals(
+ 0L,
+ getLong(counts, "failed"),
+ "no checkpoint should fail while the slow sink is applying backpressure");
+ completedSamples.add(getLong(counts, "completed"));
+
+ Map<String, Object> edgesResp = getEdgesMetrics(jobId, metricsBaseUrl);
+ List<Map<String, Object>> edges = castList(edgesResp.get("edges"));
+ if (!edges.isEmpty()) {
+ List<Map<String, Object>> points = castList(edges.get(0).get("points"));
+ if (!points.isEmpty()) {
+ Map<String, Object> latestPoint = castMap(points.get(points.size() - 1));
+ queueCapacitySamples.add(getLong(latestPoint, "queueCapacity"));
+ blockedNsSamples.add(getLong(latestPoint, "emitBlockedNs"));
+ }
+ }
+
+ Thread.sleep(POLL_INTERVAL_MS);
+ }
+
+ // 1. Checkpoints kept completing throughout the window, not just once at the very start:
+ // the completed count must never regress, and must grow by a healthy minimum over the
+ // whole sustained-backpressure window.
+ Assertions.assertTrue(
+ completedSamples.size() >= 3,
+ "expected multiple checkpoint-overview polls, got " + completedSamples.size());
+ for (int i = 1; i < completedSamples.size(); i++) {
+ Assertions.assertTrue(
+ completedSamples.get(i) >= completedSamples.get(i - 1),
+ "completed checkpoint count must never regress across polls: "
+ + completedSamples);
+ }
+ long newlyCompleted =
+ completedSamples.get(completedSamples.size() - 1) - completedSamples.get(0);
+ Assertions.assertTrue(
+ newlyCompleted >= MIN_NEW_COMPLETED_CHECKPOINTS,
+ String.format(
+ "expected at least %d additional checkpoints to complete during the %ds "
+ + "sustained backpressure window, only observed %d (samples=%s)",
+ MIN_NEW_COMPLETED_CHECKPOINTS,
+ BACKPRESSURE_WINDOW_MS / 1000,
+ newlyCompleted,
+ completedSamples));
+
+ // 2. The source->sink intermediate queue is a genuinely bounded queue (backed by a
+ // fixed-capacity ArrayBlockingQueue in the engine), not an unbounded buffer: its reported
+ // capacity is a stable, positive number throughout the run.
+ Assertions.assertFalse(
+ queueCapacitySamples.isEmpty(),
+ "no queue-capacity samples observed from the realtime-metrics edges API; "
+ + "is engine.observability.enabled wired correctly?");
+ for (long capacity : queueCapacitySamples) {
+ Assertions.assertTrue(
+ capacity > 0,
+ "intermediate queue capacity must be a positive, finite bound: "
+ + queueCapacitySamples);
+ }
+
+ // 3. The fast source was actually blocked trying to enqueue into that bounded, full
+ // queue - i.e. real backpressure was enforced end-to-end, not silently absorbed into
+ // unbounded memory.
+ long maxBlockedNs = blockedNsSamples.stream().mapToLong(Long::longValue).max().orElse(0L);
+ Assertions.assertTrue(
+ maxBlockedNs > 0,
+ "expected the fast source to be measurably blocked enqueuing into the bounded "
+ + "intermediate queue while the sink was throttled (emitBlockedNs should "
+ + "be > 0 for at least one sample); got "
+ + blockedNsSamples);
+
+ // 4. Final health check after sustaining backpressure for the whole window.
+ Assertions.assertEquals(JobStatus.RUNNING, jobProxy.getJobStatus());
+ }
+
+ private Map<String, Object> getCheckpointOverview(long jobId, String baseUrl) {
+ return given().get(baseUrl + RestConstant.REST_URL_CHECKPOINT_OVERVIEW + "/" + jobId)
+ .then()
+ .statusCode(200)
+ .extract()
+ .as(new TypeRef<Map<String, Object>>() {});
+ }
+
+ private Map<String, Object> getEdgesMetrics(long jobId, String baseUrl) {
+ return given().get(
+ baseUrl
+ + "/metrics/realtime/jobs/"
+ + jobId
+ + "/edges?windowMs="
+ + REALTIME_METRICS_WINDOW_MS)
+ .then()
+ .statusCode(200)
+ .extract()
+ .as(new TypeRef<Map<String, Object>>() {});
+ }
+
+ @SuppressWarnings("unchecked")
+ private <T> List<T> castList(Object value) {
+ if (value == null) {
+ return Collections.emptyList();
+ }
+ return (List<T>) value;
+ }
+
+ @SuppressWarnings("unchecked")
+ private Map<String, Object> castMap(Object value) {
+ if (value == null) {
+ return Collections.emptyMap();
+ }
+ return (Map<String, Object>) value;
+ }
+
+ private long getLong(Map<String, Object> source, String key) {
+ Object value = source.get(key);
+ return value instanceof Number ? ((Number) value).longValue() : 0L;
+ }
+
+ private static int getAvailablePort() {
+ try (ServerSocket socket = new ServerSocket(0)) {
+ return socket.getLocalPort();
+ } catch (IOException e) {
+ throw new IllegalStateException("No available port for BackpressureSlowSinkIT", e);
+ }
+ }
+}
diff --git a/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/resources/stream_fast_fakesource_to_slow_inmemory_backpressure.conf b/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/resources/stream_fast_fakesource_to_slow_inmemory_backpressure.conf
new file mode 100644
index 0000000000..6af2e08bd8
--- /dev/null
+++ b/seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/resources/stream_fast_fakesource_to_slow_inmemory_backpressure.conf
@@ -0,0 +1,67 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+######
+###### Used by BackpressureSlowSinkIT: a fast, effectively-unbounded FakeSource paired with a
+###### deliberately throttled InMemory sink (write_delay_ms) to force sustained backpressure
+###### through Zeta's bounded source->sink intermediate queue. checkpoint.interval and
+###### write_delay_ms are chosen with a wide safety margin against the queue's default 2048
+###### capacity and the FakeSource reader's 4096-rows-per-poll batch cap, so that checkpoint
+###### barriers keep completing well inside their configured interval even while the queue stays
+###### saturated. See BackpressureSlowSinkIT for the constants that must stay in sync with this
+###### file (CHECKPOINT_INTERVAL_MS, and the write_delay_ms this relies on being "slow").
+######
+
+env {
+ job.mode = "STREAMING"
+ checkpoint.interval = 15000
+ parallelism = 1
+
+ # Enables Zeta's realtime observability metrics (queue size/capacity, put-blocked time) so the
+ # test can observe, via REST, that the intermediate queue is genuinely bounded and that the
+ # source is actually being blocked enqueuing into it.
+ engine {
+ observability {
+ enabled = true
+ }
+ }
+}
+
+source {
+ # STREAMING FakeSource never signals completion regardless of row.num, so a huge row.num here
+ # simply guarantees the source will not run dry over the test's sustained backpressure window;
+ # split.read-interval = 0 keeps per-row overhead minimal so the source is never the bottleneck.
+ FakeSource {
+ row.num = 10000000
+ split.num = 1
+ split.read-interval = 0
+ schema = {
+ fields {
+ c_int = int
+ c_string = string
+ }
+ }
+ }
+}
+
+sink {
+ InMemory {
+ # ~500 rows/sec per subtask: orders of magnitude slower than the unthrottled FakeSource above,
+ # enough to keep the bounded intermediate queue saturated for the whole test, while still
+ # comfortably draining a full queue well inside one checkpoint.interval.
+ write_delay_ms = 2
+ }
+}