Skip to content
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

[BEAM-886] Rename NewDoFn to DoFn #1913

Closed
wants to merge 1 commit into from

Conversation

sb2nov
Copy link
Contributor

@sb2nov sb2nov commented Feb 3, 2017

R: @aaltay PTAL

Will just have one more PR after this to completely remove the OldDoFn

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@asfbot
Copy link

asfbot commented Feb 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7055/

Build result: ABORTED

[...truncated 8270 lines...] ... 31 moreCaused by: java.lang.RuntimeException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?Command was /bin/sh -c cd /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_MavenInstall/sdks/java/harness && /usr/local/asfpackages/java/jdk1.8.0_102/jre/bin/java org.apache.maven.surefire.booter.ForkedBooter /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_MavenInstall/sdks/java/harness/target/surefire/surefire2654316966397738592tmp /home/jenkins/jenkins-slave/workspace/beam_PreCommit_Java_MavenInstall/sdks/java/harness/target/surefire/surefire_165941443398769830423tmp at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:590) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:460) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:229) at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:201) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1026) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:862) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:755) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 32 more2017-02-03T07:22:05.214 [ERROR] 2017-02-03T07:22:05.214 [ERROR] Re-run Maven using the -X switch to enable full debug logging.2017-02-03T07:22:05.214 [ERROR] 2017-02-03T07:22:05.214 [ERROR] For more information about the errors and possible solutions, please read the following articles:2017-02-03T07:22:05.214 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException2017-02-03T07:22:05.215 [ERROR] 2017-02-03T07:22:05.215 [ERROR] After correcting the problems, you can resume the build with the command2017-02-03T07:22:05.215 [ERROR] mvn -rf :beam-sdks-java-harnessBuild was abortedchannel stoppedSetting status of dd30c50 to FAILURE with url https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7055/ and message: 'Build finished. 'Using context: Jenkins: Maven clean install
--none--

@sb2nov
Copy link
Contributor Author

sb2nov commented Feb 3, 2017

retest this please

@coveralls
Copy link

Coverage Status

Coverage remained the same at 69.681% when pulling dd30c50 on sb2nov:BEAM-866-rename-NewDoFn-5 into 08e58e1 on apache:master.

@asfbot
Copy link

asfbot commented Feb 3, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7058/
--none--

@@ -225,7 +225,7 @@ def process(context):
else:
self.dofn_process = lambda context: fn.process(context, *args)

class CurriedFn(core.DoFn):
class CurriedFn(core.OldDoFn):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many OldDoFn s are left after this change? And why can't we upgrade this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a runner code of the OldDoFn so not really a new usecase. I don't know why the tests didn't catch this but there shouldn't be any more usage of them.

@aaltay
Copy link
Member

aaltay commented Feb 3, 2017

LGTM

@asfgit asfgit closed this in 4ccbdbc Feb 3, 2017
@sb2nov sb2nov deleted the BEAM-866-rename-NewDoFn-5 branch February 8, 2017 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants