Commit Graph

327 Commits

Author SHA1 Message Date
John Blum
ed039788e5 Edit changelog and add 1.6.0-RC1 release notes. 2021-10-21 22:10:15 -07:00
John Blum
290806702c Correct typo in the changelog for the SBDG 1.5.6 release. 2021-10-21 22:00:55 -07:00
John Blum
3417077a59 Edit changelog and include 1.5.6 release notes. 2021-10-21 21:43:15 -07:00
John Blum
21ccf19f43 Edit changelog and include 1.4.12 release notes. 2021-10-21 21:42:04 -07:00
John Blum
31ec35d615 Edit changelog and add 1.6.0-M3 release notes. 2021-09-28 16:44:27 -07:00
John Blum
142a314175 Edit changelog and include 1.5.5 release notes. 2021-09-28 14:32:56 -07:00
John Blum
5485163de5 Edit changelog and include 1.4.11 release notes. 2021-09-28 14:31:17 -07:00
John Blum
6814653a7b Edit changelog and add 1.6.0-M2 release notes. 2021-08-19 16:54:56 -07:00
John Blum
0cd0c2c2f8 Edit changelog and include 1.5.4 release notes. 2021-08-19 16:21:39 -07:00
John Blum
80d7828829 Edit changelog and include 1.4.10 release notes. 2021-08-19 16:20:33 -07:00
John Blum
78d0f14349 Add SpringExtensions abstract utility class extending the functionality of core Spring. 2021-08-18 14:44:21 -07:00
John Blum
93c067f7b9 Optimize Cassandra-based Testcontainer configuration for SBDG Inline Caching Integration Tests.
Trying to fix test failures caused by Testcontainers running in Docker on Jenkins.  The Cassandra Docker image/container is forked inside Docker running in Jenkins CI and is currently throwing:

Caused by: org.testcontainers.containers.ContainerLaunchException: Timed out waiting for container port to open (172.17.0.1 ports: [49401] should be listening)
	at org.testcontainers.containers.wait.strategy.HostPortWaitStrategy.waitUntilReady(HostPortWaitStrategy.java:49)
	at org.testcontainers.containers.wait.strategy.AbstractWaitStrategy.waitUntilReady(AbstractWaitStrategy.java:35)
	at org.testcontainers.containers.GenericContainer.waitUntilContainerStarted(GenericContainer.java:892)
	at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:440)
	... 85 more

In the Testcontainers project, I found:

https://github.com/testcontainers/testcontainers-java/issues/4360

And specifically:

https://github.com/testcontainers/testcontainers-java/issues/4360#issuecomment-892481828

The Jenkins servers (worker nodes) were recently upgraded to:

docker-ce (5:20.10.8~3-0~ubuntu-bionic)
containerd.io (1.4.9-1)
2021-08-11 16:12:33 -07:00
John Blum
6decda2f2e Edit changelog and add 1.6.0-M1 release notes. 2021-07-22 16:10:59 -07:00
John Blum
686c871ba3 Edit changelog and include 1.5.3 release notes. 2021-07-22 15:15:53 -07:00
John Blum
366d4767b3 Edit changelog add include 1.4.9 release notes. 2021-07-22 15:14:43 -07:00
John Blum
b14034c8d6 Edit changelog and include 1.5.2 release notes. 2021-06-24 19:10:34 -07:00
John Blum
20d7ee41dc Edit changelog and include 1.4.8 release notes. 2021-06-24 19:09:06 -07:00
John Blum
2c17dd09b2 Edit changelog and add 1.5.1 release notes. 2021-06-16 00:16:52 -07:00
John Blum
d54d5d7b51 Edit changelog and include 1.4.7 release notes. 2021-06-16 00:06:31 -07:00
John Blum
238b4bcca0 Edit changelog and include 1.3.12.RELEASE notes. 2021-06-16 00:04:32 -07:00
John Blum
41268fcdde Edit changelog and add 1.5.0 release notes. 2021-05-20 19:40:57 -07:00
John Blum
3c8f7aab92 Edit changelog and include 1.4.6 release notes. 2021-05-20 19:09:02 -07:00
John Blum
1ae5e8fc63 Edit changelog and include 1.3.11.RELEASE notes. 2021-05-20 18:58:31 -07:00
John Blum
92bef1280f Edit changelog and add 1.5.0-RC1 release notes. 2021-04-28 11:32:59 -07:00
John Blum
d6cb3d124a Edit changelog and include 1.4.5 release notes. 2021-04-28 11:09:47 -07:00
John Blum
6fce19f9c9 Edit changelog and include 1.3.10.RELEASE notes. 2021-04-28 11:09:06 -07:00
John Blum
7d78f06cac Edit changelog and add 1.5.0-M3 release notes. 2021-04-09 15:44:00 -07:00
John Blum
6d3267d219 Edit changelog and include 1.4.4 release notes. 2021-04-09 15:18:20 -07:00
John Blum
61af587a0d Refactor all Unit & Integration Tests starting a Spring container with SpringRunner to extend STDG's IntegrationTestsSupport. 2021-03-30 11:25:08 -07:00
John Blum
ce73d4dbc0 Create the MappingPdxSerializerIncludedTypesRegistrar utility class and Spring BeanPostProcessor used to register additional class types to be 'included' in the accepted types de/serialized as PDX with the SDG MappingPdxSerializer. 2021-03-25 01:26:46 -07:00
John Blum
b597c26b36 Edit changelog and add 1.5.0-M2 release notes. 2021-02-22 21:31:08 -08:00
John Blum
9c34c37bea Edit changelog and include 1.4.3 release notes. 2021-02-22 20:44:13 -08:00
John Blum
128395d9bf Edit changelog and include 1.3.9.RELEASE notes. 2021-02-22 20:41:58 -08:00
John Blum
ee242bece8 Refactor configureTopology(..) to delegate to configureEnvironment(:Environment).
The new 'configureEnvironment(:Environment) method attempts to add a custom PropertySource to the Environment if the Environment is configurable, otherwise proceeds in setting a Java System Property as before.

