https://github.com/eitansuez/geode-2662
https://github.com/eitansuez/geode-2662
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eitansuez/geode-2662
- Owner: eitansuez
- Created: 2017-03-27T22:23:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T22:42:27.000Z (over 9 years ago)
- Last Synced: 2025-07-01T18:10:04.012Z (about 1 year ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.adoc
Awesome Lists containing this project
README
= GEODE-2662
https://issues.apache.org/jira/browse/GEODE-2662
== Steps
. Start a cluster:
+
----
cd cluster
gfsh run --file=start.gfsh
----
+
at this point you can verify that cluster is running with a region named _Customer_:
+
----
gfsh
connect
list members
list regions
----
. Insert a couple of records:
+
----
gradle test
----
+
verify:
+
----
gfsh
connect
query --query="select * from /Customer"
----
. modify Customer.java
+
let's add a telephone number field:
+
----
git checkout modify_customer
----
. write a 3rd record
+
----
gradle test -Dtest.single=ThirdCustomer
----
. verify
+
----
gfsh
connect
query --query="select * from /Customer"
----
. check the output:
+
----
gfsh>query --query="select * from /Customer"
Result : true
startCount : 0
endCount : 20
Rows : 3
firstName | lastName | telephone
--------- | -------- | --------------
Jane | Doe | (512) 333-4444
John | Doe | null
Tom | Smith | null
NEXT_STEP_NAME : END
----
Clearly, that phone number does not belong to Jane Doe. Yet it shows up on the wrong row. In fact:
----
gfsh>query --query="select * from /Customer where lastName='Smith'"
Result : true
startCount : 0
endCount : 20
Rows : 1
firstName | lastName | telephone
--------- | -------- | --------------
Tom | Smith | (512) 333-4444
NEXT_STEP_NAME : END
----