|
@@ -362,6 +362,10 @@ public class LocalDirAllocator {
|
|
|
totalAvailable += availableOnDisk[i];
|
|
|
}
|
|
|
|
|
|
+ if (totalAvailable == 0){
|
|
|
+ throw new DiskErrorException("No space available in any of the local directories.");
|
|
|
+ }
|
|
|
+
|
|
|
// Keep rolling the wheel till we get a valid path
|
|
|
Random r = new java.util.Random();
|
|
|
while (numDirsSearched < numDirs && returnPath == null) {
|