[
https://issues.apache.org/jira/browse/ARROW-3095?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16586270#comment-16586270
]
Antoine Pitrou commented on ARROW-3095:
---------------------------------------
I'm afraid this is a real WTF here. When the Arrow C++ install is run, the
installed {{plasma_store}} is a normal executable that seems to work correctly:
{code}
$ /home/antoine/arrow/python/pyarrow/plasma_store -s /tmp/plasma.sock -m 10000
Allowing the Plasma store to use up to 1e-05GB of memory.
Starting object store with directory /dev/shm and huge page support disabled
{code}
When the pyarrow install is run (via setup.py), the installed {{plasma_store}}
is some Python script that stupidly executes itself in a loop (see
{{_plasma_store_entry_point}}).
[~pcmoritz] why does this even exist?
> [Python] test_plasma.py fails
> -----------------------------
>
> Key: ARROW-3095
> URL: https://issues.apache.org/jira/browse/ARROW-3095
> Project: Apache Arrow
> Issue Type: Bug
> Components: Plasma (C++), Python
> Affects Versions: 0.10.0
> Reporter: Antoine Pitrou
> Priority: Major
>
> All tests in {{test_plasma.py}} fail here. It seems that plasma_store fails
> launching or something:
> {code}
> $ python -m pytest -x -r s --tb=native pyarrow/tests/test_plasma.py
> ==================================================================== test
> session starts
> ====================================================================
> platform linux -- Python 3.7.0, pytest-3.7.2, py-1.5.4, pluggy-0.7.1
> rootdir: /home/antoine/arrow/python, inifile: setup.cfg
> plugins: timeout-1.3.1, faulthandler-1.5.0
> collected 24 items
>
> pyarrow/tests/test_plasma.py E
> ===========================================================================
> ERRORS
> ===========================================================================
> ________________________________________ ERROR at setup of
> TestPlasmaClient.test_connection_failure_raises_exception
> _________________________________________
> Traceback (most recent call last):
> File "/home/antoine/arrow/python/pyarrow/tests/test_plasma.py", line 119,
> in setup_method
> self.plasma_client = plasma.connect(plasma_store_name, "", 64)
> File "pyarrow/_plasma.pyx", line 691, in pyarrow._plasma.connect
> check_status(result.client.get()
> File "pyarrow/error.pxi", line 83, in pyarrow.lib.check_status
> raise ArrowIOError(message)
> pyarrow.lib.ArrowIOError: ../src/plasma/client.cc:921 code:
> ConnectIpcSocketRetry(store_socket_name, num_retries, -1, &store_conn_)
> Could not connect to socket /tmp/test_plasma-ikgi25pf/plasma.sock
> ------------------------------------------------------------------- Captured
> stderr setup
> --------------------------------------------------------------------
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 50 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 49 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 48 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 47 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 46 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 45 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 44 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 43 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 42 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 41 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 40 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 39 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 38 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 37 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 36 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 35 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 34 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 33 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 32 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 31 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 30 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 29 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 28 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 27 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 26 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 25 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 24 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 23 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 22 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 21 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 20 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 19 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 18 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 17 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 16 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 15 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 14 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 13 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 12 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 11 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 10 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 9 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 8 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 7 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 6 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 5 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 4 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 3 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 2 more times
> Connection to IPC socket failed for pathname
> /tmp/test_plasma-ikgi25pf/plasma.sock, retrying 1 more times
> ================================================================== 1 error in
> 5.15 seconds
> ===================================================================
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)