arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kouhei Sutou (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARROW-4877) [Plasma] CI failure in test_plasma_list
Date Thu, 14 Mar 2019 20:42:00 GMT
Kouhei Sutou created ARROW-4877:
-----------------------------------

             Summary: [Plasma] CI failure in test_plasma_list
                 Key: ARROW-4877
                 URL: https://issues.apache.org/jira/browse/ARROW-4877
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++ - Plasma, Continuous Integration, Python
            Reporter: Kouhei Sutou
             Fix For: 0.14.0


https://api.travis-ci.org/v3/job/506259901/log.txt

{noformat}
=================================== FAILURES ===================================
_______________________________ test_plasma_list _______________________________

    @pytest.mark.plasma
    def test_plasma_list():
        import pyarrow.plasma as plasma
    
        with plasma.start_plasma_store(
                plasma_store_memory=DEFAULT_PLASMA_STORE_MEMORY) \
                as (plasma_store_name, p):
            plasma_client = plasma.connect(plasma_store_name)
    
            # Test sizes
            u, _, _ = create_object(plasma_client, 11, metadata_size=7, seal=False)
            l1 = plasma_client.list()
            assert l1[u]["data_size"] == 11
            assert l1[u]["metadata_size"] == 7
    
            # Test ref_count
            v = plasma_client.put(np.zeros(3))
            l2 = plasma_client.list()
            # Ref count has already been released
            assert l2[v]["ref_count"] == 0
            a = plasma_client.get(v)
            l3 = plasma_client.list()
            assert l3[v]["ref_count"] == 1
            del a
    
            # Test state
            w, _, _ = create_object(plasma_client, 3, metadata_size=0, seal=False)
            l4 = plasma_client.list()
            assert l4[w]["state"] == "created"
            plasma_client.seal(w)
            l5 = plasma_client.list()
            assert l5[w]["state"] == "sealed"
    
            # Test timestamps
            t1 = time.time()
            x, _, _ = create_object(plasma_client, 3, metadata_size=0, seal=False)
            t2 = time.time()
            l6 = plasma_client.list()
>           assert math.floor(t1) <= l6[x]["create_time"] <= math.ceil(t2)
E           assert 1552568478 <= 1552568477
E            +  where 1552568478 = <built-in function floor>(1552568478.0022461)
E            +    where <built-in function floor> = math.floor

../../pyarrow-test-3.6/lib/python3.6/site-packages/pyarrow/tests/test_plasma.py:1070: AssertionError
----------------------------- Captured stderr call -----------------------------
I0314 13:01:17.901209 19953 store.cc:1093] Allowing the Plasma store to use up to 0.1GB of
memory.
I0314 13:01:17.901417 19953 store.cc:1120] Starting object store with directory /dev/shm and
huge page support disabled
{noformat}



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

Mime
View raw message