beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stas Levin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-1543) TestPipeline: @Rule error message confusing/javadoc doesn't explain proper usage
Date Sun, 26 Feb 2017 18:21:46 GMT

    [ https://issues.apache.org/jira/browse/BEAM-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884847#comment-15884847
] 

Stas Levin commented on BEAM-1543:
----------------------------------

[~sisk], we did some [brush ups| https://github.com/apache/beam/blob/master/sdks/java/core/src/main/java/org/apache/beam/sdk/testing/TestPipeline.java#L82]
:)

Hopefully [BEAM-1557|https://issues.apache.org/jira/browse/BEAM-1557] will introduce further
improvements.

> TestPipeline: @Rule error message confusing/javadoc doesn't explain proper usage
> --------------------------------------------------------------------------------
>
>                 Key: BEAM-1543
>                 URL: https://issues.apache.org/jira/browse/BEAM-1543
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>            Reporter: Stephen Sisk
>            Assignee: Stas Levin
>             Fix For: 0.6.0
>
>
> I'm working on JdbcIOIT. Trying to run the checked-in version, I encountered this error:

> "Attempted to run a pipeline while it's enforcement level was not set. Are you using
TestPipeline without a @Rule annotation?"
> This error does not give me enough information to diagnose:
> a) what problem is occurring
> b) what I can do to solve it
> Checking the javadocs for TestPipeline, I don't see any information about @Rule or anything
of that nature.
> I did some github blame-ing on that string, and found BEAM-1205 and the accompanying
PR, however it was also unclear from BEAM-1205 exactly what I'm supposed to do to make this
test work.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message