[ 
https://issues.apache.org/jira/browse/HDFS-9756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16825839#comment-16825839
 ] 

Hadoop QA commented on HDFS-9756:
---------------------------------

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m  
0s{color} | {color:blue} Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red}  0m  6s{color} 
| {color:red} HDFS-9756 does not apply to trunk. Rebase required? Wrong Branch? 
See https://wiki.apache.org/hadoop/HowToContribute for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | HDFS-9756 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12786393/HDFS-9756.002.patch |
| Console output | 
https://builds.apache.org/job/PreCommit-HDFS-Build/26702/console |
| Powered by | Apache Yetus 0.8.0   http://yetus.apache.org |


This message was automatically generated.



> Hard-Code value in DataTransferThrottler
> ----------------------------------------
>
>                 Key: HDFS-9756
>                 URL: https://issues.apache.org/jira/browse/HDFS-9756
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.7.1
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Major
>         Attachments: HDFS-9756.001.patch, HDFS-9756.002.patch
>
>
> In DataTransferThrottler, the period time is hard-code for 500 ms. Even 
> though it has other construction method, 
> {code}
> /**
>    * Constructor
>    * @param period in milliseconds. Bandwidth is enforced over this
>    *        period.
>    * @param bandwidthPerSec bandwidth allowed in bytes per second. 
>    */
>   public DataTransferThrottler(long period, long bandwidthPerSec) {
>     this.curPeriodStart = monotonicNow();
>     this.period = period;
>     this.curReserve = this.bytesPerPeriod = bandwidthPerSec*period/1000;
>     this.periodExtension = period*3;
>   }
> {code}
> but it was only invoked by this method 
> {code}
> public DataTransferThrottler(long bandwidthPerSec) {
>     this(500, bandwidthPerSec);  // by default throttling period is 500ms 
> }
> {code}
> So the period is a hard-code. This value can also influence the 
> data-transfering. If period time value set small, the number of times to 
> waitting for next period will be increased and the total waitting-time also  
> be increased. So the average bandwidth will be decreased.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to