engines/hdfs: swap fio_hdfsio_init and fio_hdfsio_io_u_init
authorAlbert Chang <albert.chang@hitachivantara.com>
Thu, 5 Nov 2020 18:30:22 +0000 (13:30 -0500)
committerAlbert Chang <albert.chang@hitachivantara.com>
Thu, 5 Nov 2020 18:30:22 +0000 (13:30 -0500)
commite2fba3ab0b1ae27fbaf607343be155527c1e8e49
tree04e267bda8ebd8a56c72e9783ad4884aa9528b2e
parentd1773f5b877f775191b87b8c5d044a16140e615b
engines/hdfs: swap fio_hdfsio_init and fio_hdfsio_io_u_init

Commit 08dc3bd50 initialized the io engine before the io_u buffers. The
unintended consequence for the libhdfs io engine was that the HDFS
connection was not established before attempting to open HDFS file
handles. This caused a NPE in the java layer on start-up preventing the
libhdfs io engine from being able to be used.

Signed-off-by: Albert Chang <albert.chang@hitachivantara.com>
engines/libhdfs.c