Skip to content

Commit 982c719

Browse files
committed
throw on mount failure
1 parent 7fd94b1 commit 982c719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFileSystem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public void initialize(URI uri, Configuration conf) throws IOException {
120120

121121
ret = FUSEMount(volName, remoteGFSServer, glusterMount);
122122
if (!ret) {
123-
System.out.println("Initialize: Failed to mount GlusterFS - hopefully its already mounted");
123+
throw new RuntimeException("Initialize: Failed to mount GlusterFS ");
124124
}
125125

126126
if((needQuickRead.length() != 0)

0 commit comments

Comments
 (0)