Commit Graph

203 Commits

Author SHA1 Message Date
Gail Badner 1ed76e801b HHH-10287 - Cache keys no longer include the entity type 2016-06-07 15:30:27 -07:00
Radim Vansa 52cdb3c766 HHH-10329 ClassCastException on runtime with Infinispan 8.0.1.Final
* upgraded Infinispan version to 7.2.5.Final (contains fix for ISPN-5676)
* removed workaround introduced in HHH-10023
* made TypeEquivalence more robust when dealing with objects that do not belong to the type
2016-03-11 15:30:24 +02:00
Paul Ferraro 213478fc7d HHH-10546 InfinispanRegionFactory should stop any caches it starts 2016-03-01 14:11:37 -08:00
Paul Ferraro 627ecb97b0 HHH-10545 InfinispanRegionFactory inadvertently starts the default cache during stop() 2016-03-01 14:11:37 -08:00
Paul Ferraro dc4c6a7f4c HHH-10416 Drop superfluous immutable-entity cache configuration. Default to entity cache configuration if undefined. 2016-01-12 17:49:06 -06:00
Steve Ebersole e79d5d4b39 HHH-10307 - JTA no longer transitively provided (HHH-10178) causes problems for apps not using JTA
(cherry picked from commit b1d1a3c143)
2016-01-08 11:13:40 -06:00
Galder Zamarreño 52f123fd12 HHH-10344 Make transactional invalidation backwards compatible
(cherry picked from commit 05aaeb1963)
2015-12-16 12:16:44 -06:00
Sanne Grinovero 62fd52ad59 HHH-10379 Remove dependency to rhq-pluginAnnotations 2015-12-15 16:54:23 +00:00
Galder Zamarreño 5373114bc7 HHH-10306 Add missing license header 2015-11-27 13:25:16 +01:00
Galder Zamarreño c4d5e3b950 HHH-10306 Plug Externalizers via module initializer 2015-11-27 10:04:58 +01:00
Radim Vansa cc61914f0f HHH-10185 In nonstrict-read-write mode the remove may be not applied 2015-11-26 15:06:11 +01:00
Radim Vansa 33962a012e HHH-10272 Make pending-puts cache template configurable 2015-11-18 11:43:26 -06:00
Steve Ebersole 682c0642e2 HHH-10178 - Move Geronimo JTA jar to provided configuration (non-transitive)
(cherry picked from commit 4793ca30a2)
2015-11-17 10:24:08 -06:00
Radim Vansa 957a210610 HHH-10163 QueryResultsRegion is not invalidated from evictAll() 2015-11-02 09:38:26 +01:00
Steve Ebersole b0e6974142 Changed version in main build.gradle for master branch to 5.1.0-SNAPSHOT 2015-09-30 14:22:07 -05:00
Radim Vansa 282893605c HHH-10101 Implement nonstrict-read-write mode in Infinispan 2LC
* requires non-transactional cache in repl/dist/local mode and versioned entities
2015-09-30 15:07:45 +02:00
Radim Vansa b9a2128709 HHH-10083 Support replicated and distributed caches 2015-09-16 15:09:48 +02:00
Radim Vansa 64f91f1a15 HHH-10030 Add read-write cache concurrency strategy to Infinispan 2LC
* AccessType.READ_WRITE is now supported cache concurrency strategy
* Added checks that we're caching in local or invalidation cache (distributed and replicated cache does not work ATM)
* Refactored test-suite: Running on both transactional and read-write caches (these should yield the same results)
** CustomParemeterized runner is used for that
** Moved all entities used in functional tests to one package
** Removed already disabled tests related to class loaders (not needed since Infinispan 5.1)

(cherry picked from commit 3689924d74)
2015-09-03 08:15:44 -05:00
Radim Vansa 92e328be0d HHH-10057 hibernate-infinispan incompatible with Infinispan 8.0.0.CR1
* ISPN-5609 changed InvalidateCommand constructors: used reflection to work around that; now should work with 8.0.0.CR1
* renamed BeginInvalidationCommand.getLockOwner to getSessionTransactionId() to prevent further conflicts
* added commands tests

(cherry picked from commit 64137c3619)
2015-09-01 12:02:15 -05:00
Radim Vansa 2057bb3f1d HHH-10023 Make hibernate-infinispan compiled with Infinispan 7.x but runnable with Infinispan 8.x
* workaround for ISPN-5676
* fix for ClassCastException in ClusteredTimestampsRegionImpl
* minor fixes in the testsuite
2015-08-20 13:37:37 +02:00
Steve Ebersole 11b358305a HHH-10040 - Fix problem with incomplete Iterator impl 2015-08-19 12:21:57 -05:00
Radim Vansa 6191489ca3 HHH-9928 Pending put leaks when the entity is not found in DB 2015-08-12 10:55:49 +02:00
Radim Vansa 93d39fa470 HHH-9868, HHH-9881 Must not write into non-transactional caches during transactional write
* The write can only invalidate (remove) the entry and block further PFERs of that entry
* After successful DB update, if there have not been any concurrent updates the value can be PFERed into the cache
2015-08-12 10:39:22 +02:00
Radim Vansa 19c14cee9a HHH-9868, HHH-9881 Removed references to TransactionManager from PutFromLoadValidator
* Also removed put() instead of PFER() after region invalidation
* Relaxed test that required that session.load() after cache.evictAll() in the same transaction cached the loaded entity
2015-08-12 10:39:21 +02:00
Radim Vansa c8ed5e1bef HHH-9898 Test for correct behaviour of 2LC
* Test is marked as ignored since it is expected to run it only manually
2015-08-12 10:39:21 +02:00
Radim Vansa 984125e87e HHH-9868, HHH-9881 Replaced access to TransactionManager with Session 2015-08-12 10:39:20 +02:00
Radim Vansa 1f24fa6354 HHH-9868, HHH-9881 Implementation for non-transactional caches and non-JTA transactions. 2015-08-12 10:39:19 +02:00
Radim Vansa fa7265ff0e HHH-9881 Pending put needs to be invalidated on update on remote node
* This could lead to performance degradation since new EndInvalidatingCommand
  needs to be send after transaction is committed
