zhijiangW commented on a change in pull request #7083: [hotfix][flink-runtime]
modify maxAttempts when find a unique file name for the spilling channel
URL: https://github.com/apache/flink/pull/7083#discussion_r232981388
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/api/serialization/SpillingAdaptiveSpanningRecordDeserializer.java
##########
@@ -630,8 +630,7 @@ private FileChannel createSpillingChannel() throws
IOException {
}
// try to find a unique file name for the spilling
channel
- int maxAttempts = 10;
- for (int attempt = 0; attempt < maxAttempts; attempt++)
{
+ for (int attempt = 0; attempt < tempDirs.length;
attempt++) {
Review comment:
The mount disk should exist and this logic is for creating unique random
file for spilling, so we add the retry times to avoid random file which is
already created before to cause failure here. From this point, it seems not to
get any benefits by changing the constant retry times.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services