An open API service indexing awesome lists of open source software.

https://github.com/eitansuez/geode-2662


https://github.com/eitansuez/geode-2662

Last synced: 12 months ago
JSON representation

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
----