Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3375

[eap72] Change in behaviour of TIMER_SERVICE_DATA_STORE environment variable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • EAP72 7.2.6-OpenJDK 11.GA
    • EAP CD 17.0.GA, EAP72 7.2.1-OpenJDK 11.GA
    • EAP7, EAP_CD
    • None
    • PR merged. Closing issue.
    • Workaround Exists
    • Hide

      Reference TIMER_SERVICE_DATA_STORE to the value of DB_SERVICE_PREFIX_MAPPING rather than the key, e.g. if DB_SERVICE_PREFIX_MAPPING=testdb-postgresql=TESTDB_POSTGRESQL, TIMER_SERVICE_DATA_STORE=TESTDB_POSTGRESQL will work.

      Show
      Reference TIMER_SERVICE_DATA_STORE to the value of DB_SERVICE_PREFIX_MAPPING rather than the key, e.g. if DB_SERVICE_PREFIX_MAPPING=testdb-postgresql=TESTDB_POSTGRESQL , TIMER_SERVICE_DATA_STORE=TESTDB_POSTGRESQL will work.

      Suppose a deployment built on eap72-openjdk11-openshift-rhel8 image with the following environment variables that assured that the server would point timer service towards java:jboss/datasources/postgres datasource previously (with eap72-openshift images):

      ...
              - env:             - name: DB_SERVICE_PREFIX_MAPPING
                    value: testdb-postgresql=TESTDB_POSTGRESQL
                  - name: TESTDB_POSTGRESQL_PASSWORD
                    value: testpwd
                  - name: TIMER_SERVICE_DATA_STORE
                    value: testdb-postgresql
                  - name: TESTDB_POSTGRESQL_DATABASE
                    value: testdb
                  - name: TESTDB_POSTGRESQL_JNDI
                    value: 'java:jboss/datasources/postgres'
                  - name: TESTDB_POSTGRESQL_USERNAME
                    value: testuser
      ...

      EAP does not have any /subsystem=ejb3/service=timer-service configured. This is a change compared to eap72-openshift image, where the timer service gets properly configured.

      eap72-openjdk11-openshift-rhel8
      [standalone@localhost:9990 /] /subsystem=ejb3/service=timer-service:read-resource
      /subsystem=ejb3/service=timer-service:read-resource
      {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0216: Management resource '[
          (\"subsystem\" => \"ejb3\"),
          (\"service\" => \"timer-service\")
      ]' not found",
          "rolled-back" => true
      }
      
      eap72-openshift
      [standalone@localhost:9990 /] /subsystem=ejb3/service=timer-service:read-resource
      {
          "outcome" => "success",
          "result" => {
              "default-data-store" => "testdb_postgresql-TESTDB_POSTGRESQL_ds",
              "thread-pool-name" => "default",
              "database-data-store" => {"testdb_postgresql-TESTDB_POSTGRESQL_ds" => undefined},
              "file-data-store" => {"default-file-store" => undefined}
          }
      }
      

            kwills@redhat.com Ken Wills
            rhn-engineering-spriadka Simon Priadka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: