[ 
https://issues.apache.org/jira/browse/PROTON-2985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18124775#comment-18124775
 ] 

ASF subversion and git services commented on PROTON-2985:
---------------------------------------------------------

Commit 14018a5d74f48538a8df4e3e4ee3292d8dc2b123 in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=14018a5d7 ]

PROTON-2985: Add a -perturb option to threaderciser

Proactor races rarely reproduce under normal scheduling, because the locks
around task scheduling are held only briefly. -perturb randomly yields or
sleeps for up to 2ms immediately before and after this file's own calls to
pn_proactor_connect(), pn_connection_wake(), pn_proactor_listen(),
pn_listener_close(), and around the pn_proactor_wait()/pn_event_batch_next()/
pn_proactor_done() loop, varying when concurrent threads arrive at those entry
points.

It changes only the timing of the actions, never which ones are taken, and is
off unless asked for, so the default test run is unaffected. The start banner
reports perturb=on/off.

Assisted-By: Claude Opus 5 <[email protected]>


> Add random perturbation mode to threaderciser
> ---------------------------------------------
>
>                 Key: PROTON-2985
>                 URL: https://issues.apache.org/jira/browse/PROTON-2985
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Major
>
> In order to try to exercise the proactor a bit more harshly add a mode which 
> adds random waits to all of the actions to vary the thread interleaving.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to