The idea is, the Environment is more recycable than Java System Properties, particularly if the Spring ApplicationContext is refreshed.

Renames DEFAULT_CLUSTER_CONDITION_MATCH to DEFAULT_CLUSTER_AWARE_CONDITION_MATCH.

Renames DEFAULT_CLUSTER_CONDITION_STRICT_MATCH to DEFAULT_CLUSTER_AWARE_CONDITION_STRICT_MATCH.
2021-01-25 13:16:35 -08:00
John Blum
d2e3f6c618 Edit changelog and add 1.5.0-M1 release notes. 2021-01-24 23:22:29 -08:00
John Blum
f018bc8d37 Adapt to API changes and behavior in Jackson 2.12.x. 2021-01-24 22:41:56 -08:00
John Blum
6de7eb30f7 Edit changelog and add 1.4.2 release notes. 2021-01-21 20:20:49 -08:00
John Blum
6f87a8a082 Remove punctuation in log messages. 2021-01-21 19:48:29 -08:00
John Blum
f6acac11b2 Declare @DirtiesContext to avoid conflicts in logger/logging cofiguration between tests in a Spring Boot (Test) context. 2021-01-21 15:45:52 -08:00
John Blum
a54c2bfb34 Add KubernetesClusterNotAvailableConfigurationIntegrationTests class.
Test and assert client Region DataPolicy configuration (PROXY).

Test and assert Environment configuration does not set the 'spring.data.gemfire.cache.client.region.shortcut' property.

Add preconditions for a Kubernetes runtime environment and logging set to INFO.
2021-01-21 14:50:11 -08:00
John Blum
3fcbf9c784 Rename CloudFoundryClusterAvailableConfigurationIntegrationTests to CloudFoundryClusterNotAvailableConfigurationIntegrationTests.
Test and assert client Region DataPolicy configuration (PROXY).

Test and assert Environment configuration does not set the 'spring.data.gemfire.cache.client.region.shortcut' property.

Add precoditions for a CloudFoundry runtime environment and logging not set to INFO.
2021-01-21 14:49:55 -08:00
John Blum
bb417f8ae0 Improve matches(..) method override to configure the clusterAvailable state on runtime environment match and iff cluster availability was not already determined.
Remove all logging from the overridden matches(..) method.

Override the configureTopology(..) method to do nothing.

Override the logConnectedRuntimeEnvironment(..) and logUnconnectedRuntimeEnvironment(..) to log appropriate messages for cloud runtime environments.

Refactor the StandaloneClusterAvailableCondition match to only act when not in a cloud runtime envrionment.
2021-01-21 14:42:48 -08:00
John Blum
2066de0f84 Add logRuntimeEnvironment(..) to centralize logging for the runtime environment in ClusterAwareConfiguration.
Remove logging from configureTopology(..) and add call to logRuntimeEnvironmet(..) from doMatch(..).

Add ClusterAwareCondition.set(:Boolean) class method to allow Condition subclasses to set the clusterAvailable state; refactor reset() to call set(null).

Edit Javadoc.
2021-01-21 14:42:36 -08:00
John Blum
d091be0498 Add assertion asserting the 'spring.data.gemfire.cache.client.region.shortcut' property is still set to 'LOCAL' even when 'strictMatch' is 'true' and no cluster is available. 2021-01-20 14:44:51 -08:00
John Blum
c8ddfa73f4 Polish local variable names in the ClusterAwareConfiguration.ClusterAwareCondition class methods. 2021-01-20 14:15:36 -08:00
John Blum
29bec96470 Edit changelog and include 1.3.8.RELEASE notes. 2021-01-19 17:27:44 -08:00
John Blum
168f980a99 Edit changelog and include 1.2.13.RELEASE notes. 2021-01-19 17:26:12 -08:00
John Blum
f53817bde7 Edit changelog and add 1.4.1 release notes. 2021-01-15 20:39:47 -08:00
John Blum
4090cf4ebd Add 'strictMatch' annotation attribute to the @EnableClusterAware annotation.
Using 'strictMatch' enables fail-fast behavior so that users can configure their Spring Boot, Apache Geode ClientCache applications to fail on startup if no cluster is available across any environment.

Additionally, enhanced the log output to give users better information about the runtime environment and whether an Apache Geode-based cluster was found and available.

Resolves gh-99.
2021-01-15 19:45:47 -08:00
John Blum
4a20f7be61 Support awareness and discovery of secure (Auth and SSL eanbled) Apache Geode clusters using @EnableClusterAware annotation functionality.
Improves log details about the runtime environment (e.g. cloud, standalone/self-managed).

Resolves gh-57.

Resolves gh-99.
2021-01-15 01:32:48 -08:00