Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1896

ZK session timeout on JBoss AS 7 cluster issue

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.2
    • Fix Version/s: 6.5.4
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
    • Environment:

      JBoss AS 7 with Apache 2.2 in front

      Description

      Either session is not replicated correctly or replicated session is not detected on server-side. This causes the page to timeout on next request after a cluster node fails
      Environment:
      Setup JBoss cluster with 2 nodes. Create test app with ZK Maven Archetype for ee-eval.
      Steps to reproduce:
      1. Load index.zul (observe session id which shall contain node id for eg. YsMHmxDa9SEkur-N2nvGHB4P.standalone-nodeA)
      2. Increase count by clicking count button
      3. Stop/Terminate the current node serving requests from step 1 and 2
      4. Click count once more
      Expected:
      Count is increased and session id should be same but with suffix changed to second node id YsMHmxDa9SEkur-N2nvGHB4P.standalone-nodeB)
      Actual:
      Page shows zk timeout message and have to reload. Completely new session is created to serve this new page load

      1. httpd.conf
        18 kB
        ashishd
      2. jboss-web.xml
        0.8 kB
        ashishd
      3. standalone-ha.xml
        19 kB
        ashishd
      4. standalone-ha.xml
        19 kB
        ashishd
      5. web.xml
        6 kB
        ashishd
      6. zk.xml
        0.5 kB
        ashishd

        Issue Links

          Activity

          Hide
          vincentjian vincentjian added a comment -

          Fixed since 2013/8/22.

          Show
          vincentjian vincentjian added a comment - Fixed since 2013/8/22.
          Hide
          chemFelix chemFelix added a comment -

          This patch includes a change introduced in zk-6.5.4/zk/src/archive/META-INF/web-fragment.xml , causing big problems for applications using session attributes to store non-serializable content. There does not even seem to be a way to re-disable it. For that reason, I had to switch back to 6.5.3. I would ask for a more careful consideration of side-effects when introducing such changes.

          Show
          chemFelix chemFelix added a comment - This patch includes a change introduced in zk-6.5.4/zk/src/archive/META-INF/web-fragment.xml , causing big problems for applications using session attributes to store non-serializable content. There does not even seem to be a way to re-disable it. For that reason, I had to switch back to 6.5.3. I would ask for a more careful consideration of side-effects when introducing such changes.
          Hide
          vincentjian vincentjian added a comment -

          You can disable web-fragment.xml by adding metadata-complete="true" in web.xml file.

          <web-app ... metadata-complete="true">
          </web-app>
          
          Show
          vincentjian vincentjian added a comment - You can disable web-fragment.xml by adding metadata-complete="true" in web.xml file. <web-app ... metadata-complete= "true" > </web-app>
          Hide
          chemFelix chemFelix added a comment -

          Hi vincentjian, thanks for the suggestion. It would possibly work to avoid the distributable attribute, the other parts of web-fragment.xml can easily be merged into web.xml. Unfortunately, this setting seems to break Java EE annotations (which are probably quite common). If it hit an exotic setup I would consider it acceptable, but for that reason your idea will not work for me. Thanks anyway! Felix

          Show
          chemFelix chemFelix added a comment - Hi vincentjian, thanks for the suggestion. It would possibly work to avoid the distributable attribute, the other parts of web-fragment.xml can easily be merged into web.xml. Unfortunately, this setting seems to break Java EE annotations (which are probably quite common). If it hit an exotic setup I would consider it acceptable, but for that reason your idea will not work for me. Thanks anyway! Felix
          Hide
          jumperchen jumperchen added a comment -

          open another tracker for glassfish server - ZK-2039

          Show
          jumperchen jumperchen added a comment - open another tracker for glassfish server - ZK-2039

            People

            • Assignee:
              vincentjian vincentjian
              Reporter:
              ashishd ashishd
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: