Fixed failing Spring GemFire integration tests (whem mocking is disabled) during the Nightly build: CacheNamespaceTest.testCacheWithAutoReconnectEnabled as well as all test cases in the DiskStoreAndEvictionRegionParsingTest test suite class. The test failures were caused by the introduction of the GemFire 8 dependency and new constraint enforcements. Also made additional modifications and cleanup to the CacheClusterConfigurationIntegrationTests and related classes/components and files in an attempt to get the test passing reliably in the Bamboo CI env. Seems a race condition is occuring between the time the Locator starts along with when the shared, cluster-based configuration service is actually running and when the GemFire Server date node (test class) requests the shared, persistent, cluster configuration from the Locator.
This commit is contained in:
@@ -1,44 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:gfe="http://www.springframework.org/schema/gemfire"
|
||||
xmlns:p="http://www.springframework.org/schema/p"
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xmlns:gfe="http://www.springframework.org/schema/gemfire"
|
||||
xmlns:util="http://www.springframework.org/schema/util"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
|
||||
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
|
||||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
|
||||
">
|
||||
|
||||
<gfe:cache/>
|
||||
|
||||
<util:properties id="props">
|
||||
<prop key="location">./build/tmp</prop>
|
||||
<prop key="queueSize">50</prop>
|
||||
<prop key="autoCompact">true</prop>
|
||||
<prop key="maxOpLogSize">10</prop>
|
||||
<prop key="location">./build/tmp</prop>
|
||||
<prop key="maxOpLogSize">1</prop>
|
||||
<prop key="maxSize">10</prop>
|
||||
<prop key="queueSize">50</prop>
|
||||
<prop key="timeInterval">9999</prop>
|
||||
<prop key="maxSize">1</prop>
|
||||
<prop key="ttl">300</prop>
|
||||
</util:properties>
|
||||
|
||||
|
||||
<context:property-placeholder properties-ref="props"/>
|
||||
|
||||
<gfe:disk-store id="diskStore1" queue-size="${queueSize}" auto-compact="${autoCompact}"
|
||||
max-oplog-size="${maxOpLogSize}" time-interval="${timeInterval}">
|
||||
<gfe:disk-store id="diskStore1" auto-compact="${autoCompact}" max-oplog-size="${maxOpLogSize}"
|
||||
queue-size="${queueSize}" time-interval="${timeInterval}">
|
||||
<gfe:disk-dir location="${location}" max-size="${maxSize}"/>
|
||||
</gfe:disk-store>
|
||||
|
||||
<gfe:partitioned-region id="partitioned-data-with-timeout" disk-store-ref="diskStore1" persistent="true">
|
||||
|
||||
<gfe:disk-store id="ds2" auto-compact="true" max-oplog-size="1" queue-size="50" time-interval="9999">
|
||||
<gfe:disk-dir location="./" max-size="10"/>
|
||||
</gfe:disk-store>
|
||||
|
||||
<gfe:partitioned-region id="partition-data" persistent="true" disk-store-ref="ds2">
|
||||
<gfe:eviction type="MEMORY_SIZE" threshold="10" action="LOCAL_DESTROY">
|
||||
<gfe:object-sizer>
|
||||
<bean class="org.springframework.data.gemfire.SimpleObjectSizer"/>
|
||||
</gfe:object-sizer>
|
||||
</gfe:eviction>
|
||||
</gfe:partitioned-region>
|
||||
|
||||
<gfe:partitioned-region id="partitioned-data-with-timeout" persistent="true" disk-store-ref="diskStore1">
|
||||
<gfe:entry-ttl timeout="${ttl}" action="DESTROY"/>
|
||||
</gfe:partitioned-region>
|
||||
|
||||
<gfe:replicated-region id="replicated-data" close="true" destroy="false" disk-store-ref="diskStore1" persistent="false">
|
||||
|
||||
<gfe:replicated-region id="replicated-data" persistent="false" disk-store-ref="diskStore1" close="true" destroy="false">
|
||||
<gfe:region-ttl timeout="${ttl}" action="DESTROY"/>
|
||||
<gfe:region-tti timeout="400" action="INVALIDATE"/>
|
||||
|
||||
<gfe:entry-ttl timeout="100" action="DESTROY"/>
|
||||
<gfe:entry-tti timeout="200" action="INVALIDATE"/>
|
||||
|
||||
<gfe:eviction type="ENTRY_COUNT" threshold="50" action="OVERFLOW_TO_DISK"/>
|
||||
</gfe:replicated-region>
|
||||
|
||||
@@ -49,18 +61,6 @@
|
||||
</gfe:custom-entry-tti>
|
||||
</gfe:replicated-region>
|
||||
|
||||
<gfe:partitioned-region id="partition-data" persistent="true" disk-store-ref="ds2">
|
||||
<gfe:eviction type="MEMORY_SIZE" threshold="10" action="LOCAL_DESTROY">
|
||||
<gfe:object-sizer>
|
||||
<bean class="org.springframework.data.gemfire.SimpleObjectSizer"/>
|
||||
</gfe:object-sizer>
|
||||
</gfe:eviction>
|
||||
</gfe:partitioned-region>
|
||||
|
||||
<gfe:disk-store id="ds2" queue-size="50" auto-compact="true" max-oplog-size="10" time-interval="9999">
|
||||
<gfe:disk-dir location="./" max-size="1"/>
|
||||
</gfe:disk-store>
|
||||
|
||||
<bean id="customExpiry" class="org.springframework.data.gemfire.config.DiskStoreAndEvictionRegionParsingTest.TestCustomExpiry"/>
|
||||
|
||||
</beans>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user