From 94a6911f267379a7d0fb33be594e22a1e1565155 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 12:18:57 +0200 Subject: [PATCH 001/373] point to opam's OCAML_LIBDIR --- pylabs/test/server/quick/test_client_lib.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pylabs/test/server/quick/test_client_lib.py b/pylabs/test/server/quick/test_client_lib.py index 0c788240..3c48cf24 100644 --- a/pylabs/test/server/quick/test_client_lib.py +++ b/pylabs/test/server/quick/test_client_lib.py @@ -15,19 +15,30 @@ """ from Compat import X +import os def test_client_lib(): my_temp = '/tmp/client_lib_test' + OCAML_LIBDIR = X.subprocess.check_output('ocamlfind printconf destdir', + shell=True) + OCAML_LIBDIR = OCAML_LIBDIR.strip() + env = os.environ.copy() + env['OCAML_LIBDIR'] = OCAML_LIBDIR cmds = [ (['make', 'uninstall_client'], None), (['make', 'install_client'], None), (['mkdir', '-p', my_temp], None), - (['cp', './examples/ocaml/demo.ml', './examples/ocaml/_tags', my_temp], None), + (['cp', './examples/ocaml/demo.ml', + './examples/ocaml/_tags', my_temp], None), (['ocamlbuild', '-use-ocamlfind', 'demo.native'], my_temp), (['make', 'uninstall_client'], None), ] for cmd, cwd in cmds: if cwd == None: cwd = '../..' - r = X.subprocess.check_output(cmd, cwd = cwd) + print cmd + print env + r = X.subprocess.check_output(cmd, + cwd = cwd, + env = env) print r From 1ee61299370b22e86f280439bffaeef91c6e9ba5 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 13:23:56 +0200 Subject: [PATCH 002/373] install opam packages in 1 step --- jenkins/008_install_dev_env.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/jenkins/008_install_dev_env.sh b/jenkins/008_install_dev_env.sh index 24d4b4c9..afd3ab80 100755 --- a/jenkins/008_install_dev_env.sh +++ b/jenkins/008_install_dev_env.sh @@ -7,12 +7,12 @@ opam update -y opam switch 4.02.1 eval `opam config env` -opam install -y "ssl.0.4.7" -opam install -y conf-libev -opam install -y camlbz2 -opam install -y snappy -opam install -y "lwt.2.4.7" -opam remove -y camltc -opam install -y "camltc.999" -opam install -y bisect -opam install -y quickcheck +# do this in 1 step, otherwise, you might not get what you want +opam install -y "ssl.0.4.7" \ + conf-libev \ + camlbz2 \ + snappy \ + "lwt.2.4.8" \ + "camltc.999" \ + bisect \ + quickcheck From 22294255313a3ade6f4f34d5214211c73b34a758 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 13:55:55 +0200 Subject: [PATCH 003/373] nocrypto is needed --- jenkins/008_install_dev_env.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins/008_install_dev_env.sh b/jenkins/008_install_dev_env.sh index afd3ab80..8d125b02 100755 --- a/jenkins/008_install_dev_env.sh +++ b/jenkins/008_install_dev_env.sh @@ -15,4 +15,5 @@ opam install -y "ssl.0.4.7" \ "lwt.2.4.8" \ "camltc.999" \ bisect \ - quickcheck + quickcheck \ + nocrypto.0.4.0 From 3d335cff0c3098e8d7e53324d46a73a7e016809c Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 15:32:51 +0200 Subject: [PATCH 004/373] don't print env --- pylabs/test/server/quick/test_client_lib.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pylabs/test/server/quick/test_client_lib.py b/pylabs/test/server/quick/test_client_lib.py index 3c48cf24..b21be28c 100644 --- a/pylabs/test/server/quick/test_client_lib.py +++ b/pylabs/test/server/quick/test_client_lib.py @@ -37,7 +37,6 @@ def test_client_lib(): if cwd == None: cwd = '../..' print cmd - print env r = X.subprocess.check_output(cmd, cwd = cwd, env = env) From b885bce5197f62f8fc282d634536b787fe72729a Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 17:12:23 +0200 Subject: [PATCH 005/373] travis fiddling --- .travis.yml | 2 +- travis.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 44e32bb8..725ce8b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: c env: - - PPA=avsm/ocaml42+opam11 + - PPA=avsm/ocaml42+opam12 before_install: ./travis.sh before_install install: ./travis.sh install diff --git a/travis.sh b/travis.sh index 0e044bc0..b27aa830 100755 --- a/travis.sh +++ b/travis.sh @@ -2,7 +2,7 @@ APT_DEPENDS="libev-dev libssl-dev libsnappy-dev libgmp3-dev" APT_OCAML_DEPENDS="ocaml ocaml-native-compilers camlp4-extra opam" -OPAM_DEPENDS="ssl conf-libev lwt camlbz2 camltc.999 snappy quickcheck ocplib-endian uuidm nocrypto" +OPAM_DEPENDS="ssl.0.4.7 conf-libev lwt.2.4.8 camlbz2 camltc.999 snappy quickcheck ocplib-endian uuidm nocrypto.0.4.0" export OPAMYES=1 export OPAMVERBOSE=1 From d763f320167428e6b3b85a05a732dedbf434776e Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 17:23:11 +0200 Subject: [PATCH 006/373] sudo required --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 725ce8b3..59d7c812 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: c +sudo: required env: - PPA=avsm/ocaml42+opam12 From b9b16491fa1a09d69b65210bb52fde81e0d8193f Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 17:33:32 +0200 Subject: [PATCH 007/373] opam 1.2 --- travis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/travis.sh b/travis.sh index b27aa830..c5ad920e 100755 --- a/travis.sh +++ b/travis.sh @@ -32,7 +32,7 @@ install () { echo "Running 'install' phase" opam init - eval `opam config -env` + eval `opam config env` opam remote add incubaid-devel -k git git://github.com/Incubaid/opam-repository-devel.git opam update @@ -42,7 +42,7 @@ install () { script () { echo "Running 'script' phase" - eval `opam config -env` + eval `opam config env` echo "Building 'arakoon.native'" ocamlbuild -use-ocamlfind -classic-display arakoon.native From 3e0f040bffe65d9c6d4f285d17a8e4d0ca1b099b Mon Sep 17 00:00:00 2001 From: Wim Provoost Date: Fri, 10 Jul 2015 17:46:36 +0200 Subject: [PATCH 008/373] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index d5288f67..02c90506 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,4 @@ Of course you want to use Arakoon from within a program. We provide OCaml, C and Releases -------- -Arakoon releases are available from the [releases](https://github.com/Incubaid/arakoon/releases) page. Any `1.X` branch corresponds to the development of releases in the `1.X` series. - -Have fun, - -The Arakoon team +Arakoon releases are available from the [releases](https://github.com/openvstorage/arakoon/releases) page. From 98d4a2d8d7bee9db7bd970d90d8cc4149ab2d86b Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 17:41:49 +0200 Subject: [PATCH 009/373] point to openvstorage iso incubaid --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d5288f67..18e94f3b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Arakoon ======= -![](https://travis-ci.org/Incubaid/arakoon.svg?branch=1.8) +![](https://travis-ci.org/openvstorage/arakoon.svg?branch=1.8) Arakoon is a distributed key/value store with preference for consistency. More technically, it's a [Multi-Paxos](http://en.wikipedia.org/wiki/Paxos_%28computer_science%29#Multi-Paxos) implementation (written in [OCaml](http://ocaml.org/)) running on top of [TokyoCabinet](http://fallabs.com/tokyocabinet/). @@ -53,7 +53,7 @@ Of course you want to use Arakoon from within a program. We provide OCaml, C and Releases -------- -Arakoon releases are available from the [releases](https://github.com/Incubaid/arakoon/releases) page. Any `1.X` branch corresponds to the development of releases in the `1.X` series. +Arakoon releases are available from the [releases](https://github.com/openvstorage/arakoon/releases) page. Any `1.X` branch corresponds to the development of releases in the `1.X` series. Have fun, From 9c563c6f5972b23ba269e599bf6839f33cbeff5d Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Fri, 10 Jul 2015 18:31:45 +0200 Subject: [PATCH 010/373] link points to build, not image --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ecfd421a..da8efd45 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Arakoon ======= -![](https://travis-ci.org/openvstorage/arakoon.svg?branch=1.8) +[![](https://travis-ci.org/openvstorage/arakoon.svg?branch=1.8)](https://travis-ci.org/openvstorage/arakoon) Arakoon is a distributed key/value store with preference for consistency. More technically, it's a [Multi-Paxos](http://en.wikipedia.org/wiki/Paxos_%28computer_science%29#Multi-Paxos) implementation (written in [OCaml](http://ocaml.org/)) running on top of [TokyoCabinet](http://fallabs.com/tokyocabinet/). From 556412296b3a42379c7f25d0edd66eee45820352 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Mon, 13 Jul 2015 15:58:12 +0200 Subject: [PATCH 011/373] set versions for all opam packages. --- jenkins/008_install_dev_env.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jenkins/008_install_dev_env.sh b/jenkins/008_install_dev_env.sh index 8d125b02..45c6dc8c 100755 --- a/jenkins/008_install_dev_env.sh +++ b/jenkins/008_install_dev_env.sh @@ -1,19 +1,19 @@ #!/bin/bash -xue which opam > /dev/null || { echo 'opam not found!'; exit 1; } -{ opam remote list | grep Incubaid/opam-repository-devel > /dev/null; } || { opam remote add incubaid-devel -k git git://github.com/Incubaid/opam-repository-devel.git; } -opam update -y opam switch 4.02.1 eval `opam config env` # do this in 1 step, otherwise, you might not get what you want -opam install -y "ssl.0.4.7" \ - conf-libev \ - camlbz2 \ - snappy \ - "lwt.2.4.8" \ - "camltc.999" \ - bisect \ - quickcheck \ - nocrypto.0.4.0 +opam install -y ssl.0.5.0 \ + conf-libev.4-11 \ + camlbz2.0.6.0 \ + snappy.0.1.0 \ + lwt.2.4.8 \ + camltc.0.9.2 \ + bisect.1.3 \ + quickcheck.1.0.2 \ + nocrypto.0.4.0 \ + sexplib.112.35.00 \ + uuidm.0.9.5 From b6aac93d7d83133f5c7b88db15993e52a321ec5e Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Mon, 13 Jul 2015 16:31:16 +0200 Subject: [PATCH 012/373] fix versions of opam packages for deb/rpm --- jenkins/package_deb/008_install_dev_env.sh | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/jenkins/package_deb/008_install_dev_env.sh b/jenkins/package_deb/008_install_dev_env.sh index 8c28e8f0..45c6dc8c 100755 --- a/jenkins/package_deb/008_install_dev_env.sh +++ b/jenkins/package_deb/008_install_dev_env.sh @@ -1,16 +1,19 @@ #!/bin/bash -xue which opam > /dev/null || { echo 'opam not found!'; exit 1; } -{ opam remote list | grep Incubaid/opam-repository-devel > /dev/null; } || { opam remote add incubaid-devel -k git git://github.com/Incubaid/opam-repository-devel.git; } -opam update -y opam switch 4.02.1 eval `opam config env` -opam install -y \ - conf-libev.4-11 camlbz2.0.6.0 lwt.2.4.8 camltc.0.9.2 \ - ssl.0.5.0 bisect.1.3 quickcheck.1.0.2 \ - ounit.2.0.0 \ - nocrypto.0.4.0 zarith.1.3 cstruct.1.6.0 ctypes.0.4.1 \ - snappy.0.1.0 \ - ocplib-endian.0.8 uuidm.0.9.5 +# do this in 1 step, otherwise, you might not get what you want +opam install -y ssl.0.5.0 \ + conf-libev.4-11 \ + camlbz2.0.6.0 \ + snappy.0.1.0 \ + lwt.2.4.8 \ + camltc.0.9.2 \ + bisect.1.3 \ + quickcheck.1.0.2 \ + nocrypto.0.4.0 \ + sexplib.112.35.00 \ + uuidm.0.9.5 From 044893f2aa544fbdf49d19dd00029f7525787cff Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Mon, 13 Jul 2015 16:36:10 +0200 Subject: [PATCH 013/373] also fix ctypes and friends --- jenkins/package_deb/008_install_dev_env.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jenkins/package_deb/008_install_dev_env.sh b/jenkins/package_deb/008_install_dev_env.sh index 45c6dc8c..f3a3c589 100755 --- a/jenkins/package_deb/008_install_dev_env.sh +++ b/jenkins/package_deb/008_install_dev_env.sh @@ -12,6 +12,9 @@ opam install -y ssl.0.5.0 \ snappy.0.1.0 \ lwt.2.4.8 \ camltc.0.9.2 \ + cstruct.1.7.0 \ + ctypes.0.4.1 \ + ctypes-foreign.0.4.0 \ bisect.1.3 \ quickcheck.1.0.2 \ nocrypto.0.4.0 \ From c6104b1f197bce390d5fdc4a5c077e22fac326f8 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Mon, 13 Jul 2015 16:41:52 +0200 Subject: [PATCH 014/373] ocplib-endian,zarith --- jenkins/package_deb/008_install_dev_env.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/package_deb/008_install_dev_env.sh b/jenkins/package_deb/008_install_dev_env.sh index f3a3c589..40068c07 100755 --- a/jenkins/package_deb/008_install_dev_env.sh +++ b/jenkins/package_deb/008_install_dev_env.sh @@ -16,7 +16,9 @@ opam install -y ssl.0.5.0 \ ctypes.0.4.1 \ ctypes-foreign.0.4.0 \ bisect.1.3 \ + ocplib-endian.0.8 \ quickcheck.1.0.2 \ nocrypto.0.4.0 \ sexplib.112.35.00 \ - uuidm.0.9.5 + uuidm.0.9.5 \ + zarith.1.3 \ From 12fa5b2958458e1f4931d5a8061bd9d88e3254ff Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Mon, 13 Jul 2015 17:29:49 +0200 Subject: [PATCH 015/373] change sexplib version & alignment of 2 dev_env.sh scripts --- jenkins/008_install_dev_env.sh | 25 +++++++++++++--------- jenkins/package_deb/008_install_dev_env.sh | 4 ++-- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/jenkins/008_install_dev_env.sh b/jenkins/008_install_dev_env.sh index 45c6dc8c..16ecf072 100755 --- a/jenkins/008_install_dev_env.sh +++ b/jenkins/008_install_dev_env.sh @@ -7,13 +7,18 @@ eval `opam config env` # do this in 1 step, otherwise, you might not get what you want opam install -y ssl.0.5.0 \ - conf-libev.4-11 \ - camlbz2.0.6.0 \ - snappy.0.1.0 \ - lwt.2.4.8 \ - camltc.0.9.2 \ - bisect.1.3 \ - quickcheck.1.0.2 \ - nocrypto.0.4.0 \ - sexplib.112.35.00 \ - uuidm.0.9.5 + conf-libev.4-11 \ + camlbz2.0.6.0 \ + snappy.0.1.0 \ + lwt.2.4.8 \ + camltc.0.9.2 \ + cstruct.1.7.0 \ + ctypes.0.4.1 \ + ctypes-foreign.0.4.0 \ + bisect.1.3 \ + ocplib-endian.0.8 \ + quickcheck.1.0.2 \ + nocrypto.0.4.0 \ + sexplib.112.24.01 \ + uuidm.0.9.5 \ + zarith.1.3 diff --git a/jenkins/package_deb/008_install_dev_env.sh b/jenkins/package_deb/008_install_dev_env.sh index 40068c07..0d1c3370 100755 --- a/jenkins/package_deb/008_install_dev_env.sh +++ b/jenkins/package_deb/008_install_dev_env.sh @@ -19,6 +19,6 @@ opam install -y ssl.0.5.0 \ ocplib-endian.0.8 \ quickcheck.1.0.2 \ nocrypto.0.4.0 \ - sexplib.112.35.00 \ + sexplib.112.24.01 \ uuidm.0.9.5 \ - zarith.1.3 \ + zarith.1.3 From e06efa9ff4a724bd1b0274e0135718b8faf05533 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Thu, 16 Jul 2015 20:40:43 +0200 Subject: [PATCH 016/373] cstruct 1.6.0 just like 1.8.6 package --- jenkins/008_install_dev_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/008_install_dev_env.sh b/jenkins/008_install_dev_env.sh index 16ecf072..9a889673 100755 --- a/jenkins/008_install_dev_env.sh +++ b/jenkins/008_install_dev_env.sh @@ -12,7 +12,7 @@ opam install -y ssl.0.5.0 \ snappy.0.1.0 \ lwt.2.4.8 \ camltc.0.9.2 \ - cstruct.1.7.0 \ + cstruct.1.6.0 \ ctypes.0.4.1 \ ctypes-foreign.0.4.0 \ bisect.1.3 \ From 1d971124259808e786e1e3837119f799d4afb445 Mon Sep 17 00:00:00 2001 From: Romain Slootmaekers Date: Wed, 22 Jul 2015 16:41:14 +0200 Subject: [PATCH 017/373] in case of error, return exit code 1 --- src/tlog/tlc2.ml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/tlog/tlc2.ml b/src/tlog/tlc2.ml index 807bf3a0..9cd3b3c6 100644 --- a/src/tlog/tlc2.ml +++ b/src/tlog/tlc2.ml @@ -897,7 +897,7 @@ let make_tlc2 ~compressor tlog_dir tlf_dir head_dir ~fsync node_id ~fsync_tlog_d let truncate_tlog filename = let skipper () _entry = Lwt.return () in - let t = + let t () = begin let folder,extension,index = folder_for filename None in if extension <> ".tlog" @@ -923,4 +923,13 @@ let truncate_tlog filename = Lwt_io.with_file ~mode:Lwt_io.input filename do_it end end - in Lwt_main.run t + in + let t' = + Lwt.catch + t + (fun ex -> + Lwt_io.printlf "problem:%s%!" (Printexc.to_string ex) >>= fun () -> + Lwt.return 1 + ) + in + Lwt_main.run t' From 3cad626de3bb4de48b73ab87b2c43670fafc29c8 Mon Sep 17 00:00:00 2001 From: "cflap0019\\Wim Provoost" Date: Thu, 30 Jul 2015 17:13:42 +0200 Subject: [PATCH 018/373] Change to Open vStorage --- doc/_templates/layout.html | 21 +++++++++------------ doc/getting_started.rst | 2 +- doc/installing_arakoon.rst | 6 +++--- doc/introduction.rst | 2 +- doc/make_release.rst | 2 +- 5 files changed, 15 insertions(+), 18 deletions(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index b268ec54..20ed314d 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -19,17 +19,14 @@ - +