File tree 1 file changed +12
-12
lines changed
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -197,20 +197,20 @@ protected void releaseInternal() {
197
197
if (resultFile == null && fileWriter != null ) {
198
198
fileWriter .releaseQuietly ();
199
199
}
200
+ }
200
201
201
- // delete the produced file only when no reader is reading now
202
- readScheduler
203
- .release ()
204
- .thenRun (
205
- () -> {
206
- synchronized (lock ) {
207
- if (resultFile != null ) {
208
- resultFile .deleteQuietly ();
209
- resultFile = null ;
210
- }
202
+ // delete the produced file only when no reader is reading now
203
+ readScheduler
204
+ .release ()
205
+ .thenRun (
206
+ () -> {
207
+ synchronized (lock ) {
208
+ if (resultFile != null ) {
209
+ resultFile .deleteQuietly ();
210
+ resultFile = null ;
211
211
}
212
- });
213
- }
212
+ }
213
+ });
214
214
}
215
215
216
216
@ Override
You can’t perform that action at this time.
0 commit comments