git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-9758) ContinuousFileProcessingTest failed due to not setting runtimeContext


Yun Tang created FLINK-9758:
-------------------------------

             Summary: 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
    Affects Versions: 1.5.0
            Reporter: Yun Tang
             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)



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flink-development/msg07992.html on line 101
Call Stack
#TimeMemoryFunctionLocation
10.0007363608{main}( ).../msg07992.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flink-development/msg07992.html on line 101
Call Stack
#TimeMemoryFunctionLocation
10.0007363608{main}( ).../msg07992.html:0