You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Wei Zhong (Jira)" <ji...@apache.org> on 2019/09/02 07:08:00 UTC

[jira] [Comment Edited] (FLINK-13906) ExecutionConfigTests.test_equals_and_hash failed on Travis

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

Wei Zhong edited comment on FLINK-13906 at 9/2/19 7:07 AM:
-----------------------------------------------------------

This problem seems to be introduced in this commit: [https://github.com/apache/flink/pull/8175].

The GlobalJobParameters class implemented the "equals" method but not implemented the "hashCode" method so the hashCode of different GlobalJobParameters instances are not equal though these instances are all empty.


was (Author: zhongwei):
This problem seems to be introduced in this commit: [https://github.com/apache/flink/pull/8175].

> ExecutionConfigTests.test_equals_and_hash failed on Travis
> ----------------------------------------------------------
>
>                 Key: FLINK-13906
>                 URL: https://issues.apache.org/jira/browse/FLINK-13906
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Python
>    Affects Versions: 1.10.0
>            Reporter: Till Rohrmann
>            Assignee: Wei Zhong
>            Priority: Critical
>              Labels: pull-request-available, test-stability
>             Fix For: 1.10.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The {{ExecutionConfigTests.test_equals_and_hash}} Python test failed on Travis with
> {code}
> =================================== FAILURES ===================================
> __________________ ExecutionConfigTests.test_equals_and_hash ___________________
> self = <pyflink.common.tests.test_execution_config.ExecutionConfigTests testMethod=test_equals_and_hash>
>     def test_equals_and_hash(self):
>     
>         config1 = ExecutionEnvironment.get_execution_environment().get_config()
>     
>         config2 = ExecutionEnvironment.get_execution_environment().get_config()
>     
>         self.assertEqual(config1, config2)
>     
> >       self.assertEqual(hash(config1), hash(config2))
> E       AssertionError: 1609772339 != -295934785
> pyflink/common/tests/test_execution_config.py:277: AssertionError
> ==================== 1 failed, 373 passed in 50.62 seconds =====================
> ERROR: InvocationError for command /home/travis/build/flink-ci/flink/flink-python/.tox/py27/bin/pytest (exited with code 1)
> {code}
> https://api.travis-ci.com/v3/job/229361674/log.txt



--
This message was sent by Atlassian Jira
(v8.3.2#803003)