You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by to...@apache.org on 2016/01/27 02:30:41 UTC

[1/2] incubator-kudu git commit: docs: remove Debian 7 support

Repository: incubator-kudu
Updated Branches:
  refs/heads/master c7a9b1211 -> a12d87e49


docs: remove Debian 7 support

I've added a separate entry to faq.md in the website that lists unsupported
distributions.

Change-Id: I12473877596b096939704b5913b5302190a81789
Reviewed-on: http://gerrit.cloudera.org:8080/1898
Tested-by: Kudu Jenkins
Reviewed-by: Jean-Daniel Cryans


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/c555103c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/c555103c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/c555103c

Branch: refs/heads/master
Commit: c555103cd9589f98fd025ce1f6dff705ddc4f057
Parents: c7a9b12
Author: Adar Dembo <ad...@cloudera.com>
Authored: Mon Jan 25 16:51:10 2016 -0800
Committer: Adar Dembo <ad...@cloudera.com>
Committed: Tue Jan 26 22:16:58 2016 +0000

----------------------------------------------------------------------
 docs/installation.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/c555103c/docs/installation.adoc
----------------------------------------------------------------------
diff --git a/docs/installation.adoc b/docs/installation.adoc
index 60d0275..b36abff 100644
--- a/docs/installation.adoc
+++ b/docs/installation.adoc
@@ -46,7 +46,7 @@ three tablet servers is necessary.
 
 .Operating System Requirements
 Linux::
-    - RHEL 6, RHEL 7, Debian 7 (Wheezy), Ubuntu 14.04 (Trusty), or SLES 12.
+    - RHEL 6, RHEL 7, Ubuntu 14.04 (Trusty), or SLES 12.
     - A kernel and fileystem that support _hole punching_. Hole punching is the use of the
       `fallocate(2)` system call with the `FALLOC_FL_PUNCH_HOLE` option set. See
       link:troubleshooting.html#req_hole_punching[troubleshooting hole punching] for more


[2/2] incubator-kudu git commit: OS X: fix errno-test

Posted by to...@apache.org.
OS X: fix errno-test

Change-Id: I6a594667a72c158f132ee171bb895e00f947510d
Reviewed-on: http://gerrit.cloudera.org:8080/1913
Reviewed-by: Todd Lipcon <to...@apache.org>
Tested-by: Kudu Jenkins


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/a12d87e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/a12d87e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/a12d87e4

Branch: refs/heads/master
Commit: a12d87e4939221bdbfe372ea906840e053e39335
Parents: c555103
Author: Dan Burkert <da...@cloudera.com>
Authored: Tue Jan 26 17:01:30 2016 -0800
Committer: Todd Lipcon <to...@apache.org>
Committed: Wed Jan 27 01:30:13 2016 +0000

----------------------------------------------------------------------
 src/kudu/util/errno-test.cc |  3 ++-
 src/kudu/util/errno.cc      | 11 ++++-------
 2 files changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/a12d87e4/src/kudu/util/errno-test.cc
----------------------------------------------------------------------
diff --git a/src/kudu/util/errno-test.cc b/src/kudu/util/errno-test.cc
index 32df662..911ca14 100644
--- a/src/kudu/util/errno-test.cc
+++ b/src/kudu/util/errno-test.cc
@@ -38,7 +38,8 @@ TEST(OsUtilTest, TestErrnoToString) {
   ASSERT_EQ("N", string(buf));
 
   // Unknown error.
-  ASSERT_EQ("Unknown error -1", ErrnoToString(-1));
+  string expected = "Unknown error";
+  ASSERT_EQ(ErrnoToString(-1).compare(0, expected.length(), expected), 0);
 
   // Unknown error (truncated).
   ErrnoToCString(-1, buf, arraysize(buf));

http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/a12d87e4/src/kudu/util/errno.cc
----------------------------------------------------------------------
diff --git a/src/kudu/util/errno.cc b/src/kudu/util/errno.cc
index 9c6a8a7..f08bf2f 100644
--- a/src/kudu/util/errno.cc
+++ b/src/kudu/util/errno.cc
@@ -29,13 +29,10 @@ void ErrnoToCString(int err, char *buf, size_t buf_len) {
 #if !defined(__GLIBC__) || \
   ((_POSIX_C_SOURCE >= 200112 || _XOPEN_SOURCE >= 600) && !defined(_GNU_SOURCE))
   // Using POSIX version 'int strerror_r(...)'.
-  if (strerror_r(err, buf, buf_len)) {
-    static const char UNKNOWN_ERROR[] = "unknown error";
-    if (buf_len >= sizeof(UNKNOWN_ERROR)) {
-      strcpy(buf, UNKNOWN_ERROR); // NOLINT(runtime/printf)
-    } else {
-      memset(buf, 0, buf_len);
-    }
+  int ret = strerror_r(err, buf, buf_len);
+  if (ret && ret != ERANGE && ret != EINVAL) {
+    strncpy(buf, "unknown error", buf_len);
+    buf[buf_len - 1] = '\0';
   }
 #else
   // Using GLIBC version