Bug 900793 (JBEWS-197) - JK status manager - mass nodes handling works strange
Summary: JK status manager - mass nodes handling works strange
Keywords:
Status: CLOSED EOL
Alias: JBEWS-197
Product: JBoss Enterprise Web Server 2
Classification: JBoss
Component: mod_jk
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 2.0.0
Assignee: Weinan Li
QA Contact: Libor Fuka
URL: http://jira.jboss.org/jira/browse/JBE...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-16 14:03 UTC by Jan Stefl
Modified: 2019-06-13 12:09 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-13 12:09:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
jk-after-mass-disabling.log (6.28 KB, text/x-log)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
jk-after-mass-disabling-correct-reponse.log (3.53 KB, text/x-log)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
jk-after-mass-disabling-incorrect-reponse.log (23.38 KB, text/x-log)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
jk-after-mass-enabling.log (6.28 KB, text/x-log)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
jk-after-httpd-start.log (44.78 KB, text/x-log)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
mod_jk.conf (990 bytes, application/octet-stream)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
uriworkermap.properties (40 bytes, application/octet-stream)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details
workers.properties (518 bytes, application/octet-stream)
2012-08-16 14:05 UTC, Jan Stefl
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 900723 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Issue Tracker JBEWS-197 0 Minor Closed JK status manager - mass nodes handling works strange 2015-05-13 02:06:20 UTC

Internal Links: 900723

Description Jan Stefl 2012-08-16 14:03:31 UTC
Affects: Release Notes
project_key: JBEWS

I have one HTTPD server balanced 2 Tomcats.

I try to disable all Tomcats nodes at once smth. like:

{code}
curl -G -d "cmd=update&mime=prop&w=router&att=vwa&val0=1&val1=1" localhost/jkmanager/
{code}

And expect returned HTTPD code 503 for multiple requests.  
In web browsers (Chrome, Firefox) it is behave strange. During the refreshes I sometimes see served response from Tomcat, but I would suppose, that could be same browser problem.
This strange (random) behaviour is valid even for running wget muliple times.

{code}
wget --no-cache -O - 127.0.0.1/testapp
{code}

After that I want to start all nodes, but it is not working. Nothing happend and behaviour remains same as I described above.

{code}
curl -G -d "cmd=update&mime=prop&w=router&att=vwa&val0=0&val1=0" localhost/jkmanager/
{code}

Btw. shared memory file (JkShmFile) is on local disk (no NFS).

See my configurations and logs in the attached files.

This JIRA is duplicate for JBPAPP-9315

Comment 1 Jan Stefl 2012-08-16 14:05:20 UTC
Attachment: Added: jk-after-mass-disabling.log
Attachment: Added: jk-after-mass-disabling-correct-reponse.log
Attachment: Added: jk-after-mass-disabling-incorrect-reponse.log
Attachment: Added: jk-after-mass-enabling.log
Attachment: Added: jk-after-httpd-start.log
Attachment: Added: mod_jk.conf
Attachment: Added: uriworkermap.properties
Attachment: Added: workers.properties


Comment 2 Jan Stefl 2012-08-16 14:50:08 UTC
Link: Added: This issue relates to JBPAPP-9551


Comment 3 David Knox 2012-08-20 23:31:18 UTC
Resolving because this is a duplicate of JBPAPP-9315. Reassigning to Permaine for concurrence. 

Comment 4 Permaine Cheung 2012-08-21 12:43:10 UTC
The duplicate is for EAP, let's track EWS using this JIRA.

Mladen, is this something that we'll wait for a fix upstream?

Comment 5 Mladen Turk 2012-08-21 14:12:08 UTC
Yes. Those kind of issues needs to be reported and fixed upstream first.


Comment 6 Permaine Cheung 2012-08-21 14:18:59 UTC
Jan, please file a bug upstream so that it gets fixed upstream and we'll inherit the fix when a new version is released from the upstream community. thanks!

Comment 7 Jan Stefl 2012-08-22 08:00:18 UTC
Here it is: http://issues.apache.org/bugzilla/show_bug.cgi?id=53762

Comment 8 Jan Stefl 2012-08-22 10:21:00 UTC
Ok, we use mod_jk version *1.2.36*. Actual version is *1.2.37*.

Is seems that *1.2.37* + patch http://svn.apache.org/viewvc?view=revision&revision=1354021
Should fix the problem.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53762#c1

If relevant build will be created, I will test it.

Comment 9 Mladen Turk 2012-09-05 04:25:05 UTC
Patch applied.
Will be part of ER10

Comment 10 Jan Stefl 2012-10-31 14:23:56 UTC
I find out that was error in a test and problem still appears.

Is there any reason why we use mod_jk 1.2.36 since 1.2.37 is out?

Comment 11 Jan Stefl 2012-10-31 14:24:55 UTC
Affects: Added: Release Notes


Comment 12 Misha H. Ali 2012-11-01 04:50:04 UTC
Can someone elaborate on how the problem manifests? I can't get a very good idea from the description what exactly the problem visible to the user/error is.

