[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-02-17 Thread StephanEwen
Github user StephanEwen commented on the issue:

https://github.com/apache/flink/pull/3138
  
I think that is a good fix, thank you!

Merging this...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-02-15 Thread liuyuzhong7
Github user liuyuzhong7 commented on the issue:

https://github.com/apache/flink/pull/3138
  
@zentol @StephanEwen Please help me to review this PR. Thanks.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-02-09 Thread liuyuzhong7
Github user liuyuzhong7 commented on the issue:

https://github.com/apache/flink/pull/3138
  
@StephanEwen Fixed


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-02-07 Thread StephanEwen
Github user StephanEwen commented on the issue:

https://github.com/apache/flink/pull/3138
  
It would be good to add the removed code back in a way that does not 
conflict with powermock, like @zentol suggested.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-02-06 Thread liuyuzhong7
Github user liuyuzhong7 commented on the issue:

https://github.com/apache/flink/pull/3138
  
@StephanEwen  What should to to with this pull request?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-02-03 Thread liuyuzhong7
Github user liuyuzhong7 commented on the issue:

https://github.com/apache/flink/pull/3138
  
OK


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-23 Thread StephanEwen
Github user StephanEwen commented on the issue:

https://github.com/apache/flink/pull/3138
  
@liuyuzhong7 Would be good to know if you plan to follow up on this issue.
Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-18 Thread liuyuzhong7
Github user liuyuzhong7 commented on the issue:

https://github.com/apache/flink/pull/3138
  
@zentol Right, Strom LocalCluster can run in a single class without 
powermock.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-18 Thread zentol
Github user zentol commented on the issue:

https://github.com/apache/flink/pull/3138
  
I played around a bit with ignore pattern but couldn't get it to work.

However, moving WrapperSetupHelperTest into a separate class and replacing 
the StreamingRuntimeContext mocking (which in turn removes the need for 
PowerMock) should do the trick.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-18 Thread liuyuzhong7
Github user liuyuzhong7 commented on the issue:

https://github.com/apache/flink/pull/3138
  
@StephanEwen 
Only LocalCluster in storm can't workwith powermock.
And it fail to init if ignore LocalCluster by powermock in 
WrapperSetupHelperTest.

So I think delete or give a new example for LocalCluster is the better 
solution.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-17 Thread StephanEwen
Github user StephanEwen commented on the issue:

https://github.com/apache/flink/pull/3138
  
I think the correct fix would be not to remove the code, but
  - either make sure that storm classes are ignored by powermnock (add an 
ignore pattern)
  - rework the test such that powermock is not needed

How about that?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-17 Thread zentol
Github user zentol commented on the issue:

https://github.com/apache/flink/pull/3138
  
merging, will fix the import while doing so.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---


[GitHub] flink issue #3138: #Flink-5522 Storm Local Cluster can't work with powermock

2017-01-17 Thread zentol
Github user zentol commented on the issue:

https://github.com/apache/flink/pull/3138
  
The `org.apache.storm.LocalCluster` import can be removed as well.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---