glassfish
  1. glassfish
  2. GLASSFISH-20727

The value of victim-selection-policy is not output to server.log

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Trivial Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      glassfish-4.0.1-b02-07_24_2013
      Windows 7
      Java 1.7.0_17

      Description

      The value of victim-selection-policy is not output to server.log.

      In the sun-ejb-jar.xml file, you can set victim-selection-policy.
      <victim-selection-policy>LRU</victim-selection-policy>

      One of these can be set for victim-selection-policy.

      • An invalid value(such as hoge)
      • LRU
      • FIFO
      • NRU

      The victim-selection-policy is added in the error message in server.log as shown below.
      The issue is that when LRU is set, the value of victim-selection-policy is not written in server.log. In all other cases, the value of victim-selection-policy is written.

      When an invalid value is set, [NRU-samples.ejb.stateful.simple.ejb.CartBean]

      [2013-07-26T11:23:20.338+1000] [glassfish 4.0] [SEVERE] [AS-EJB-00004] [javax.enterprise.ejb.container] [tid: _ThreadID=114 _ThreadName=p: thread-pool-1; w: 2] [timeMillis: 1374801800338] [levelValue: 1000] [[
      [NRU-samples.ejb.stateful.simple.ejb.CartBean]: Cannot load from BACKUPSTORE FOR Key: <[890857700a21f-18914a92-0]>]]

      When FIFO is set, [FIFO-samples.ejb.stateful.simple.ejb.CartBean]

      [2013-07-26T11:34:13.335+1000] [glassfish 4.0] [SEVERE] [AS-EJB-00004] [javax.enterprise.ejb.container] [tid: _ThreadID=114 _ThreadName=p: thread-pool-1; w: 2] [timeMillis: 1374802453335] [levelValue: 1000] [[
        [FIFO-samples.ejb.stateful.simple.ejb.CartBean]: Cannot load from  BACKUPSTORE FOR Key: <[890857700a21f-18996a3b-1]>]]
      

      When LRU is set, [samples.ejb.stateful.simple.ejb.CartBean]. Why LRU is not displayed?

      [2013-07-26T11:41:33.026+1000] [glassfish 4.0] [SEVERE] [AS-EJB-00004] [javax.enterprise.ejb.container] [tid: _ThreadID=117 _ThreadName=p: thread-pool-1; w: 5] [timeMillis: 1374802893026] [levelValue: 1000] [[
        [samples.ejb.stateful.simple.ejb.CartBean]: Cannot load from  BACKUPSTORE FOR Key: <[890857700a21f-18a2a469-0]>]]
      

      When NRU is set, [NRU-samples.ejb.stateful.simple.ejb.CartBean]

      [2013-07-26T11:24:49.911+1000] [glassfish 4.0] [SEVERE] [AS-EJB-00004] [javax.enterprise.ejb.container] [tid: _ThreadID=117 _ThreadName=p: thread-pool-1; w: 5] [timeMillis: 1374801889911] [levelValue: 1000] [[
        [NRU-samples.ejb.stateful.simple.ejb.CartBean]: Cannot load from  BACKUPSTORE FOR Key: <[890857700a21f-18914a92-1]>]]
      

      To reproduce the issue,

      1.Update stateful-simple.ear\stateful-simpleEjb.jar\META-INF\sun-ejb-jar.xml
      Change <victim-selection-policy> to hoge, LRU, FIFO or NRU.

      2.Deploy application.
      asadmin deploy stateful-simple.ear

      3.Run batch file.
      run_client.bat

      4.Check server.log

      5. Undeploy application
      asadmin undeploy stateful-simple

      6. Repeat Step 1-5

        Activity

        Hide
        tak09 added a comment -

        Please download the test application here.

        https://www.dropbox.com/s/q76jns25obt4s02/apps.zip

        Test application stateful-simple.ear is contained in \build\assemble\ear

        Thank you.

        Show
        tak09 added a comment - Please download the test application here. https://www.dropbox.com/s/q76jns25obt4s02/apps.zip Test application stateful-simple.ear is contained in \build\assemble\ear Thank you.

          People

          • Assignee:
            ying.x.hu
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: