Details
-
Bug
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
2.0.0-alpha
-
None
Description
blockReportInterval is long value but when we take the random value it uses getRandom().nextInt.
Due to this, offerService can throw exception as long may get rotated to negative value.
So, block report may send very frequently.
if (resetBlockReportTime) { lastBlockReport = startTime - DFSUtil.getRandom().nextInt((int)(dnConf.blockReportInterval)); resetBlockReportTime = false;
Attachments
Attachments
Issue Links
- is related to
-
HDFS-2541 For a sufficiently large value of blocks, the DN Scanner may request a random number with a negative seed value.
- Closed