Updated Branches: refs/heads/cassandra-1.1 dafa548fd -> e39530789
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/e3953078 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/e3953078 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/e3953078 Branch: refs/heads/cassandra-1.1 Commit: e395307893d93a01e976656f6e0f5cee1acf3c3b Parents: dafa548 Author: Jonathan Ellis <jbel...@apache.org> Authored: Fri Sep 7 11:57:19 2012 -0500 Committer: Jonathan Ellis <jbel...@apache.org> Committed: Fri Sep 7 11:58:03 2012 -0500 ---------------------------------------------------------------------- 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/e3953078/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 bcb5bfa..97015a7 100644 --- a/src/java/org/apache/cassandra/utils/CLibrary.java +++ b/src/java/org/apache/cassandra/utils/CLibrary.java @@ -189,7 +189,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; } }