[sheepdog] [PATCH] add helper to do linear search and removing key in an array

Kai Zhang kyle at zelin.io
Tue Jun 18 05:45:37 CEST 2013


On Jun 18, 2013, at 11:43 AM, MORITA Kazutaka <morita.kazutaka at gmail.com> wrote:

> What are the testcase and the cluster driver?

As far as I can see, 001 and 002 failed on local driver.

--- 001.out	2013-06-17 20:00:22.000000000 -0700
+++ 001.out.bad	2013-06-17 20:44:13.000000000 -0700
@@ -1,46 +1,3 @@
 QA output created by 001
 using backend plain store
-check whether Sheepdog is running with only one node
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      4 [127.0.0.1:7002]
-DATE      3 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      2 []
-DATE      1 []
-check whether all nodes have the same cluster info
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      6 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-DATE      5 [127.0.0.1:7000, 127.0.0.1:7002]
-DATE      4 [127.0.0.1:7002]
-DATE      3 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001]
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      6 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-DATE      5 [127.0.0.1:7000, 127.0.0.1:7002]
-DATE      4 [127.0.0.1:7002]
-DATE      3 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001]
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      6 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-DATE      5 [127.0.0.1:7000, 127.0.0.1:7002]
-DATE      4 [127.0.0.1:7002]
-DATE      3 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001]
+ERROR: too many sheep in cluster: 4

--- 002.out	2013-06-17 20:00:22.000000000 -0700
+++ 002.out.bad	2013-06-17 20:45:24.000000000 -0700
@@ -1,42 +1,3 @@
 QA output created by 002
 using backend plain store
-check whether Sheepdog is running with only one node
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      3 [127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-check whether all nodes have the same cluster info
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      5 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-DATE      4 [127.0.0.1:7000, 127.0.0.1:7002]
-DATE      3 [127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      5 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-DATE      4 [127.0.0.1:7000, 127.0.0.1:7002]
-DATE      3 [127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-Cluster status: running, auto-recovery enabled
-
-Cluster created at DATE
-
-Epoch Time           Version
-DATE      5 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
-DATE      4 [127.0.0.1:7000, 127.0.0.1:7002]
-DATE      3 [127.0.0.1:7002]
-DATE      2 [127.0.0.1:7001, 127.0.0.1:7002]
-DATE      1 [127.0.0.1:7000, 127.0.0.1:7001, 127.0.0.1:7002]
+sheep 1 is expected to be stopped, but not.


Thanks,
Kyle
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130618/bd6b8595/attachment-0004.html>


More information about the sheepdog mailing list