I started from scratch with a clean copy of the the GEODE-33 branch, and
ran the replicated
example.  Everything worked well.

+1


On Thu, Jul 7, 2016 at 4:54 PM, markito <g...@git.apache.org> wrote:

> Github user markito commented on a diff in the pull request:
>
>
> https://github.com/apache/incubator-geode/pull/171#discussion_r70007678
>
>     --- Diff: geode-examples/replicated/README.md ---
>     @@ -0,0 +1,47 @@
>     +# Geode replicated region example
>     +
>     +This is one of the most basic examples.
>     +Two servers host a replicated region.
>     +The producer puts 50 entries into the replicated region. The consumer
> prints the number of entries in the region.
>     +
>     +## Steps
>     +1. From the ```geode-examples/replicated``` directory, start the
> locator and two servers:
>     +
>     +        $ scripts/startAll.sh
>     +
>     +2. Run the producer:
>     +
>     +        $ gradle run -Pmain=Producer
>     +        ...
>     +        ...
>     +        INFO: Done. Inserted 50 entries.
>     +
>     +3. Run the consumer:
>     +
>     +        $ gradle run -Pmain=Consumer
>     +        ...
>     +        ...
>     +        INFO: Done. 50 entries available on the server(s).
>     +
>     +4. Kill one of the servers:
>     +
>     +        $ gfsh
>     +        ...
>     +        gfsh>connect
>     +        gfsh>stop server --name=server1
>     +        gfsh>quit
>     +
>     +5. Run the consumer a second time, and notice that all the entries
> are still available due to replication:
>     +
>     +        $ gradle run -Pmain=Consumer
>     +        ...
>     +        ...
>     +        INFO: Done. 50 entries available on the server(s).
>     +
>     +6. Shutdown the system:
>     +
>     +        $ scripts/stopAll.sh
>     +
>     +This example is a simple demonstration on basic APIs of Geode, as
> well how to write tests using mocks for Geode applications.
>     +
>     +TODO: assume jUnit4
>     --- End diff --
>
>     Oops, let's remove that line... Not needed anymore.  Thanks.
>
>
> ---
> If your project is set up for it, you can reply to this email and have your
> reply appear on GitHub as well. If your project does not have this feature
> enabled and wishes so, or if the feature is enabled but not working, please
> contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
> with INFRA.
> ---
>

Reply via email to