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

[Plasma] test_plasma_list test failure on Ubuntu 14.04

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.11.0
    • Python
    • None

    Description

      This test fails consistently for me on Ubuntu 14.04 / Python 3.6.5

      pyarrow/tests/test_plasma.py::test_plasma_list FAILED                                                                                                                                   [ 83%]
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> captured stderr >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      Allowing the Plasma store to use up to 0.1GB of memory.
      Starting object store with directory /dev/shm and huge page support disabled
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> traceback >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      
          @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, "", 0)
          
                  # 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
      E           assert 0 == 1
      
      pyarrow/tests/test_plasma.py:825: AssertionError
      >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> entering PDB >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      > /home/wesm/code/arrow/python/pyarrow/tests/test_plasma.py(825)test_plasma_list()
      -> assert l3[v]["ref_count"] == 1
      
      

      Attachments

        Activity

          People

            wesm Wes McKinney
            wesm Wes McKinney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: