flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-9758) ContinuousFileProcessingTest failed due to not setting runtimeContext
Date Sun, 15 Jul 2018 12:46:00 GMT

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

ASF GitHub Bot commented on FLINK-9758:
---------------------------------------

Github user dawidwys commented on the issue:

    https://github.com/apache/flink/pull/6260
  
    +1, merging


> ContinuousFileProcessingTest failed due to not setting runtimeContext
> ---------------------------------------------------------------------
>
>                 Key: FLINK-9758
>                 URL: https://issues.apache.org/jira/browse/FLINK-9758
>             Project: Flink
>          Issue Type: Bug
>          Components: DataStream API, Tests
>    Affects Versions: 1.5.0, 1.6.0
>            Reporter: Yun Tang
>            Assignee: Yun Tang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.5.2
>
>
> Currently, ContinuousFileMonitoringFunction#open() method will print runtime context
if the log-level is Debug:
> {code:java}
> if (LOG.isDebugEnabled()) {
>    LOG.debug("Opened {} (taskIdx= {}) for path: {}",
>       getClass().getSimpleName(), getRuntimeContext().getIndexOfThisSubtask(), path);
> }
> {code}
> However, ContinuousFileProcessingTest did not set runtime context for monitoringFunction,
which will result in UT failure due to IllegalStateException if log level is set to DEBUG
> {code:java}
> IllegalStateException("The runtime context has not been initialized."); 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message