glassfish
  1. glassfish
  2. GLASSFISH-18558

'Restart is required' even when domain is just started and nothing changes.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_dev
    • Fix Version/s: 4.0_dev
    • Component/s: jca
    • Labels:
      None

      Description

      I have seen this for quite some time already, even without any changes, the domain is at a restart required state.
      Step to reproduce:

      1. install GlassFish 4.0
      2. start domain
      3. After domain is started, run 'list-domains', you will see the following:

      /glassfish3/glassfish/bin 47) ./asadmin list-domains
      domain1 running, restart required to apply configuration changes
      Command list-domains executed successfully.

      and
      ~/tmp/glassfish3/glassfish/bin 51) ./asadmin _get-restart-required --why
      true
      Unrecognized type of change: CHANGE
      Unrecognized type of change: CHANGE
      Unrecognized type of change: CHANGE
      Command _get-restart-required executed successfully.

        Activity

        Hide
        Tom Mueller added a comment -

        The source of these messages is the ConnectorResourceManagerLifecycleListener. When the PaaS infrastructure adds a <services> element to the domain.xml in a freshly created domain, this shows up as an ADD event to the ConnectorResourceManagerLifecycleListener, which reports this as an unprocessed event. This listener should not be reporting this as an unprocessed event.

        Show
        Tom Mueller added a comment - The source of these messages is the ConnectorResourceManagerLifecycleListener. When the PaaS infrastructure adds a <services> element to the domain.xml in a freshly created domain, this shows up as an ADD event to the ConnectorResourceManagerLifecycleListener, which reports this as an unprocessed event. This listener should not be reporting this as an unprocessed event.
        Hide
        marina vatkina added a comment -

        Seeing messages like this in the server.log:

        [#|2012-03-27T14:48:47.867-0700|WARNING|44.0|null|_ThreadID=19;_ThreadName=Thread-2;|Unprocessed event : UnprocessedChangeEvent

        {PropertyName=application-ref, OldValue = null, NewValue = GlassFishConfigBean.com.sun.enterprise.config.serverbeans.ApplicationRef, Source = GlassFishConfigBean.com.sun.enterprise.config.serverbeans.Server}

        , reason = Unrecognized type of change: CHANGE, when = 1332884927849|#]

        Show
        marina vatkina added a comment - Seeing messages like this in the server.log: [#|2012-03-27T14:48:47.867-0700|WARNING|44.0|null|_ThreadID=19;_ThreadName=Thread-2;|Unprocessed event : UnprocessedChangeEvent {PropertyName=application-ref, OldValue = null, NewValue = GlassFishConfigBean.com.sun.enterprise.config.serverbeans.ApplicationRef, Source = GlassFishConfigBean.com.sun.enterprise.config.serverbeans.Server} , reason = Unrecognized type of change: CHANGE, when = 1332884927849|#]
        Hide
        Jagadish added a comment -

        FIX INFORMATION :

        Making sure that the config element that is updated is of type Application as it is the only element that ConnectorResourceManagerLifecycleListener needs to monitor for config changes.

        svn log -v -r 53235
        r53235 | jr158900 | 2012-03-29 10:16:14 +0530 (Thu, 29 Mar 2012) | 7 lines
        Changed paths:
        M /trunk/main/appserver/connectors/connectors-internal-api/src/main/java/com/sun/appserv/connectors/internal/ConnectorResourceManagerLifecycleListener.java

        Show
        Jagadish added a comment - FIX INFORMATION : Making sure that the config element that is updated is of type Application as it is the only element that ConnectorResourceManagerLifecycleListener needs to monitor for config changes. svn log -v -r 53235 r53235 | jr158900 | 2012-03-29 10:16:14 +0530 (Thu, 29 Mar 2012) | 7 lines Changed paths: M /trunk/main/appserver/connectors/connectors-internal-api/src/main/java/com/sun/appserv/connectors/internal/ConnectorResourceManagerLifecycleListener.java

          People

          • Assignee:
            Jagadish
            Reporter:
            Anissa Lam
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: