Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation (2/2)

2014-12-11 Thread Hitoshi Mitake
+ return object_size; } static inline uint64_t data_oid_to_idx(uint64_t oid) diff --git a/lib/fec.c b/lib/fec.c index c4e7a6f..fb40773 100644 --- a/lib/fec.c +++ b/lib/fec.c @@ -696,12 +696,13 @@ out: } void fec_decode_buffer(struct fec *ctx, uint8_t *input[], const int

Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation (1/2)

2014-12-11 Thread Hitoshi Mitake
From: Hitoshi Mitake mitake.hitoshi@lab.ntt.co.jp To: Teruaki Ishizaki ishizaki.teruaki@lab.ntt.co.jp Cc: sheepdog@lists.wpkg.org Subject: Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation In-Reply-To: 1418129364-29585-4-git-send-email-ishizaki.teruaki@lab.ntt.co.jp

[sheepdog] [PATCH] sheep/ops.c: fix problem caused by uninitialized backend storage in gateway

2014-12-11 Thread Jinzhi Chen
when a new gateway(never joined a cluster before) joined a existing clsuter. `dog vdi object location` causes the new gateway exist because its backend storage is not initialized. this patch solves this problems by checking whether a node is gateway in `local_oid_exist` fucntion. simple return

Re: [sheepdog] [PATCH] sheep/ops.c: fix problem caused by uninitialized backend storage in gateway

2014-12-11 Thread Hitoshi Mitake
At Thu, 11 Dec 2014 16:30:58 +0800, Jinzhi Chen wrote: when a new gateway(never joined a cluster before) joined a existing clsuter. `dog vdi object location` causes the new gateway exist because its backend storage is not initialized. this patch solves this problems by checking whether a

Re: [sheepdog] [PATCH stable-0.8 2/3] zk_control: add list and purge queue nodes issue

2014-12-11 Thread Ruoyu
On 2014年12月10日 20:19, Hitoshi Mitake wrote: At Wed, 10 Dec 2014 19:24:04 +0800, wzy8...@139.com wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; us-ascii (base64)] Hi, All On the issue, in my production environment, it is very easy to happen(there is 20 gateway nodes and 10

[sheepdog] Build failed in Jenkins: sheepdog-build #569

2014-12-11 Thread sheepdog-jenkins
See http://jenkins.sheepdog-project.org:8080/job/sheepdog-build/569/changes Changes: [mitake.hitoshi] lib, isa-l: solve build error of isa-l [mitake.hitoshi] sheep/ops.c: fix problem caused by uninitialized backend storage in gateway -- [...truncated 51

Re: [sheepdog] [PATCH 3/3] add selectable object_size support of VDI operation (1/2)

2014-12-11 Thread Teruaki Ishizaki
@@ -451,10 +462,34 @@ static int vdi_create(int argc, char **argv) if (ret 0) return EXIT_USAGE; - if (size SD_OLD_MAX_VDI_SIZE 0 == vdi_cmd_data.store_policy) { + if (vdi_cmd_data.object_size) + old_max_total_size = +

Re: [sheepdog] [PATCH] sheep: don't clean stale dir if there are no enough nodes

2014-12-11 Thread Yang Zhang
Hi Hitoshi, We think it's a reasonable idea killing gateway nodes when there are only gateway nodes left. The VM can not read/write from/to Sheepdog in this situation anyway. We can test more latter:) Thanks, Yang, Long -原始邮件- 发件人: Hitoshi Mitake mitake.hito...@gmail.com

Re: [sheepdog] [ANNOUNCE] earthquake: a framework for distributed systems debuggers

2014-12-11 Thread Ruoyu
Sounds good. Is there any guide for earthquake? I encounter a problem when I execute the build script in the project's path. $ ./build gopath/src/code.google.com/p/goprotobuf/proto/text.go:39:2: no Go source files in /usr/lib/go/src/pkg/encoding protoc-gen-go: program not found or is not