cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xe...@apache.org
Subject [3/8] git commit: explain how to work around exec problems in error message patch by jbellis for CASSANDRA-4590
Date Mon, 10 Sep 2012 21:45:18 GMT
explain how to work around exec problems in error message
patch by jbellis for CASSANDRA-4590


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0388a337
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0388a337
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0388a337

Branch: refs/heads/trunk
Commit: 0388a3370ec0400ccee33e669a3dd635b708ea77
Parents: 9b08a7f
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Fri Sep 7 11:57:19 2012 -0500
Committer: Pavel Yaskevich <xedin@apache.org>
Committed: Tue Sep 11 00:12:09 2012 +0300

----------------------------------------------------------------------
 src/java/org/apache/cassandra/utils/CLibrary.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0388a337/src/java/org/apache/cassandra/utils/CLibrary.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/utils/CLibrary.java b/src/java/org/apache/cassandra/utils/CLibrary.java
index e28337e..f8ad9d1 100644
--- a/src/java/org/apache/cassandra/utils/CLibrary.java
+++ b/src/java/org/apache/cassandra/utils/CLibrary.java
@@ -188,7 +188,10 @@ public final class CLibrary
         }
         catch (IOException ex)
         {
-            logger.error("Unable to create hard link", ex);
+            String st = osname.startsWith("Windows")
+                      ? "Unable to create hard link.  This probably means your data directory
path is too long.  Exception follows:"
+                      : "Unable to create hard link with exec.  Suggest installing JNA to
avoid the need to exec entirely.  Exception follows: ";
+            logger.error(st, ex);
             throw ex;
         }
     }


Mime
View raw message