Repository navigation
Fix "No more packets are available." logical error on distributed LIMIT queries - #110334
Conversation
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-2:20260714-021100 |
|
cc @azat @KochetovNicolai — could you review? This fixes a TOCTOU race in the synchronous distributed-read path: |
|
Workflow [PR], commit [1f153b5] Summary: ❌
AI ReviewSummaryThis PR converts the synchronous distributed Final Verdict✅ No new findings. The current revision matches the stated bug-fix contract and looks ready from a correctness-review perspective. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 39/39 (100.00%) · Uncovered code |
|
Both points addressed in ce114e4.
|
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260714-081900 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-1:20260714-101300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260714-143800 |
CI finish ledger — 1f41bbfAll public CI checks pass on this head (Finish Workflow + Mergeable Check green). No failed tests to own.
Session id: cron:our-pr-ci-monitor:20260714-220000 |
CI finish ledger — 1f41bbfEvery failure below has an owner. Only
Finish Workflow and Mergeable Check are green; all functional/integration/stress checks pass on this head. Session id: cron:our-pr-ci-monitor:20260715-010000 |
CI finish ledger — 7992f74Every failure below has an owner: a fixing PR (ours or external). No failure is PR-caused (this PR's diff is the distributed-LIMIT drain fix in
|
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 31/31 (100.00%) · Uncovered code |
CI finish ledger - c1cf381Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task whose fixing-PR link will be posted here when it opens. Only
Session id: cron:our-pr-ci-monitor:20260729-170000 |
CI finish ledger — c1cf381Every failure below has an owner: a fixing PR (ours or external), or a full-effort fix task whose
Session id: cron:our-pr-ci-monitor:20260729-164745 |
There was a problem hiding this comment.
Egh, one problem of parallel invocation of onUpdatePorts (sigh)
The patch looks OK, but the bug fix is wrong, since
[2026-07-29 10:42:24] 2026-07-29 07:42:24 [ip-172-31-22-76] 2026.07.29 12:42:16.800454 [ 674 ] {1795dbd5-707e-47ca-84ca-5129420799e2} executeQuery: Code: 36. DB::Exception: Cannot find fail point remote_query_executor_receive_packet_pause. (BAD_ARGUMENTS) (version 26.8.1.334 (official build)) (from [::ffff:127.0.0.1]:50248) (comment: 04512_distributed_limit_no_more_packets_race.sh-test_8rx21250) (query 1, line 1) (in query: SYSTEM ENABLE FAILPOINT remote_query_executor_receive_packet_pause), Stack trace (when copying this message, always include the lines below):
[2026-07-29 10:42:24] 2026-07-29 07:42:24
Though the test looks good, but let's make sure that logs for this query contains "Cancelling query because enough data has been read"
Also trim the comments, git commit/PR description, it contains more text that I can read.
And please squash everything the history is useless.
And also keep on eye on CI, if it hanged for days - rebase
e210172 to
e6218a7
Compare
|
That Your objection holds anyway: the test proceeded after the failed arming, so it could pass without exercising the race. Fixed three ways: a failed Verified the assertion discriminates: it is 0 for the same query without Comments, commit message and description trimmed. Squashed to one commit, rebased on master. |
Build profile diff (arm_release)No arm_release build profile data for commit 1f153b5 - the build was skipped, reused from cache, or predates profile upload. |
CI finish ledger - e6218a7CI fully finished on this head (the head that addresses @azat's change requests) and it is clean. Every failure line would have an owner; there are none.
Session id: cron:our-pr-ci-monitor:20260810-010000 |
| /// "somewhere inside `receivePacket`"; see its declaration. Kept inside the failpoint action | ||
| /// so an ordinary read does not touch it. |
There was a problem hiding this comment.
"Kept inside the failpoint action so an ordinary read does not touch it."
Feedback for you, this comment is 100% obvious, please stop writing things like this.
There was a problem hiding this comment.
The whole comment is useless, it should EXPLAIN why we have this failpoint here, not some random comment for new code
There was a problem hiding this comment.
Rewritten to say why the failpoint is there: it parks the reader in the window between the was_cancelled check and receivePacket, which is the window a parallel onUpdatePorts can cancel and drain in.
| throw Exception(ErrorCodes::LOGICAL_ERROR, "Cannot receive packets: no query sent."); | ||
| if (!hasActiveConnections()) | ||
| { | ||
| /// A concurrent cancel (`RemoteQueryExecutor::finish`) invalidates every replica, so for an |
There was a problem hiding this comment.
Added, on both guards: RemoteQueryExecutor::finish cancels and drains these connections from another pipeline thread via onUpdatePorts when LIMIT closes the port, so a reader already past its own check can arrive here with no replica left.
Also corrected a wrong claim in the description while re-reading it: receivePacket and sendCancel share cancel_mutex, so cancellation cannot unblock an in-progress receive. read releases was_cancelled_mutex because finish and cancel take that mutex, not to allow that.
…IT queries RemoteQueryExecutor::read() checks was_cancelled under was_cancelled_mutex and releases it before the blocking connections->receivePacket(), because finish() and cancel() take the same mutex and must not wait for a receive. When a LIMIT closes the output port, RemoteSource::onUpdatePorts() runs finish() on another pipeline thread and cancels and drains the same connections. A reader that passed its check before that then found no active connections and threw LOGICAL_ERROR "No more packets are available.", aborting the server in debug and sanitizer builds and returning the error to the client in release builds. Report end-of-stream instead when the query was already cancelled, in both IConnections implementations. Only a non-cancelled query reaching that point is a real logic error. The regression test makes the interleaving deterministic with two pauseable failpoints instead of timing, runs under both use_hedged_requests values, requires the query to exit successfully, and asserts that the cancellation was logged so a run that never reaches the cancel path, or one where the failpoints are unavailable, fails instead of passing silently. Found by the stress test (arm_release), STID 4846-402d.
e6218a7 to
1f153b5
Compare
| return ReadResult(Block()); | ||
| } | ||
|
|
||
| /// Parks the reader in the window this fix is about: `was_cancelled` has just been checked |
There was a problem hiding this comment.
Ok for now, but for future, "this fix is about" is no good, when someone will read the code he/she will not have any context about this, yes blame will tell, but this is one extra step that pollute context.
There was a problem hiding this comment.
So, please gather all my push backs of your comments/commits descriptions style and save this into your memory.
There was a problem hiding this comment.
Recorded, consolidated with your earlier push-backs on 102926, 106261 and 107307 into one rule: a source comment states the local invariant standing on its own, and it fails if it is obvious from the code below it, or if it only makes sense in terms of a fix. Motivation and history go in the commit message.
Left the wording here as is per "ok for now"; the rule applies from my next PR.
CI finish ledger - 1f153b5Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
None is caused by this PR. The hung root is Session id: cron:our-pr-ci-monitor:20260810-173000 |
259bc44
| FP_RECV="remote_query_executor_receive_packet_pause" | ||
| FP_DRAIN="remote_query_executor_finish_drain_pause" | ||
|
|
||
| function cleanup() | ||
| { | ||
| $CLICKHOUSE_CLIENT --query "SYSTEM DISABLE FAILPOINT $FP_RECV" 2>/dev/null ||: | ||
| $CLICKHOUSE_CLIENT --query "SYSTEM DISABLE FAILPOINT $FP_DRAIN" 2>/dev/null ||: | ||
| wait 2>/dev/null ||: | ||
| $CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS ${CLICKHOUSE_DATABASE}.src" 2>/dev/null ||: | ||
| $CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS ${CLICKHOUSE_DATABASE}.dist" 2>/dev/null ||: | ||
| } | ||
| trap cleanup EXIT | ||
|
|
||
| $CLICKHOUSE_CLIENT --query " | ||
| DROP TABLE IF EXISTS ${CLICKHOUSE_DATABASE}.src; | ||
| CREATE TABLE ${CLICKHOUSE_DATABASE}.src (x UInt64) ENGINE = MergeTree ORDER BY x; | ||
| INSERT INTO ${CLICKHOUSE_DATABASE}.src SELECT number FROM numbers(100000); | ||
| DROP TABLE IF EXISTS ${CLICKHOUSE_DATABASE}.dist; | ||
| CREATE TABLE ${CLICKHOUSE_DATABASE}.dist AS ${CLICKHOUSE_DATABASE}.src | ||
| ENGINE = Distributed(test_cluster_two_shards, ${CLICKHOUSE_DATABASE}, src); | ||
| " |
There was a problem hiding this comment.
@groeneai, rewrite this test; it is very bad. It will stop the worker thread of executor during the processor's work at the failpoint. It breaks the semantics of a work method.
Remember: Work should never wait for some action, sleep, use condvar etc.
Look into comment in IProcessor
- Synchronous work must only use CPU - don't do any sleep, IO wait, network wait.
There was a problem hiding this comment.
@groeneai Also look into all tests you committed during the last 4 months and clean up the same problem.
There was a problem hiding this comment.
Acknowledged. Both pause sites #110334 added are affected, not only the one this test drives: remote_query_executor_receive_packet_pause sits under ISource::work() -> tryGenerate() -> RemoteQueryExecutor::read(), and remote_query_executor_finish_drain_pause under RemoteSource::work()/onUpdatePorts() -> finish().
This PR is merged, so I will do both parts in a follow-up PR: rewrite 04512 so the deterministic synchronization point is outside work(), and audit the tests I committed since May for the same shape (a PAUSE failpoint whose site is reachable from a work()/onUpdatePorts() frame). I will link it here with the audit result.
There was a problem hiding this comment.
Done in #119030.
Both pause sites this PR added are gone, along with five more of the same shape. Each rendezvous is replaced by injecting, on the same thread, the exact action the external actor used to perform, so nothing waits inside work(): 04512's failpoint now calls finish() inline in RemoteQueryExecutor::read(), and the four KILL QUERY tests call Context::killCurrentQuery() at the same point instead of parking. 04162's rendezvous was a duration rather than an action, so it moved off the pipeline onto the refresh BackgroundSchedulePool thread.
Audit result, on the criterion I gave above (my tests since 2026-05-08 that arm a PAUSE failpoint, then whether the paused site is reachable from a work() / tryGenerate() / onFinish() / onUpdatePorts() frame): 15 of my test files arm one, and 9 failpoints in 8 of them have an in-work() site. 7 are fixed in that PR. The remaining two, 04905_lwu_drop_race_table_lock and 03100_lwu_57_lock_acquire_timeout, both need a query-thread rendezvous on the lightweight-update lock path, which means two new production failpoints plus a 582-line test, so I split them into a follow-up PR instead of burying them here and will link it in this thread. One more, replicated_merge_tree_insert_retry_pause in 03916, is armed but never reached, so nothing parks in it.
One borderline I would rather you ruled on than decided silently: 05060_distributed_sync_insert_cancel_does_not_wait parks distributed_sink_pause_before_push, which runs on a DistributedInsertThreads pool thread and so is not itself in a work() frame, but the pipeline worker that called DistributedSink::consume() does sit in waitForJobs() for as long as the park lasts. I left it as it is because that wait is distributed_foreground_insert's own production behaviour rather than something the failpoint introduces. If you would rather it moved too, I will do that.
There was a problem hiding this comment.
Done in #119069.
It needed one new failpoint rather than the two I predicted above, and not on the lightweight-update path. Both lock families are already taken while the pipeline is built and released only by its teardown: the table share lock into the pipeline's resources, the lightweight-update lock into the patch sink. So one pause in BlockIO::onFinish, after releaseQuerySlot() and before that teardown, holds both on the query thread with no work() frame, and serves both tests. Neither reference file changes, and 03100_lwu_57 keeps all 22 of its assertions.
Since that site is query plumbing rather than something lightweight-update specific, the pause is gated on a query-id prefix outside the fiu evaluation, the way QueryMetricLog::finishQuery already is; ungated, the one-shot arm could be consumed by any completed pipeline. If you would rather the hook sat at the end of CompletedPipelineExecutor::execute() or in TCPHandler, it is a one-line move and neither test changes.
That is the audit finished: these two were the remainder.
04512_distributed_limit_no_more_packets_race parked a PipelineExecutor worker inside IProcessor::work(): SYSTEM WAIT FAILPOINT ... PAUSE blocked RemoteQueryExecutor::read() on an unbounded condvar while the test cancelled and drained the connections from outside. src/Processors/ IProcessor.h states synchronous work() must only use CPU, no sleep, IO wait or network wait, and a parked work() holds a thread-pool slot for as long as the test takes to notice and resume it. The defect the test covers is a state, not an interleaving. The fix in ClickHouse#110334 lives in MultiplexedConnections::receivePacketUnlocked and HedgedConnections::receivePacketUnlocked: with !hasActiveConnections() and cancelled, return EndOfStream instead of throwing LOGICAL_ERROR "No more packets are available.". A reader only has to arrive at receivePacket with the connections cancelled and drained; which thread produced that state is irrelevant. So a single non-blocking ONCE failpoint now calls finish() inline at the same point - the exact call RemoteSource::onUpdatePorts() makes - and the reader continues into the fixed predicate on its own thread. was_cancelled_mutex is not held there (the injection sits between two LockAndBlocker scopes) and finish() takes it itself. Both of its exits reach cancelled && !hasActiveConnections(): the drain loop invalidates each replica on EndOfStream, and the drain_was_skipped branch disconnects them. This deletes both PAUSEABLE_ONCE failpoints, the second pause site in finish() and the in_receive_packet_window member that existed only to keep the two parks paired. The test drops LIMIT 1 and max_block_size=1: with the cancel injected in place, a LIMIT could satisfy itself and cancel both executors before either reader entered the loop, so the failpoint would never fire, whereas without a LIMIT both readers must enter it and the injection sits at the top before the first receivePacket. The system.text_log positive control is replaced by reading `enabled` from system.fail_points before and after the query with no DISABLE in between: 1 then 0 can only happen through a fire, while `enabled = 0` alone is also what an un-armed failpoint reads. Both use_hedged_requests values are kept because each connection class carries its own copy of the fixed predicate. Reported by @Michicosun on ClickHouse#110334. Co-Authored-By: Claude Opus 5 <[email protected]>
The mid-loop failpoint in AggregatingInOrderTransform::consume() existed so that test_aggregating_in_order_transform_kill_query could issue KILL QUERY while the transform sat between key intervals. It parked a PipelineExecutor worker inside IProcessor::work() on an unbounded condvar, which src/Processors/IProcessor.h forbids: synchronous work() must only use CPU, no sleep, IO wait or network wait. The external actor only performed a cancellation, so the failpoint now performs that same cancellation in place: Context::killCurrentQuery() is what KILL QUERY itself reaches (ProcessList::sendCancelToQuery -> QueryStatus::cancelQuery(CANCELLED_BY_USER)), and calling it on the query's own thread is an existing pattern (src/Server/HTTPHandler.cpp). Nothing it takes is held by a worker during work(): cancelQuery() takes cancel_mutex, snapshots the executors under executors_mutex and releases that before cancelling each one, and PipelineExecutor::cancel() is an atomic status update plus tasks.finish() plus ExecutingGraph::cancel() under processors_mutex, which is only taken in updatePipeline()/removeGroup() after work() has returned. This transform does not override onCancel(). The interval-5 guard stays, so the cancel still lands mid-loop and the next iteration's isCancelled() check logs "Cancelled between key intervals" exactly once. The test keeps all three of its existing assertions and its QUERY/table/settings, drops the thread and the pool that only served the pause protocol, and gains a bracketed system.fail_points `enabled` 1 -> 0 oracle so a run in which the failpoint never fired cannot pass. Reported by @Michicosun on ClickHouse#110334. Co-Authored-By: Claude Opus 5 <[email protected]>
… output formats Both output formats had a mid-row-loop pause failpoint so that their kill-query tests could issue KILL QUERY while the format was halfway through writing a chunk to the wire. IOutputFormat::consume() runs inside IProcessor::work(), so the park was an unbounded condvar wait in a frame whose contract (src/Processors/IProcessor.h) allows only CPU work. Both sites now inject the same cancellation the tests used to send from outside, via Context::killCurrentQuery() on the query's own thread; the row loop's own per-row isCancelled() check then throws QUERY_WAS_CANCELLED on the next iteration, exactly as before. The lock analysis is the one in the previous commit, and neither format overrides onCancel(). Both tests keep every existing oracle verbatim, because they are protocol-specific and already correct: MySQL keeps rows_seen == CANCEL_AT_ROW + 1 (the per-row check is at the top of the loop, so the row the hook fires on is still sent), PostgreSQL keeps asserting NetworkSendBytes == 0 on its ExceptionWhileProcessing row instead of a row count because psycopg2 buffers execution, and both keep the system.processes count, the QUERY_WAS_CANCELLED log assertion and the single-chunk check. Only the mechanism changes: the thread, the ThreadPoolExecutor, the WAIT FAILPOINT block and the KILL QUERY are gone, and a bracketed system.fail_points `enabled` 1 -> 0 oracle is added. Neither protocol lets a client supply a query id, and both tests used to read the server-assigned one from system.processes while the query was parked. With nothing parked, the id now comes from the ExceptionWhileProcessing row in system.query_log after a flush, and is asserted non-empty before the assertions that depend on it. Reported by @Michicosun on ClickHouse#110334. Co-Authored-By: Claude Opus 5 <[email protected]>
…ndow Both Delta Lake sinks paused in their commit window (data files finalized, delta_transaction->commit not yet called) so that test_write_cancel_during_commit_keeps_data could KILL the INSERT while the commit was in flight. SinkToStorage::onFinish() runs under ExceptionKeepingTransform::work(), so the park violated the IProcessor contract that synchronous work() may only use CPU. Both sites now call Context::killCurrentQuery() in place, at exactly the same point, which is the same cancellation KILL QUERY delivers; the lock analysis is the one two commits back, and neither sink overrides onCancel(). The injection point is unchanged on purpose: the behaviour under test is that the post-commit clearing of the tracked sinks runs with the query already cancelled, so a late cancel has no tracked buffers left to unlink and the Delta log cannot end up pointing at removed data files. The test keeps its post-condition assertions verbatim for both `partitioned` values (the committed rows are readable and at least one parquet survives) and drops the thread, the WAIT FAILPOINT, the KILL QUERY, the ASYNC-kill sleep and the NOTIFY that only served the pause protocol. A bracketed system.fail_points `enabled` 1 -> 0 oracle replaces them, so a run in which the cancel never fired fails instead of passing on assertions a plain successful INSERT also satisfies. Reported by @Michicosun on ClickHouse#110334. Co-Authored-By: Claude Opus 5 <[email protected]>
04162_system_cancel_view_during_refresh used the infinite_sleep failpoint to hold a refresh alive until SYSTEM CANCEL VIEW arrived. That site is inside FunctionSleep::execute, reached through ExpressionTransform::work(), and it sits before sleep()'s max_microseconds bound check and before its sliced wait loop, so it bypassed exactly the machinery that keeps sleep() from occupying a worker indefinitely. src/Processors/IProcessor.h forbids waiting inside work() at all. Here the rendezvous is a duration, not an action, so it cannot be injected in place; it moves to a thread that is allowed to wait. What the test needs is a cancel that finds a live, published executor, which is what the asserted "Cancelling refresh in <db>.<view>" line requires, and that state already exists on the RefreshTask (BackgroundSchedulePool) thread before any worker starts: the executor is constructed and initialized, published to execution.executor under executor_mutex, that mutex is released, the clearing SCOPE_EXIT is registered, and only then does executor.execute() run. A new PAUSEABLE_ONCE failpoint parks in that gap. interruptExecution() can therefore take executor_mutex and cancel; cancelling a not-yet-started executor is explicitly supported by PipelineExecutor::cancel, and interruptExecution() also kills the refresh query, so the released executor.execute() unwinds and the post-pipeline interrupt re-check raises the QUERY_WAS_CANCELLED the test asserts on. The two existing refresh_mv_pause_* failpoints could not be reused: both sit after executor.execute() has returned, where the SCOPE_EXIT has already cleared execution.executor, so interruptExecution() is a no-op there and the asserted log line is never written. Because no pipeline runs while parked, the test drops sleepEachRow(0) and the max_block_size / max_threads settings it needed, and drops the read_rows > 0 wait: progress can no longer be observed, and the property it stood in for (the cancel has a concrete pipeline to interrupt) is now guaranteed by where the failpoint fires. `wait_status c Running` replaces it as the "the parked refresh is ours" check. All three assertions are kept verbatim, and a bracketed system.fail_points `enabled` 1 -> 0 oracle is added so a run that never parked fails instead of passing vacuously. Reported by @Michicosun on ClickHouse#110334. Co-Authored-By: Claude Opus 5 <[email protected]>
The park sits between the executor's publication and executor.execute(), so the refresh owns a live executor that has not run yet and read_rows must be 0. Nothing in the test observed that. Every other assertion holds equally if the park moves to after executor.execute() returns: execution.executor is still published there, so "Cancelling refresh in <db>.c" is still logged, and execution.interrupt_execution still raises QUERY_WAS_CANCELLED on the post-pipeline re-check. The previous commit dropped the merged test's read_rows > 0 wait because progress can no longer be observed once no pipeline runs while parked. Its mirror image is observable, and is what belongs here. The value is stable rather than racy: execution.progress.reset() is the first statement of executeRefreshUnlocked, the same call that parks, and SYSTEM WAIT FAILPOINT PAUSE has already returned when the value is read, so the refresh thread is provably parked and nothing can advance the counter. Verified by moving the park to immediately after executor.execute(), inside the same block: the new line goes 0 -> 1 while the three original columns stay 1 1 1, so it is the only assertion that sees that placement. Moving the park before the publication instead reddens only the third column, so the two directions now bracket the placement. Reported by @Michicosun on ClickHouse#110334. Co-Authored-By: Claude Opus 5 <[email protected]>
…on-cancel Conflicts in `FailPoint.cpp` and `RemoteQueryExecutor.cpp`: master (ClickHouse#119069, after the review request on ClickHouse#110334 that no test may park a pipeline worker inside `IProcessor::work`) removed the `remote_query_executor_receive_packet_pause` reader park and the `in_receive_packet_window` flag that guarded this PR's `finish` and `cancel` holds, replacing 04512's fixture with the inline `remote_query_executor_cancel_and_drain_in_receive_window`. Resolved by taking master's failpoint and dropping the reader park here too. The three holds stay, guarded by a new executor-local pin instead: `remote_query_executor_finish_entry_hold` fires once, and the executor that fires it sets `owns_test_holds`, so the drain hold and the cancel-gate hold can only be consumed by that executor and not by the sibling shard. Every `finish` entry of the pinned executor waits at the entry hold while it is armed, because `work` and `onUpdatePorts` can enter `finish` on different threads and a second one running ahead into the drain would defeat the interleaving. `05076` no longer arms the reader park; scenario A pins through the entry hold and releases it before waiting for the drain hold, scenario B is unchanged apart from the dropped park. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix a rare
Logical error: 'No more packets are available.'raised for a valid distributed query with aLIMIT, which aborted the server in debug and sanitizer builds.Description
RemoteQueryExecutor::read()checkswas_cancelledunderwas_cancelled_mutexand releases it before the blockingconnections->receivePacket(), becausefinish()andcancel()take the same mutex and must not wait for a receive. When aLIMITcloses the output port,RemoteSource::onUpdatePorts()runsfinish()on another pipeline thread, which cancels and drains the same connections. A reader that passed its check before that then found no active connections and threwLOGICAL_ERROR.Both
IConnectionsimplementations now report end-of-stream when the query was already cancelled. Only a non-cancelled query reaching that point is a real logic error.The regression test pins the interleaving with two pauseable failpoints instead of timing, runs under both
use_hedged_requestsvalues, requires the query to exit successfully, and asserts thatCancelling query because enough data has been readis insystem.text_logfor the query, so a run that never reaches the cancel path fails instead of passing.Validated on a two-shard debug build: passes with the fix (3/3, both modes); with the two
EndOfStreamguards removed the server aborts atMultiplexedConnections.cpp:397(use_hedged_requests=0) andHedgedConnections.cpp:374(=1).Found by the stress test (
arm_release), STID4846-402d: