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

zhijiang updated FLINK-15021:
-----------------------------
    Description: 
The high and low watermark setting in NetterServer before was mainly used for 
network flow control and limiting the maximum memory overhead caused by copying 
data inside netty stack. In detail, when the downstream side processes slowly 
and exhausted the available buffers finally, it would temporarily close the 
auto read switch in netty stack. Then the upstream side would finally reach the 
high watermark of channel to become unwritable.

But based on credit-based flow control and reusing flink network buffer inside 
netty stack, the watermark setting is not invalid now. So we can safely remove 
it to cleanup the codes.

  was:After removing the non credit-based flow control codes, the channel 
writability changed logic in PartitionRequestQueue along with the setting of 
channel watermark are both invalid. Therefore we can remove them completely to 
simplify the codes.


> Remove setting of netty channel watermark and logic of writability changed
> --------------------------------------------------------------------------
>
>                 Key: FLINK-15021
>                 URL: https://issues.apache.org/jira/browse/FLINK-15021
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Runtime / Network
>            Reporter: zhijiang
>            Assignee: zhijiang
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The high and low watermark setting in NetterServer before was mainly used for 
> network flow control and limiting the maximum memory overhead caused by 
> copying data inside netty stack. In detail, when the downstream side 
> processes slowly and exhausted the available buffers finally, it would 
> temporarily close the auto read switch in netty stack. Then the upstream side 
> would finally reach the high watermark of channel to become unwritable.
> But based on credit-based flow control and reusing flink network buffer 
> inside netty stack, the watermark setting is not invalid now. So we can 
> safely remove it to cleanup the codes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to