-
Notifications
You must be signed in to change notification settings - Fork 28.7k
SPARK-7436: Fixed instantiation of custom recovery mode factory and added tests #5977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Merged build triggered. |
Merged build started. |
Test build #32102 has started for PR 5977 at commit |
Test build #32102 has finished for PR 5977 at commit
|
Merged build finished. Test PASSed. |
Test PASSed. |
@ScrapCodes, could you take a quick look through this since you wrote the original patch that added support for custom recovery mode factories? See https://issues.apache.org/jira/browse/SPARK-7436 for a description of the issue addressed by this patch. |
@JoshRosen Thanks for pointing out. Until now I was in the impression of x.getClass is same as classOf[X]. scala> class A
defined class A
scala> new A
res0: A = A@2d38eb89
scala> classOf[A]
res1: Class[A] = class A
scala> res0.getClass
res2: Class[_ <: A] = class A
scala>
Thanks a lot for adding a test suite :). There is minor nit regarding style, that we do not allow infix notations in scala syntax. LGTM otherwise. |
This is what I mentioned about. https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide#SparkCodeStyleGuide-InfixMethods |
@ScrapCodes do you mean "should matchers" ? |
Yes. |
I don't agree with this - you already use such notation in a few places (for Idea search for Although I can see the benefits of this style guide item for the production code, I cannot understand how it could be forbidden for test code? How would you use "should matchers" without this notation? Scala test frameworks are designed to use dot-less notation to improve readability and understanding of test cases, as well as to decrease unneeded verbosity. |
I am sorry, I was in an assumption we are religious about it. A quick search across the codebase proved my wrong. Matchers are widely used in at least recently added code. I personally agree with your opinion on scala and makes sense for dsl, but then it was just a convention. @JoshRosen if you are okay, I can go ahead and merge this ? |
@jacek-lewandowski Can you please close other Pull requests, with same issue id and you think are irrelevant. |
Thanks @ScrapCodes :) |
ahh makes sense then. Thanks a lot @jacek-lewandowski ! |
Side Note: Unless it is a non trivial merge, our merge scripts takes care of merging to other branches automatically. So we don't need separate PRs for same patch with no conflicts at all. |
@ScrapCodes so this one is enough then? |
Yes, if you think they are all exact same patch. |
Ahh, i do remember now - i needed to change some thing in the test while creating branch for some release... so i would keep them. |
Thanks for looking this over, @ScrapCodes. This looks good to me as well, so I'm going to merge this along with the other backport PRs. ❤️ the fact that this contains more test code than actual changes! |
…added tests Author: Jacek Lewandowski <[email protected]> Closes apache#5977 from jacek-lewandowski/SPARK-7436 and squashes the following commits: ff0a3c2 [Jacek Lewandowski] SPARK-7436: Fixed instantiation of custom recovery mode factory and added tests
…added tests Author: Jacek Lewandowski <[email protected]> Closes apache#5977 from jacek-lewandowski/SPARK-7436 and squashes the following commits: ff0a3c2 [Jacek Lewandowski] SPARK-7436: Fixed instantiation of custom recovery mode factory and added tests
…added tests Author: Jacek Lewandowski <[email protected]> Closes apache#5977 from jacek-lewandowski/SPARK-7436 and squashes the following commits: ff0a3c2 [Jacek Lewandowski] SPARK-7436: Fixed instantiation of custom recovery mode factory and added tests
No description provided.