@@ -68,9 +68,6 @@ public class GlusterFileSystem extends FileSystem{
68
68
private int writeBufferSize = 0 ;
69
69
70
70
71
- /* for quick IO */
72
- private boolean quickSlaveIO =false ;
73
-
74
71
/* extended attribute class */
75
72
private GlusterFSXattr xattr =null ;
76
73
@@ -110,7 +107,6 @@ public void initialize(URI uri,Configuration conf) throws IOException{
110
107
boolean ret =false ;
111
108
String volName =null ;
112
109
String remoteGFSServer =null ;
113
- String needQuickRead =null ;
114
110
boolean autoMount =true ;
115
111
116
112
@@ -123,7 +119,6 @@ public void initialize(URI uri,Configuration conf) throws IOException{
123
119
volName =conf .get ("fs.glusterfs.volname" , null );
124
120
glusterMount =conf .get ("fs.glusterfs.mount" , null );
125
121
remoteGFSServer =conf .get ("fs.glusterfs.server" , null );
126
- needQuickRead =conf .get ("quick.slave.io" , null );
127
122
autoMount =conf .getBoolean ("fs.glusterfs.automount" , true );
128
123
writeBufferSize = conf .getInt ("fs.glusterfs.write.buffer.size" , 0 );
129
124
LOG .info ("Gluster Output Buffering size configured to " + writeBufferSize + " bytes." );
@@ -139,8 +134,6 @@ public void initialize(URI uri,Configuration conf) throws IOException{
139
134
throw new RuntimeException ("Initialize: Failed to mount GlusterFS " );
140
135
}
141
136
}
142
- if ((needQuickRead .length ()!=0 )&&(needQuickRead .equalsIgnoreCase ("yes" )||needQuickRead .equalsIgnoreCase ("on" )||needQuickRead .equals ("1" )))
143
- this .quickSlaveIO =true ;
144
137
145
138
this .mounted =true ;
146
139
this .glusterFs =FileSystem .getLocal (conf );
@@ -446,8 +439,6 @@ public FSDataOutputStream create(Path path,FsPermission permission,boolean overw
446
439
* open the file in read mode (internally the file descriptor is an instance
447
440
* of InputStream class).
448
441
*
449
- * if quick read mode is set then read the file by by-passing FUSE if we are
450
- * on same slave where the file exist
451
442
*/
452
443
public FSDataInputStream open (Path path ) throws IOException {
453
444
Path absolute =makeAbsolute (path );
@@ -458,9 +449,6 @@ public FSDataInputStream open(Path path) throws IOException{
458
449
if (!f .exists ())
459
450
throw new IOException ("File " +f .getPath ()+" does not exist." );
460
451
461
- if (quickSlaveIO )
462
- hnts =xattr .quickIOPossible (f .getPath (), 0 , f .length ());
463
-
464
452
glusterFileStream =new FSDataInputStream (new GlusterFUSEInputStream (f , hnts , hostname ));
465
453
return glusterFileStream ;
466
454
}
0 commit comments