Description

1. Use the Aug 23's build of geronimo-3.0 snapshot
2. Go to the "Monitoring" porlet on admin console
3. Click the 'Enable Query' link associated with this default server, server works well
4. Click the "Disable Query" link but found the value of "Stat.Query" for the default server keeps "Stopping..." ,Not changed to "Stopped" until you refreshed this page.

Activity

Investigated this jira. Found after clicked the "Disable Query", the server will stop SnopshotThread and set threadstatus=-1. Then the page reload and checked the snapshot status. At this time the thread is still stopping and the status is still -1. So it show "Stopping". When you refresh this page, the thread stopped. So the page show "Stat.Query" status is "Stopped". Because the page just refresh once after click the link. So the status is still be stopping even if the thread has stopped.

xiezhi
added a comment - 07/Mar/12 07:30 Investigated this jira. Found after clicked the "Disable Query", the server will stop SnopshotThread and set threadstatus=-1. Then the page reload and checked the snapshot status. At this time the thread is still stopping and the status is still -1. So it show "Stopping". When you refresh this page, the thread stopped. So the page show "Stat.Query" status is "Stopped". Because the page just refresh once after click the link. So the status is still be stopping even if the thread has stopped.

1, We should only refresh when the status is in "stopping", don't do the refresh when the status is a stable state.
2, Basically, the jave script added in the patch have browser compatibility issue. Please double check if it can work correctly on all of the main stream browser. (Firefox/IE/Chrome)

Shawn Jiang
added a comment - 08/Mar/12 07:03 1, We should only refresh when the status is in "stopping", don't do the refresh when the status is a stable state.
2, Basically, the jave script added in the patch have browser compatibility issue. Please double check if it can work correctly on all of the main stream browser. (Firefox/IE/Chrome)