2015-08-12 10:39:18 +02:00
Radim Vansa 4b2a78785e HHH-9868 Infinispan 2LC can store stale data
* invalidation blocks putFromLoads until the transaction with invalidation
  is committed
* rewritten the naked puts support: timestamp is stored in the pendingPutMap
  and removal of the record relies on pending puts' idle expiration or
  piggy-backs on release from putFromLoad
2015-08-12 10:39:18 +02:00
Radim Vansa fa8e94071f HHH-9988 Separate transaction manager used for Hibernate and caches 2015-08-12 10:39:17 +02:00
Radim Vansa c952a843fa HHH-10023 Make hibernate-infinispan compiled with Infinispan 7.x but runnable with Infinispan 8.x 2015-08-12 10:39:16 +02:00
Sanne Grinovero bd6bb7b841 HHH-10021 Allow the exact version of Infinispan to be used for testing to be overriden from commandline 2015-08-06 10:55:52 +01:00
Sanne Grinovero 8c5c291bee HHH-10021 Allow easy testing of hibernate-infinispan against Infinispan 7 or 8 2015-08-06 10:33:39 +01:00
Andrea Boriero 4da260b3be HHH-9990 - Enabled batched updates for versioned data by default 2015-08-05 11:27:18 +01:00
Radim Vansa ab4c6841df HHH-10005 Query in context needs precedence over query in cache 2015-07-30 18:31:26 +02:00
Sanne Grinovero 44e7171edd HHH-10001 Make the testsuite compatible with Infinispan 8 2015-07-30 14:51:25 +01:00
Paul Ferraro 60c109c1a4 HHH-9999 Fix use of deprecated API
This fixes compatibility with Infinispan 8.0
2015-07-29 16:06:44 -04:00
Radim Vansa 0cb00db3b9 HHH-7898 Regression on org.hibernate.cache.infinispan.query.QueryResultsRegionImpl.put(Object, Object)
* Moved query cache update to second phase of transaction commit
* Query caches are now recommended to be non-transactional (transactional ones will be slower)
2015-07-28 18:02:17 +01:00
Radim Vansa 4fd7680191 HHH-9977 Consider options for passing Session to caching SPI calls
* Passing SessionImplementor to all the calls executed in transactional context
2015-07-28 17:56:55 +01:00
Radim Vansa 2f1b67b03f HHH-9843 Use optimized cache key implementation in Infinispan 2LC
* When multi-tenancy is not used, entity's @Id can be used as key to the cache
* Added Type to CacheDataDescription (in SPI), later used for container key equivalence
* Introduced CacheKeysFactory to SPI
* Pending puts cache is now per region - this is necessary as we need to use custom key equivalence
2015-07-06 11:40:17 -05:00
Radim Vansa bcf38a02b5 HHH-9800 Numerous hibernate-infinispan tests continue to fail transiently
The original cause was JGRP-1931, but this replaces fixed delays with eventual asserts (with 10 seconds timeouts).
2015-07-06 11:25:25 -05:00
Radim Vansa cffe71aeba HHH-9840 Change all kinds of CacheKey contract to a raw Object
* Replaced all CacheKey with Object
* Because of statistics, added unwrap operation to all AccessStrategies
2015-07-01 23:14:13 +01:00
Sanne Grinovero 16ae00a53a HHH-9840 Allow 2nd level cache implementations to customize the various key implementations 2015-07-01 20:42:51 +01:00
Sanne Grinovero 1e54ee3dc1 HHH-9874 Do not leak the configuration resource stream 2015-06-19 18:41:00 +01:00
Sanne Grinovero f593a9c14a HHH-9874 Perform Infinispan configuration parsing using the classloader of the cache integration module 2015-06-19 18:41:00 +01:00
Sanne Grinovero 3d27b29468 HHH-9874 Improve resource lookup for the Infinispan configuration resources 2015-06-19 17:38:22 +01:00
Steve Ebersole 9e063ffa25 HHH-9837 - Remove reliance during annotation binding on org.hibernate.internal.util.ClassLoaderHelper
HHH-9841 - Redesign org.hibernate.property.PropertyAccessorFactory
2015-06-04 14:12:17 -05:00
Andrea Boriero 6417a469f9 HHH-9695 - Fix merge conflicts and checkStyle failure 2015-05-27 19:59:34 +01:00
rvansa ccc83405c4 HHH-9695 Use non-transactional cache for immutable entities 2015-05-27 19:20:28 +01:00
rvansa d46bfb3d80 HHH-9787 Remove outdated Infinispan configuration elements 2015-05-19 13:35:34 +02:00