[jira] [Updated] (HDFS-3488) BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers 31 bits properly

2015-05-22 Thread Vinayakumar B (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinayakumar B updated HDFS-3488:

Labels:   (was: BB2015-05-TBR)

 BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers  31 bits 
 properly
 

 Key: HDFS-3488
 URL: https://issues.apache.org/jira/browse/HDFS-3488
 Project: Hadoop HDFS
  Issue Type: Bug
Reporter: Colin Patrick McCabe
Assignee: Colin Patrick McCabe
Priority: Minor
 Attachments: HDFS-3488.001.patch


 This code does not handle the case where period  2**31 properly:
 {code}
 long period = Math.min(scanPeriod, 
Math.max(blockMap.size(),1) * 600 * 1000L);
 int periodInt = Math.abs((int)period);
 return System.currentTimeMillis() - scanPeriod + 
 DFSUtil.getRandom().nextInt(periodInt);
 {code}
 So, for example, if period = 0x1, we'll map that to 0, and so forth.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-3488) BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers 31 bits properly

2015-05-22 Thread Vinayakumar B (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinayakumar B updated HDFS-3488:

Resolution: Cannot Reproduce
Status: Resolved  (was: Patch Available)

BlockPoolSliceScanner is replaced by BlockScanner as part of refactor in 
HDFS-7430, so this no longer applies.
Resolving.

 BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers  31 bits 
 properly
 

 Key: HDFS-3488
 URL: https://issues.apache.org/jira/browse/HDFS-3488
 Project: Hadoop HDFS
  Issue Type: Bug
Reporter: Colin Patrick McCabe
Assignee: Colin Patrick McCabe
Priority: Minor
 Attachments: HDFS-3488.001.patch


 This code does not handle the case where period  2**31 properly:
 {code}
 long period = Math.min(scanPeriod, 
Math.max(blockMap.size(),1) * 600 * 1000L);
 int periodInt = Math.abs((int)period);
 return System.currentTimeMillis() - scanPeriod + 
 DFSUtil.getRandom().nextInt(periodInt);
 {code}
 So, for example, if period = 0x1, we'll map that to 0, and so forth.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-3488) BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers 31 bits properly

2015-05-05 Thread Allen Wittenauer (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Allen Wittenauer updated HDFS-3488:
---
Labels: BB2015-05-TBR  (was: )

 BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers  31 bits 
 properly
 

 Key: HDFS-3488
 URL: https://issues.apache.org/jira/browse/HDFS-3488
 Project: Hadoop HDFS
  Issue Type: Bug
Reporter: Colin Patrick McCabe
Assignee: Colin Patrick McCabe
Priority: Minor
  Labels: BB2015-05-TBR
 Attachments: HDFS-3488.001.patch


 This code does not handle the case where period  2**31 properly:
 {code}
 long period = Math.min(scanPeriod, 
Math.max(blockMap.size(),1) * 600 * 1000L);
 int periodInt = Math.abs((int)period);
 return System.currentTimeMillis() - scanPeriod + 
 DFSUtil.getRandom().nextInt(periodInt);
 {code}
 So, for example, if period = 0x1, we'll map that to 0, and so forth.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (HDFS-3488) BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers 31 bits properly

2013-03-19 Thread Colin Patrick McCabe (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colin Patrick McCabe updated HDFS-3488:
---

Status: Patch Available  (was: Open)

 BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers  31 bits 
 properly
 

 Key: HDFS-3488
 URL: https://issues.apache.org/jira/browse/HDFS-3488
 Project: Hadoop HDFS
  Issue Type: Bug
Reporter: Colin Patrick McCabe
Assignee: Colin Patrick McCabe
Priority: Minor
 Attachments: HDFS-3488.001.patch


 This code does not handle the case where period  2**31 properly:
 {code}
 long period = Math.min(scanPeriod, 
Math.max(blockMap.size(),1) * 600 * 1000L);
 int periodInt = Math.abs((int)period);
 return System.currentTimeMillis() - scanPeriod + 
 DFSUtil.getRandom().nextInt(periodInt);
 {code}
 So, for example, if period = 0x1, we'll map that to 0, and so forth.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HDFS-3488) BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers 31 bits properly

2013-03-19 Thread Colin Patrick McCabe (JIRA)

 [ 
https://issues.apache.org/jira/browse/HDFS-3488?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Colin Patrick McCabe updated HDFS-3488:
---

Attachment: HDFS-3488.001.patch

 BlockPoolSliceScanner#getNewBlockScanTime does not handle numbers  31 bits 
 properly
 

 Key: HDFS-3488
 URL: https://issues.apache.org/jira/browse/HDFS-3488
 Project: Hadoop HDFS
  Issue Type: Bug
Reporter: Colin Patrick McCabe
Assignee: Colin Patrick McCabe
Priority: Minor
 Attachments: HDFS-3488.001.patch


 This code does not handle the case where period  2**31 properly:
 {code}
 long period = Math.min(scanPeriod, 
Math.max(blockMap.size(),1) * 600 * 1000L);
 int periodInt = Math.abs((int)period);
 return System.currentTimeMillis() - scanPeriod + 
 DFSUtil.getRandom().nextInt(periodInt);
 {code}
 So, for example, if period = 0x1, we'll map that to 0, and so forth.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira