[
https://issues.apache.org/jira/browse/BEAM-1543?focusedWorklogId=111709&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-111709
]
ASF GitHub Bot logged work on BEAM-1543:
----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jun/18 22:25
Start Date: 13/Jun/18 22:25
Worklog Time Spent: 10m
Work Description: ezmicken commented on a change in pull request #2089:
[BEAM-1543] Updated TestPipeline's javadoc.
URL: https://github.com/apache/beam/pull/2089#discussion_r195254910
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/testing/TestPipeline.java
##########
@@ -292,8 +298,8 @@ public void evaluate() throws Throwable {
public PipelineResult run() {
checkState(
enforcement.isPresent(),
- "Attempted to run a pipeline while it's enforcement level was not set.
Are you "
- + "using TestPipeline without a @Rule annotation?");
+ "Is your TestPipeline declaration missing a @Rule annotation? Usage: "
Review comment:
I encountered this error, "Is your TestPipeline declaration missing a @Rule
annotation?" but I did include a @Rule annotation. To resolve the error I had
to enable abandoned node enforcement. Perhaps the message should be updated?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 111709)
Time Spent: 10m
Remaining Estimate: 0h
> 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
> Priority: Major
> Fix For: 0.6.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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
(v7.6.3#76005)