You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/01/19 13:54:00 UTC

[jira] [Created] (ARROW-11320) [C++] Spurious test failure when creating temporary dir

Antoine Pitrou created ARROW-11320:
--------------------------------------

             Summary: [C++] Spurious test failure when creating temporary dir
                 Key: ARROW-11320
                 URL: https://issues.apache.org/jira/browse/ARROW-11320
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
            Reporter: Antoine Pitrou
            Assignee: Antoine Pitrou


When running the release verification script, I sometimes get this error:
{code}
[----------] 5 tests from TestInt8/TestSparseTensorRoundTrip/0, where TypeParam = arrow::Int8Type
[ RUN      ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCOOIndexRowMajor
/tmp/arrow-3.0.0.4SRpe/apache-arrow-3.0.0/cpp/src/arrow/ipc/tensor_test.cc:53: Failure
Failed
'_error_or_value8.status()' failed with IOError: Path already exists: '/tmp/ipc-test-qj6ng827/'
[  FAILED  ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCOOIndexRowMajor, where TypeParam = arrow::Int8Type (0 ms)
[ RUN      ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCOOIndexColumnMajor
[       OK ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCOOIndexColumnMajor (0 ms)
[ RUN      ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCSRIndex
[       OK ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCSRIndex (0 ms)
[ RUN      ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCSCIndex
[       OK ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCSCIndex (0 ms)
[ RUN      ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCSFIndex
[       OK ] TestInt8/TestSparseTensorRoundTrip/0.WithSparseCSFIndex (1 ms)
[----------] 5 tests from TestInt8/TestSparseTensorRoundTrip/0 (1 ms total)
{code}

It seems that in some fringe cases, the random generation of temporary directory names produces duplicates. Most likely this means the random generator is getting the same seed from different processes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)