You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Boyuan Zhang (JIRA)" <ji...@apache.org> on 2018/05/29 20:42:00 UTC

[jira] [Commented] (BEAM-4426) apache_beam.transforms.dataflow_distribution_counter_test failed on Windows

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

Boyuan Zhang commented on BEAM-4426:
------------------------------------

Related file: [https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/dataflow_distribution_counter_test.py#L74|https://www.google.com/url?q=https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/dataflow_distribution_counter_test.py%23L74&sa=D&usg=AFQjCNHH9Zgw5rV-IZXf5ymYwg6mAxZRpw]
Root cause: 
In test_translate_to_histogram_with_max_input test case, I used sys.maxint as input, which is supposed to be math.pow(2,63) - 1. However, it's 2147483647 on WIndows.

> apache_beam.transforms.dataflow_distribution_counter_test failed on Windows
> ---------------------------------------------------------------------------
>
>                 Key: BEAM-4426
>                 URL: https://issues.apache.org/jira/browse/BEAM-4426
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-harness
>            Reporter: Boyuan Zhang
>            Assignee: Boyuan Zhang
>            Priority: Major
>
> apache_beam.transforms.dataflow_distributio
> n_counter_test:DataflowDistributionAccumulatorTest.test_translate_to_histogram_with_max_input
> test_translate_to_histogram_with_max_input (apache_beam.transforms.dataflow_distribution_counter_test.DataflowDistributi
> onAccumulatorTest) ... FAIL
> ======================================================================
> FAIL: test_translate_to_histogram_with_max_input (apache_beam.transforms.dataflow_distribution_counter_test.DataflowDist
> ributionAccumulatorTest)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "beam\sdks\python\apache_beam\transforms\dataflow_distribution_counter_test.py", li
> ne 77, in test_translate_to_histogram_with_max_input
>     self.assertEquals(histogram.firstBucketOffset, 57)
> AssertionError: 29 != 57



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