Benson Muite created ARROW-14473:
------------------------------------
Summary: [JS][Release] Ensure can use nohup with the release script
Key: ARROW-14473
URL: https://issues.apache.org/jira/browse/ARROW-14473
Project: Apache Arrow
Issue Type: Improvement
Components: JavaScript
Affects Versions: 7.0.0
Reporter: Benson Muite
Assignee: Benson Muite
Node may have problems reading and writing files when called using nohup.
Directly running
{code:bash}
env "TEST_DEFAULT=0" env "TEST_JS=1" bash
dev/release/verify-release-candidate.sh source 6.0.0 3
{code}
seems to work, but
{code:bash}
nohup env "TEST_DEFAULT=0" env "TEST_JS=1" bash
dev/release/verify-release-candidate.sh source 6.0.0 3 > log.out &
{code}
may not work [1]. Either document that one can use
{code:bash}
(nohup env "TEST_DEFAULT=0" env "TEST_JS=1" bash
dev/release/verify-release-candidate.sh source 6.0.0 3 > log.out & )
{code}
or modify the javascript implementation so that it can run as a background
process and still find files so that the error:
{code:bash}
yarn run v1.22.17
$ /tmp/arrow-6.0.0.BDnN3/apache-arrow-6.0.0/js/node_modules/.bin/run-s
clean:all lint build
events.js:377
throw er; // Unhandled 'error' event
^
Error: EBADF: bad file descriptor, read
Emitted 'error' event on ReadStream instance at:
at internal/fs/streams.js:173:14
at FSReqCallback.wrapper [as oncomplete] (fs.js:562:5) {
errno: -9,
code: 'EBADF',
syscall: 'read'
}
error Command failed with exit code 1.
{code}
is not obtained.
[1]
https://stackoverflow.com/questions/16604176/error-ebadf-bad-file-descriptor-when-running-node-using-nohup-of-forever
--
This message was sent by Atlassian Jira
(v8.3.4#803005)