Bug 1278778

Summary: [QE] (6.4.z) Web Console shows different Infinispan Eviction Max Entries value for default value
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Pavel Jelinek <pjelinek>
Component: Web ConsoleAssignee: Ryan Emerson <remerson>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Jelinek <pjelinek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.4.5CC: bmaxwell, cdewolf, dpospisi, hbraun, hpehl, jkudrnac, mcada, pjelinek, remerson, rpelisse, rsvoboda
Target Milestone: CR1   
Target Release: EAP 6.4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 12:02:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1274291, 1279552    

Description Pavel Jelinek 2015-11-06 11:50:49 UTC
Steps to Reproduce:
1. /profile=full/subsystem=infinispan/cache-container=hibernate/replicated-cache=test:add(mode=SYNC)
2. /profile=full/subsystem=infinispan/cache-container=hibernate/replicated-cache=test/eviction=EVICTION:add()
3. /profile=full/subsystem=infinispan/cache-container=hibernate/replicated-cache=test/eviction=EVICTION:read-resource 
{
    "outcome" => "success",
    "result" => {
        "max-entries" => -1,
        "strategy" => "NONE"
    }
}
4. Using Web Console go to Configuration > Infinispan > Replicated Caches > select test > Eviction 

Actual results: Max Entries: 0

Expected results: Max Entries: -1 or at least empty

Comment 2 Ryan Emerson 2015-11-09 13:20:47 UTC
This is because the max-entries field is marked as a NUMBER_BOX not ALLOW_NEGATIVE_NUMBER_BOX.  See [1].  

I suspect that this behaviour will also be present for LocalCache, DistributedCache and InvalidationCache i.e. all Eviction submenus.  

This issue is very much related to [2].

[1]https://github.com/hal/core/blob/2.5.x/gui/src/main/java/org/jboss/as/console/client/shared/subsys/infinispan/model/ReplicatedCache.java#L279-L280

[2]https://bugzilla.redhat.com/show_bug.cgi?id=1245173

Comment 4 JBoss JIRA Server 2015-11-12 15:28:35 UTC
Ryan Emerson <remerson> updated the status of jira HAL-956 to Open

Comment 5 JBoss JIRA Server 2015-11-12 15:28:55 UTC
Ryan Emerson <remerson> updated the status of jira HAL-956 to Coding In Progress

Comment 7 JBoss JIRA Server 2015-11-16 17:13:08 UTC
Ryan Emerson <remerson> updated the status of jira HAL-956 to Resolved

Comment 8 Michael Cada 2016-03-01 14:25:07 UTC
Verified on EAP 6.4.7.CP.CR2

Comment 9 Petr Penicka 2017-01-17 12:02:17 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.