Skip to content

Reset write lock state to init after closing write (#12215)#12559

Merged
ezelkow1 merged 1 commit intoapache:9.2.xfrom
ezelkow1:92x-12215
Oct 14, 2025
Merged

Reset write lock state to init after closing write (#12215)#12559
ezelkow1 merged 1 commit intoapache:9.2.xfrom
ezelkow1:92x-12215

Conversation

@ezelkow1
Copy link
Copy Markdown
Member

This commit mitigates the crash reported in #11700. That crash happens when a redirect is issued on a state machine that has already cached a response and closed the cache write VC.

After this patch, the state machine will likely open a new cache VC to cache the response from the origin it was redirected to. We will refer to the original origin as A, and the origin the state machine was redirected to after the response from A as B.

We have not yet reproduced this locally - the exact sequence of events that gets the state machine into this state are still unknown.

(cherry picked from commit 5c0aaf2)

This commit mitigates the crash reported in apache#11700. That crash happens when
a redirect is issued on a state machine that has already cached a response
and closed the cache write VC.

After this patch, the state machine will likely open a new cache VC to cache
the response from the origin it was redirected to. We will refer to the
original origin as A, and the origin the state machine was redirected to after
the response from A as B.

We have not yet reproduced this locally - the exact sequence of events that
gets the state machine into this state are still unknown.

(cherry picked from commit 5c0aaf2)
@ezelkow1 ezelkow1 added this to the 9.2.12 milestone Oct 13, 2025
@ezelkow1 ezelkow1 requested a review from JosiahWI October 13, 2025 23:06
@ezelkow1 ezelkow1 self-assigned this Oct 13, 2025
@ezelkow1 ezelkow1 requested a review from zwoop as a code owner October 13, 2025 23:06
@ezelkow1 ezelkow1 added the Backport Marked for backport for an LTS patch release label Oct 13, 2025
@ezelkow1 ezelkow1 moved this from In progress to For Review in 9.2.x Branch and Release Oct 13, 2025
@github-project-automation github-project-automation Bot moved this from For Review to Ready to Merge in 9.2.x Branch and Release Oct 14, 2025
@ezelkow1 ezelkow1 merged commit d740962 into apache:9.2.x Oct 14, 2025
15 checks passed
@ezelkow1 ezelkow1 deleted the 92x-12215 branch October 14, 2025 14:08
@ezelkow1 ezelkow1 moved this from Ready to Merge to Done for v9.2.x in 9.2.x Branch and Release Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Marked for backport for an LTS patch release

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants