Guest User

Untitled

a guest
Jul 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.99 KB | None | 0 0
  1. <smarlow> pferraro:  I was able to recreate the reported issue with deploying two 2lc apps and undeploying on and redeploying.
  2. <smarlow> pferraro:  I was able to recreate the reported issue with deploying two 2lc apps and undeploying one and redeploying.
  3. <smarlow> when the app redeploys, it seems to find the global component registry from before which doesn't have the infinispan custom commands anymore
  4. <smarlow> pferraro:  so it could have something to do with how we stop the 2lc (currently ignore the stop I think)
  5. <smarlow> pferraro:  smells like an infinispan bug to me or maybe a bug in org.jboss.as.jpa.hibernate4.infinispan.SharedInfinispanRegionFactory.stop() which currently doesn't do anything.  I think we need to do the mirror of start()
  6. <pferraro> doesn't do anything?
  7. <smarlow> pferraro:  it has a comment "// Do not attempt to stop our cache manager because it wasn't created by this region factory."
  8. <pferraro> right - the cache manager in this case is shared across multiple apps
  9. <pferraro> so - we wouldn't want to stop it
  10. <smarlow> oh, right, I forgot that
  11. <pferraro> the cache instances should get stopped though
  12. <pferraro> so long as they are restarted on redeploy
  13. <pferraro> which the explicit Cache.start() is meant to do
  14. <smarlow> hmm, I guess the mystery is still finding out why the hibernate-infinispan commands disappear from the global registry
  15. <pferraro> hmm - maybe nothing is stopping the cache instances on undeploy?
  16. <smarlow> I don't think anything is doing that
  17. <pferraro> actuall, that's not it - Region.destroy() stops the cache instance
  18. <smarlow> I think this was on the timestamp regiion
  19. <pferraro> I wonder why the custom commands would be gone
  20. <smarlow> where is the region.destroy logic?
  21. <pferraro> ah
  22. <pferraro> In BaseRegion
  23. <pferraro> I see the problem
  24. <pferraro> the CacheCommandFactory is only designed to be used with a single RegionFactory
  25. <pferraro> ugh
  26. <pferraro> yet it's part of the GlobalComponentRegistry
  27. <pferraro> which is a property of the cache manager
Add Comment
Please, Sign In to add comment