Comment 13 Misha H. Ali 2012-11-01 04:50:04 UTC
Release Notes Docs Status: Added: Documented as Known Issue
Writer: Added: mhusnain
Release Notes Text: Added: Attempts to manage multiple nodes using the status manager URL such as the following does not work correctly:

cmd=update&mime=prop&w=router&att=vwa&val0=1&val1=1

As a workaround for this problem, use the status manager's web interface instead.


Comment 14 Jiri Skrabal 2012-11-13 16:26:33 UTC
Release Notes Docs Status: Removed: Documented as Known Issue 
Writer: Removed: mhusnain 
Release Notes Text: Removed: Attempts to manage multiple nodes using the status manager URL such as the following does not work correctly:

cmd=update&mime=prop&w=router&att=vwa&val0=1&val1=1

As a workaround for this problem, use the status manager's web interface instead. 
Docs QE Status: Removed: NEW 


Comment 15 Permaine Cheung 2013-03-21 12:52:38 UTC
Assigning to Weinan to track if this fix gets in future releases of EWS.

Comment 16 Jean-frederic Clere 2013-04-17 16:08:05 UTC
upgrading mod_jk should fix the problem.

Comment 17 Libor Fuka 2013-05-06 13:50:25 UTC
Not fixed in EWS 2.0.1 ER1 on Solaris build.
Windows and Linux ER1 seems ok.

Comment 18 Mladen Turk 2013-05-06 13:53:26 UTC
But the code is the same.
And it the same as for EWS 2.0.0 although we have 1.1.26 + patches which equals to 1.1.27.

Comment 19 Mladen Turk 2013-05-06 13:55:56 UTC
Sorry I meant 1.2.36 and 1.2.37
There were no code changes between EWS 2.0.0 and 2.0.1
Updated version did not add any new code because it consists of all the patches we already have for 1.2.36

Comment 20 Libor Fuka 2013-05-06 14:08:13 UTC
Patch http://svn.apache.org/viewvc?view=revision&revision=1354021 was not applied in Solaris build.

Comment 22 Libor Fuka 2013-05-06 14:18:16 UTC
It seems in sources that patch was not applied also in Linux, Windows jk_status.c.

Comment 23 Libor Fuka 2013-05-06 14:19:26 UTC
How is it possible patch is not seen in build sources ?

Comment 24 Libor Fuka 2013-05-06 14:20:59 UTC
it should be mod_jk 1.2.37 + patch, see comm 8

Comment 25 Weinan Li 2013-05-07 08:40:09 UTC
Patch applied to RHEL versions:

mod_jk-1.2.37-2.redhat_1.ep6.el5 - https://brewweb.devel.redhat.com/buildinfo?buildID=270458
mod_jk-1.2.37-2.redhat_1.ep6.el6 - https://brewweb.devel.redhat.com/buildinfo?buildID=270457

Will be included in ER2

Comment 26 Mandar Joshi 2013-05-16 13:18:20 UTC
Added DocText.

@Wei Nan Li, can you please review the Doc Text content?

Comment 27 Weinan Li 2013-05-21 10:56:50 UTC
Hi Mandar, there is a typo in text: 'Jboss' should be 'JBoss'

Comment 28 Radim Hatlapatka 2013-05-23 13:53:28 UTC
Seems to be fixed only for windows. Still not fixed for RHEL and Solaris (for Solaris even verified that it doesn't contain the patch via src zip, for RHEL the src zip is broken)

Comment 29 Weinan Li 2013-05-27 11:05:40 UTC
The Solaris zip is broken, after the zips updated it should be fine.

For RHEL, I've checked the RHEL5 mod_jk and seems the patch is applied correct. RHEL6 is broken because the zip is not correct.

Radim, could you please explain what's the problem on RHEL5? It's the patch not applied or the patch not work as expected?

Comment 30 Radim Hatlapatka 2013-05-28 06:56:41 UTC
Actually I have tried it only with RHEL6 x86_64. As the zip archive with sources is common for both RHEL5 and RHEL6, I have anticipated that it will be thus broken for all RHEL platforms.

Comment 31 Michal Haško 2013-05-28 11:13:33 UTC
VERIFIED on EWS-2.0.1-ER2 on RHEL5, RHEL6 on i386, x86_64

Comment 32 Weinan Li 2013-05-29 06:33:53 UTC
Zip fixed, return back to QE (according to Michal's previous comment, I propose this one set to VERIFIED).

Comment 33 Libor Fuka 2013-05-29 06:41:24 UTC
VERIFIED on EWS-2.0.1-ER2 on Solaris 10,11 (i386, x86_64, SPARC) and MS Windows 2008 (i686, x86_64), 2008R2 (x86_64)

Comment 34 Misha H. Ali 2013-05-30 02:11:25 UTC
Excluded from Release Notes as part of the internal group.


Note You need to log in before you can comment on or make changes to this bug.