We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 33d78e3 + b092116 commit eaab7d7Copy full SHA for eaab7d7
src/main/java/org/apache/hadoop/fs/glusterfs/GlusterFUSEInputStream.java
@@ -180,14 +180,16 @@ public void syncStreams (int bytes) throws IOException {
180
}
181
182
public synchronized void close () throws IOException {
183
- if (closed)
184
- throw new IOException("Stream closed.");
185
-
186
super.close();
187
- if (fsInputStream != null)
188
- fsInputStream.close();
+
+ if (closed)
+ return ;
+ if (fsInputStream != null){
189
+ fsInputStream.close();
190
+ }
191
192
fuseInputStream.close();
193
closed = true;
194
195
0 commit comments