[geode] branch develop updated (4d635aa -> eda23b4)
This is an automated email from the ASF dual-hosted git repository. kmiller pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/geode.git. from 4d635aa GEODE-7255: Pickup Jackson CVE fix (#4102) add eda23b4 GEODE-7280 Clarify docs: DELETE V1 only for replicated regions (#4133) No new revisions were added by this update. Summary of changes: geode-docs/rest_apps/delete_all_data.html.md.erb | 1 + geode-docs/rest_apps/develop_rest_apps.html.md.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
[geode-native] branch moleske-patch-1 deleted (was 2e042a4)
This is an automated email from the ASF dual-hosted git repository. moleske pushed a change to branch moleske-patch-1 in repository https://gitbox.apache.org/repos/asf/geode-native.git. was 2e042a4 proper javascript link The revisions that were on this branch are still contained in other references; therefore, this change does not discard any commits from the repository.
[geode-native] branch develop updated (85aa0fe -> b2cd5b6)
This is an automated email from the ASF dual-hosted git repository. moleske pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/geode-native.git. from 85aa0fe GEODE-7262: Split Geode Native Client guide into language-specific editions (#532) new fae080a Add LGTM Badges new b2cd5b6 proper javascript link The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
[geode-native] 02/02: proper javascript link
This is an automated email from the ASF dual-hosted git repository. moleske pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode-native.git commit b2cd5b6b8ab4ce45f072f0d379a4b5e1426f9ed7 Author: M. Oleske AuthorDate: Sat Oct 5 14:32:14 2019 -0700 proper javascript link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff7931a..86256ef 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [https://geode.apache.org/img/apache_geode_logo.png"; align="center"/>](http://geode.apache.org) -[![Build Status](https://travis-ci.org/apache/geode-native.svg?branch=develop)](https://travis-ci.org/apache/geode-native) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/geode-native.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/geode-native/alerts/) [![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/apache/geode-native.svg?l [...] +[![Build Status](https://travis-ci.org/apache/geode-native.svg?branch=develop)](https://travis-ci.org/apache/geode-native) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/geode-native.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/geode-native/alerts/) [![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/apache/geode-native.svg?l [...] **[Overview](#overview)** **[Building from Source](#building)**
[geode-native] 01/02: Add LGTM Badges
This is an automated email from the ASF dual-hosted git repository. moleske pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode-native.git commit fae080af2246d702bfc8cd8f3c83bfa695debcac Author: M. Oleske AuthorDate: Sat Oct 5 14:30:00 2019 -0700 Add LGTM Badges - remove bad introduction link --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e63a8e..ff7931a 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ [https://geode.apache.org/img/apache_geode_logo.png"; align="center"/>](http://geode.apache.org) -[![Build Status](https://travis-ci.org/apache/geode-native.svg?branch=develop)](https://travis-ci.org/apache/geode-native) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) +[![Build Status](https://travis-ci.org/apache/geode-native.svg?branch=develop)](https://travis-ci.org/apache/geode-native) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0) [![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/geode-native.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/geode-native/alerts/) [![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/apache/geode-native.svg?l [...] **[Overview](#overview)** **[Building from Source](#building)** -**[Introduction](#started)** **[Application Development](#development)** ## Overview
[geode] branch develop updated (49612da -> 4d635aa)
This is an automated email from the ASF dual-hosted git repository. mhanson pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/geode.git. from 49612da GEODE-6992: Deprecate allowUntrustedMethodInvocation (#4127) add 4d635aa GEODE-7255: Pickup Jackson CVE fix (#4102) No new revisions were added by this update. Summary of changes: boms/geode-all-bom/src/test/resources/expected-pom.xml| 8 .../org/apache/geode/gradle/plugins/DependencyConstraints.groovy | 4 ++-- geode-assembly/src/integrationTest/resources/assembly_content.txt | 6 +++--- .../src/integrationTest/resources/dependency_classpath.txt| 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-)
[geode-examples] branch develop updated: GEODE-2256: Colocation example (#88)
This is an automated email from the ASF dual-hosted git repository. dbarnes pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/geode-examples.git The following commit(s) were added to refs/heads/develop by this push: new 8e4b415 GEODE-2256: Colocation example (#88) 8e4b415 is described below commit 8e4b41559bdcc15addacd91244c0885b8654e2bb Author: Alberto Bustamante Reyes AuthorDate: Tue Oct 8 17:23:08 2019 +0200 GEODE-2256: Colocation example (#88) --- README.md | 3 +- colocation/README.md | 53 + colocation/scripts/start.gfsh | 30 ++ colocation/scripts/stop.gfsh | 19 ++ .../apache/geode_examples/colocation/Customer.java | 57 ++ .../apache/geode_examples/colocation/Example.java | 67 ++ .../apache/geode_examples/colocation/Order.java| 42 ++ .../apache/geode_examples/colocation/OrderKey.java | 67 ++ .../colocation/OrderPartitionResolver.java | 32 +++ settings.gradle| 1 + 10 files changed, 370 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 502666c..00fade2 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,8 @@ tutorial. * [Eviction](eviction/README.md) * [Expiration](expiration/README.md) * [Overflow](overflow/README.md) -* Security +* [Security & SSL](clientSecurity/README.md) +* [Colocation](colocation/README.md) * Off-heap ### Advanced diff --git a/colocation/README.md b/colocation/README.md new file mode 100644 index 000..f2be2c8 --- /dev/null +++ b/colocation/README.md @@ -0,0 +1,53 @@ + + +# Geode colocation example + +This is a simple example that illustrates how to colocate the data of two regions. + +By default, Geode selects the data locations for a partitioned region independent of the data locations for any other partitioned region using a hashing policy on the key. This example shows how to modify this policy in order to store related data from two regions (`order`and `customer`) in the same member. + +`customer` region stores `Customer` objects using an `int` as key: + + ``` +Region customerRegion +``` + +`order` region stores `Order` object using an `OrderKey` object as key: + +``` +Region accountRegion +``` +In order to store `Order` objects in the same member than their related customer info, a custom partition-resolved is needed: `OrderPartitionResolved`. When this partition resolver receives an `OrderKey` object, it returns the same key (the customer id) that was used to store the related customer. In this way, Geode applies the hashing policy over the same key for `Order`and `Customer` related objects and as a consequence, they are stored in the same member. + +## Steps + +1. From the `geode-examples/colocation` directory, build the example. + +$ ../gradlew build + +2. Next start a locator, start two servers, create `customer` region, and create `order`region colocated with `customer` region. + +$ ../gradlew start + +3. Run the example to put entries into both regions. + +$ ../gradlew run + +4. Shut down the system. + +$ ../gradlew stop diff --git a/colocation/scripts/start.gfsh b/colocation/scripts/start.gfsh new file mode 100644 index 000..679432a --- /dev/null +++ b/colocation/scripts/start.gfsh @@ -0,0 +1,30 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +start locator --name=locator --bind-address=127.0.0.1 + +start server --name=server1 --locators=127.0.0.1[10334] --server-port=0 --classpath=../build/classes/java/main +start server --name=server2 --locators=127.0.0.1[10334] --server-port=0 --classpath=../build/classes/java/main + +create region --name=customer --type=PARTITION +create region --name=order --type=PARTITION --colocated-with=/customer \ + --partition-resolver=org.apache.geode_examples.colocation.OrderPartitionResolver + +list members +describe region --name=customer +describe region --name=order + diff --git a/colocation/scripts/stop.gfsh b/colocation/scripts/stop.gfsh new file mode 100644 index 000..15cd9
[geode] branch develop updated (a653e50 -> 49612da)
This is an automated email from the ASF dual-hosted git repository. jjramos pushed a change to branch develop in repository https://gitbox.apache.org/repos/asf/geode.git. from a653e50 GEODE-7151: Remove some unused classes (#3995) add 49612da GEODE-6992: Deprecate allowUntrustedMethodInvocation (#4127) No new revisions were added by this update. Summary of changes: .../cache/query/internal/DefaultQueryService.java | 22 ++ 1 file changed, 18 insertions(+), 4 deletions(-)