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

[Python][C++] posix_madvise error on Debian in pyarrow 1.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1, 2.0.0
    • Python
    • Installed with Miniconda (for Debian; used pip for the Ubuntu test)

    Description

      The following writes and reads back from a Parquet file in both pyarrow 0.17.0 and 1.0.0 on Ubuntu 18.04:
       

      >>> import pyarrow.parquet
      >>> a = pyarrow.array([[1.1, 2.2, 3.3], [], [4.4, 5.5]])
      >>> t = pyarrow.Table.from_batches([pyarrow.RecordBatch.from_arrays([a], ["stuff"])])
      >>> pyarrow.parquet.write_table(t, "stuff.parquet")
      >>> t2 = pyarrow.parquet.read_table("stuff.parquet") 

       
      However, the same thing raises the following exception on Debian 9 (stretch) in pyarrow 1.0.0 but not in pyarrow 0.17.0:

      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/home/jpivarski/miniconda3/lib/python3.7/site-packages/pyarrow/parquet.py", line 1564, in read_table
          filters=filters,
        File "/home/jpivarski/miniconda3/lib/python3.7/site-packages/pyarrow/parquet.py", line 1433, in __init__
          partitioning=partitioning)
        File "/home/jpivarski/miniconda3/lib/python3.7/site-packages/pyarrow/dataset.py", line 667, in dataset
          return _filesystem_dataset(source, **kwargs)
        File "/home/jpivarski/miniconda3/lib/python3.7/site-packages/pyarrow/dataset.py", line 434, in _filesystem_dataset
          return factory.finish(schema)
        File "pyarrow/_dataset.pyx", line 1451, in pyarrow._dataset.DatasetFactory.finish
        File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status
        File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
      OSError: posix_madvise failed. Detail: [errno 0] Success

      It's a little odd that the error says that it failed with "detail: success". That suggests to me that an "if" predicate is backward (missing "not"), which might only be triggered on some OS/distributions.

      Attachments

        1. location-of-pxi-files.log
          2 kB
          Jim Pivarski
        2. strace-parquet-read.log
          360 kB
          Jim Pivarski
        3. stuff.parquet
          0.7 kB
          Jim Pivarski

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              jpivarski Jim Pivarski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m