[sheepdog] [PATCH v2 0/2] don't remove objects when they might be necessary
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Sun Aug 26 03:04:50 CEST 2012
Changes from v1:
- move all objects in the working directory to the stale directory in
purge_obj()
This series depends on
http://lists.wpkg.org/pipermail/sheepdog/2012-August/006322.html
We shouldn't remove objects until object recovery completely finishes.
With this patch, even if we wrongly stop more sheeps than the
redundancy level at the same time, sheepdog can recover objects
automatically after they start up. Even if sheepdog crashes
unexpectedly, we can recover objects from the stale directory manually
at worst.
MORITA Kazutaka (2):
tests: add test to check recovery after many nodes failed
store: make objects stale when sheep starts
sheep/plain_store.c | 15 ++++++---
tests/033 | 59 ++++++++++++++++++++++++++++++++++++
tests/033.out | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++
tests/group | 1 +
4 files changed, 152 insertions(+), 5 deletions(-)
create mode 100755 tests/033
create mode 100644 tests/033.out
--
1.7.2.5
More information about the sheepdog
mailing list