Project: datamanagement
Issue DM-2157: Data loader crashes on uncompressed data.
Vaikunth just mentioned to me that the is a crash in data loader when it tries to load uncompressed data: {noformat} root - CRITICAL - Exception occured: local variable 'outfile' referenced before assignment Traceback (most recent call last): File "/home/vaikunth/src/qserv/bin/qserv-data-loader.py", line 312, in sys.exit(loader.run()) File "/home/vaikunth/src/qserv/bin/qserv-data-loader.py", line 248, in run self.loader.load(self.args.database, self.args.table, self.args.schema, self.args.data) File "/home/vaikunth/src/qserv/lib/python/lsst/qserv/admin/dataLoader.py", line 168, in load return self._run(d atabase, table, schema, data) File "/home/vaikunth/src/qserv/lib/python/lsst/qserv/admin/dataLoader.py", line 192, in _run files = self._gunzip(data) File "/home/vaikunth/src/qserv/lib/python/lsst/qserv/admin/dataLoader.py", line 388, in _gunzip result.append(outfile) UnboundLocalError: local variable 'outfile' referenced before assignment {noformat} It looks like we never tested loader on uncompressed data and there is a bug in handling uncompressed data.
Story points: 1