Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0.0
Description
In Log.loadSegments(), we call dir.mkdirs() w/o checking the return value and just assume the directory will exist after the call. However, if the directory can't be created (e.g. due to no space), we will hit NullPointerException in the next statement, which will be confusing.
for(file <- dir.listFiles if file.isFile) {
Attachments
Issue Links
- is related to
-
KAFKA-4899 Fix findbugs warnings in kafka-core
- Resolved
- links to