[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2020-01-13 Thread Andrew.D.lin (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17014810#comment-17014810
 ] 

Andrew.D.lin commented on FLINK-15307:
--

[~zhuzh] sorry, I missed it, Let me modify it

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: Andrew.D.lin
>Assignee: Andrew.D.lin
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>  Time Spent: 10m
>  Remaining Estimate: 24h
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2020-01-13 Thread Zhu Zhu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17014799#comment-17014799
 ] 

Zhu Zhu commented on FLINK-15307:
-

The legacy failover strategies will be removed in 1.11, which means most of the 
classes you change will be removed.
So I think it's better to  only change the non-legacy(flip1) failover 
strategies which will be be kept.
B.T.W I had a glance of the PR and looks to me it does not follow the name 
patterns discussed above.

cc: [~gjy]

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: Andrew.D.lin
>Assignee: Andrew.D.lin
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>  Time Spent: 10m
>  Remaining Estimate: 24h
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2020-01-13 Thread Andrew.D.lin (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17014771#comment-17014771
 ] 

Andrew.D.lin commented on FLINK-15307:
--

Hi [~zhuzh] 

I open the PR: [https://github.com/apache/flink/pull/10848, 
:D|https://github.com/apache/flink/pull/10848]

 

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: Andrew.D.lin
>Assignee: Andrew.D.lin
>Priority: Minor
>  Labels: pull-request-available
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>  Time Spent: 10m
>  Remaining Estimate: 24h
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2019-12-19 Thread andrew.D.lin (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000673#comment-17000673
 ] 

andrew.D.lin commented on FLINK-15307:
--

Hi [~zhuzh], [~tison] 

OK, I am willing to do this. According to Zhuzhu‘ suggestion.

Can you give me this ticket?

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: andrew.D.lin
>Priority: Minor
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2019-12-19 Thread andrew.D.lin (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000666#comment-17000666
 ] 

andrew.D.lin commented on FLINK-15307:
--

[~zhuzh]  [~tison]  

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: andrew.D.lin
>Priority: Minor
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2019-12-19 Thread Zhu Zhu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000664#comment-17000664
 ] 

Zhu Zhu commented on FLINK-15307:
-

Sure, I can ping him here after the pre-requisites are ready.

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: andrew.D.lin
>Priority: Minor
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2019-12-19 Thread Zili Chen (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000662#comment-17000662
 ] 

Zili Chen commented on FLINK-15307:
---

Thanks for your reply [~zhuzh]. Could you guide [~andrew_lin] for doing this 
improvement after the removal?

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Reporter: andrew.D.lin
>Priority: Minor
> Fix For: 1.11.0
>
> Attachments: image-2019-12-18-14-59-03-181.png
>
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2019-12-19 Thread Zhu Zhu (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000660#comment-17000660
 ] 

Zhu Zhu commented on FLINK-15307:
-

Agreed that we can change the class name to avoid confusion to *developers*. 
However I would prefer the name to be 
 * RestartAllFailoverStrategy
 * RestartIndividualFailoverStrategy
 * RestartPipelinedRegionFailoverStrategy
so that they better reveals what the failover strategy does to recover from a 
failure.

Given that the strategy *class* names are transparent to users and some of the 
strategies(AdaptedPipelinedRegionFailoverStrategyNG, 
FailoverIndividualStrategy) would be removed in 1.11, I think we can do it 
later in 1.11 after we have removed the legacy failover strategies.


> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Affects Versions: 1.9.0, 1.9.1, 1.10.0
>Reporter: andrew.D.lin
>Priority: Minor
> Attachments: image-2019-12-18-14-59-03-181.png
>
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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


[jira] [Commented] (FLINK-15307) Subclasses of FailoverStrategy are easily confused with implementation classes of RestartStrategy

2019-12-19 Thread Zili Chen (Jira)


[ 
https://issues.apache.org/jira/browse/FLINK-15307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000653#comment-17000653
 ] 

Zili Chen commented on FLINK-15307:
---

cc [~zhuzh] what do you think of this?

> Subclasses of FailoverStrategy are easily confused with implementation 
> classes of RestartStrategy
> -
>
> Key: FLINK-15307
> URL: https://issues.apache.org/jira/browse/FLINK-15307
> Project: Flink
>  Issue Type: Improvement
>  Components: Runtime / Configuration
>Affects Versions: 1.9.0, 1.9.1, 1.10.0
>Reporter: andrew.D.lin
>Priority: Minor
> Attachments: image-2019-12-18-14-59-03-181.png
>
>
> Subclasses of RestartStrategy
>  * FailingRestartStrategy
>  * FailureRateRestartStrategy
>  * FixedDelayRestartStrategy
>  * InfiniteDelayRestartStrategy
> Implementation class of FailoverStrategy
>  * AdaptedRestartPipelinedRegionStrategyNG
>  * RestartAllStrategy
>  * RestartIndividualStrategy
>  * RestartPipelinedRegionStrategy
>  
> FailoverStrategy describes how the job computation recovers from task 
> failures.
> I think the following names may be easier to understand and easier to 
> distinguish:
> Implementation class of FailoverStrategy
>  * AdaptedPipelinedRegionFailoverStrategyNG
>  * FailoverAllStrategy
>  * FailoverIndividualStrategy
>  * FailoverPipelinedRegionStrategy
> FailoverStrategy is currently generated by configuration. If we change the 
> name of the implementation class, it will not affect compatibility.
>  



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