Bug 1376202 - JBoss Data Grid xPaas max idle not set
Summary: JBoss Data Grid xPaas max idle not set
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: ImageStreams
Version: 3.2.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: kconner
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-14 20:39 UTC by Trevor Xiao
Modified: 2017-02-20 15:15 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2017-02-20 15:14:08 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CLOUD-1061 0 Major Ready for QA [JDG] CACHE_EXPIRATION_MAX_IDLE configures wrong attribute 2019-12-13 12:14:07 UTC
Red Hat Issue Tracker CLOUD-1178 0 Critical Ready for QA [JDG] Cache expiration environment variable issues 2019-12-13 12:14:07 UTC

Description Trevor Xiao 2016-09-14 20:39:57 UTC
Description of problem:
[Note: the problem is due to a typo in the infinispan-config.sh script, please see the "Additional info" section below for the fix]

In the JBoss Data Grid xPaaS image in OpenShift 3.2, the max-idle value for a cache's expiration won't be set, even if it's specified in an environment variable per https://access.redhat.com/documentation/en/red-hat-xpaas/0/paged/red-hat-xpaas-data-grid-image/chapter-4-reference.

Version-Release number of selected component (if applicable):
JBoss Data Grid 6.5, OpenShift 3.2.

How reproducible:
Always when a cache is configured with max-idle expiration.

Steps to Reproduce:
1. Set up OpenShift CDK - http://developers.redhat.com/products/cdk/overview/
2. Add JBoss image streams - https://github.com/jboss-openshift/application-templates/blob/master/jboss-image-streams.json
3. Copy the "datagrid65-basic.json" image from here - https://github.com/jboss-openshift/application-templates/tree/master/datagrid - and add the parameter DEFAULT_CACHE_EXPIRATION_MAX_IDLE with a value of 10000. 
4. Create the objects in the template.

Actual results:
The "default" cache does not have the max-idle property set in the <eviction /> parameter.

Expected results:
The "default" cache should have the max-idle property in the <eviction /> parameter set to 10000.

Additional info:
Appears to be due to a typo in the infinispan-config.sh script, located in /opt/datagrid/bin; someone apparently copy-pasted from the section on cache eviction, and didn't update the variable names. The problem line is as follows:

    local expiration="\
                    <expiration $CACHE_EXPIRATION_LIFESPAN $CACHE_EVICTION_MAX_IDLE/>"

It should be set to the following:

    local expiration="\
                    <expiration $CACHE_EXPIRATION_LIFESPAN $CACHE_EXPIRATION_MAX_IDLE/>"

Comment 1 Trevor Xiao 2016-09-14 20:46:28 UTC
Additionally, the line:

local CACHE_EXPIRATION_MAX_IDLE="max-entries=\"$(find_env "${prefix}_CACHE_EXPIRATION_MAX_IDLE")\""

should be changed to:

local CACHE_EXPIRATION_MAX_IDLE="max-idle=\"$(find_env "${prefix}_CACHE_EXPIRATION_MAX_IDLE")\""

Comment 2 kconner 2016-12-12 17:35:03 UTC
We've made changes to our upcoming image and will include these fixes in the release scheduled for the end of January.

Comment 4 Ben Parees 2017-02-20 15:14:08 UTC
closing as this is being tracked in JIRA now, which is the mechanism for middleware image issues.


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