# The issue about use java client benchmark

**URL:** <https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237>\
**Category:** Aerospike Server Benchmarks\
**Created:** [June 6, 2017, 10:06am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237 "2017-06-06T10:06:18Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![RockyTu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rockytu/32/785_2.png) [@RockyTu](https://discuss.aerospike.com/u/RockyTu)\
**Post date:** [June 6, 2017, 10:06am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/1 "2017-06-06T10:06:18Z")

</div>

I run following java client benchmark, I encounter “peers-clear-std response is empty” issue. I know sometimes, the timeout is normal on benchmark test, but it never throw any exception, just log timeout. I suspect there is any issue between my cluster. Maybe connection or others.

```
./run_benchmarks -h 10.16.100.4 -p 3000 -n production -k 1000 -S 1 -o B:120000 -b 3 -w RU,0 -z 20 -T 10000

2017-06-06 09:36:50.961 write(tps=119 timeouts=0 errors=0) read(tps=0 timeouts=0 errors=0) total(tps=119 timeouts=0 errors=0)
2017-06-06 09:36:51.513 WARN Thread tend Node BB9D1625C3EF262 10.16.100.6 3000 refresh failed: java.net.SocketTimeoutException: Read timed out
2017-06-06 09:36:51.515 WARN Thread tend Node BB953EBC8D8CC22 10.16.100.4 3000 refresh failed: com.aerospike.client.AerospikeException$Parse: Error Code -2: peers-clear-std response is empty
        at com.aerospike.client.cluster.PeerParser.<init>(PeerParser.java:46)
        at com.aerospike.client.cluster.Node.refreshPeers(Node.java:311)
        at com.aerospike.client.cluster.Cluster.tend(Cluster.java:363)
        at com.aerospike.client.cluster.Cluster.run(Cluster.java:317)
        at java.lang.Thread.run(Thread.java:748)

2017-06-06 09:36:51.516 WARN Thread tend Node BB9AAC121CE6DB2 10.16.100.8 3000 refresh failed: com.aerospike.client.AerospikeException$Parse: Error Code -2: peers-clear-std response is empty
        at com.aerospike.client.cluster.PeerParser.<init>(PeerParser.java:46)
        at com.aerospike.client.cluster.Node.refreshPeers(Node.java:311)
        at com.aerospike.client.cluster.Cluster.tend(Cluster.java:363)
        at com.aerospike.client.cluster.Cluster.run(Cluster.java:317)
        at java.lang.Thread.run(Thread.java:748)

```

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [June 7, 2017, 9:58pm UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/2 "2017-06-07T21:58:51Z")

</div>

Sounds like its getting an empty response of nodes that should have a list of nodes in the cluster. Can you supply versions?

---

<div class="post-metadata">

**Author:** ![RockyTu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rockytu/32/785_2.png) [@RockyTu](https://discuss.aerospike.com/u/RockyTu)\
**Post date:** [June 8, 2017, 3:35am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/3 "2017-06-08T03:35:05Z")

</div>

Aerospike CE 3.9.1

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [June 8, 2017, 3:47am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/4 "2017-06-08T03:47:00Z")

</div>

Version of benchmark client?

---

<div class="post-metadata">

**Author:** ![RockyTu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rockytu/32/785_2.png) [@RockyTu](https://discuss.aerospike.com/u/RockyTu)\
**Post date:** [June 8, 2017, 3:48am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/5 "2017-06-08T03:48:33Z")

</div>

the latest one, it seems 4.0.1.

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [June 8, 2017, 5:09am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/6 "2017-06-08T05:09:27Z")

</div>

And the client version you have installed?

---

<div class="post-metadata">

**Author:** ![RockyTu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rockytu/32/785_2.png) [@RockyTu](https://discuss.aerospike.com/u/RockyTu)\
**Post date:** [June 8, 2017, 5:29am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/7 "2017-06-08T05:29:06Z")

</div>

java client version is 4.0.1 commit 859ad8f01208d56cc4016ffc11036c7bd7d05f97 Author: Brian Nichols [bnichols@aerospike.com](mailto:bnichols@aerospike.com) Date: Tue May 30 15:53:41 2017 -0700

```
Update version 4.0.1

```

---

<div class="post-metadata">

**Author:** ![Brian](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/brian/32/2211_2.png) [@Brian](https://discuss.aerospike.com/u/Brian)\
**Post date:** [June 8, 2017, 10:43pm UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/8 "2017-06-08T22:43:30Z")

</div>

The “peers-clear-std response is empty” is a benign bug. Here is what is happening.

1. The cluster tend request to two nodes fails. The expected “refresh failed” log message is displayed for these nodes.

2. The client mistakenly assumes that the peers protocol is enabled after this failure and requests peers from the server.

3. Your server version 3.9.1 does not support the peers protocol and returns an error.

We will modify the java client to only request peers on servers that support it (server versions \>= 3.10.x).

---

<div class="post-metadata">

**Author:** ![RockyTu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rockytu/32/785_2.png) [@RockyTu](https://discuss.aerospike.com/u/RockyTu)\
**Post date:** [June 9, 2017, 1:34am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/9 "2017-06-09T01:34:11Z")

</div>

Thanks, if currently I cannot upgrade server, which version benchmark do you recommend？

---

<div class="post-metadata">

**Author:** ![Brian](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/brian/32/2211_2.png) [@Brian](https://discuss.aerospike.com/u/Brian)\
**Post date:** [June 9, 2017, 1:45am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/10 "2017-06-09T01:45:14Z")

</div>

Your current java client will work, just ignore the “peers” error message. The peers error message will only occur when the cluster tend can’t reach nodes.

You need to resolve why the client can’t reliably reach 10.16.100.6 within the default 1 second timeout. That is a different issue altogether.

---

<div class="post-metadata">

**Author:** ![RockyTu](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/rockytu/32/785_2.png) [@RockyTu](https://discuss.aerospike.com/u/RockyTu)\
**Post date:** [June 9, 2017, 1:52am UTC](https://discuss.aerospike.com/t/the-issue-about-use-java-client-benchmark/4237/11 "2017-06-09T01:52:16Z")

</div>

does mesh mode support 1 node disconnect and the cluster work fine？ it seems if one node disconnect to the cluster, many heartbeat warning message in other node and in the client also report it.
