Bug 1328120 - [GSS](6.4.z) EAP+JDG sessions entries are removed from cache on shutdown
Summary: [GSS](6.4.z) EAP+JDG sessions entries are removed from cache on shutdown
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Clustering, Infinispan
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR1
: EAP 6.4.9
Assignee: Paul Ferraro
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks: eap649-payload 1349047 1370618
TreeView+ depends on / blocked
 
Reported: 2016-04-18 13:57 UTC by Shay Matasaro
Modified: 2019-12-16 05:40 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
: 1349047 1370618 (view as bug list)
Environment:
Last Closed: 2017-01-17 12:54:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Shay Matasaro 2016-04-18 13:57:40 UTC
scenario:
- configure EAP to store sessions on JDG
- start JDG
- start EAP
- login to eap(session created)
- jdg stats shows 1 entry
- shutdown EAP
- startup EAP
- jdg stats shows 1 entry
- shutdown EAP
- jdg stats shows 0 entries

So when EAP i shutdown for the second times it removes exiting session key.

During the second EAP shutdown , the JDG logs show :

23:50:46,076 TRACE [org.infinispan.interceptors.InvocationContextInterceptor] (HotRodServerWorker-1) Invoked with command RemoveCommand{key=[B@1086376f, value=null, flags=null, valueMatcher=MATCH_ALWAYS} and InvocationContext [org.infinispan.context.SingleKeyNonTxInvocationContext@5ba160e2]
23:50:46,077 TRACE [org.infinispan.statetransfer.StateTransferInterceptor] (HotRodServerWorker-1) handleNonTxWriteCommand for command RemoveCommand{key=[B@1086376f, value=null, flags=null, valueMatcher=MATCH_ALWAYS}, topology id -1
23:50:46,077 TRACE [org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor] (HotRodServerWorker-1) Are (node/DAL) we the lock owners for key '[B@1086376f'? true
23:50:46,077 TRACE [org.infinispan.util.concurrent.locks.LockManagerImpl] (HotRodServerWorker-1) Attempting to lock [B0x0301fe033c000054..[48] with acquisition timeout of 15000 millis
23:50:46,078 TRACE [org.infinispan.util.concurrent.locks.containers.ReentrantPerEntryLockContainer] (HotRodServerWorker-1) Creating and acquiring new lock instance for key [B0x0301fe033c000054..[48]
23:50:46,078 TRACE [org.infinispan.util.concurrent.locks.LockManagerImpl] (HotRodServerWorker-1) Successfully acquired lock [B0x0301fe033c000054..[48]!

Comment 2 Shay Matasaro 2016-04-18 14:05:54 UTC
ISPN config 
<distributed-cache name="httpSessionCache" mode="ASYNC" start="EAGER" owners="2">

EAP config

 <cache-container name="web" default-cache="dist" module="org.jboss.as.clustering.web.infinispan">
                <transport lock-timeout="60000"/>
         <replicated-cache name="dist" mode="ASYNC" batching="true">
                    <remote-store cache="httpSessionCache" socket-timeout="60000" tcp-no-delay="true" shared="true" preload="true" passivation="false" purge="false">
                        <remote-server outbound-socket-binding="remoteJDGServer"/>
                    </remote-store>
                </replicated-cache> 
            </cache-container>

Comment 3 Paul Ferraro 2016-05-02 15:07:54 UTC
This looks to be a bug in EAP.  Specifically,

Comment 4 Paul Ferraro 2016-05-02 15:08:43 UTC
(In reply to Paul Ferraro from comment #3)
> This looks to be a bug in EAP.  Specifically,

https://github.com/jbossas/jboss-eap/pull/2768
https://github.com/jbossas/jboss-eap/pull/2769

Comment 6 Jiří Bílek 2016-06-30 14:26:45 UTC
Verified with EAP 6.4.9.CP.CR2

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


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