disable processing requests during upgrade

Description

During an in place upgrade, any incoming requests cause problems (lots of wierd errors etc)

We need do do something like disabling the queue while the upgrade takes place

Activity

Show:

Zac Spitzer 14 June 2023 at 14:14

this fix only applies to upgrading from this or later versions

Michael Offner 12 June 2023 at 13:32

code for testing the queue

<cfscript> pc=getPageContext(); config=pc.getCOnfig(); dump(config.getQueueMax()); disabled=1; enabled=2; blocking=4; queue=createObject("java", "lucee.runtime.engine.ThreadQueueImpl").init(blocking,3); names=""; loop from=1 to=5 index="t" { name="thread"&t; names=listAppend(names, name); thread name=name queue=queue { queue.enter(getPageContext()); try{ sleep(100); } finally { queue.exit(getPageContext()); } } } /**/ sleep(5000); systemOutput("---- unblock ----",1,1); queue.setMode(disabled); thread action="join" name=names; dump(cfthread); systemOutput("---- done ----",1,1); </cfscript>
Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 12 June 2023 at 12:13
Updated 19 June 2023 at 07:57
Resolved 16 June 2023 at 14:28

Flag notifications