Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4877

[Plasma] CI failure in test_plasma_list

    XMLWordPrintableJSON

Details

    Description

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

      =================================== 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
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              kou Kouhei Sutou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: