You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Valentyn Tymofieiev (JIRA)" <ji...@apache.org> on 2019/07/19 20:57:00 UTC

[jira] [Commented] (BEAM-7747) ERROR: test_sink_transform (apache_beam.io.avroio_test.TestFastAvro) Fails on Windows

    [ https://issues.apache.org/jira/browse/BEAM-7747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16889173#comment-16889173 ] 

Valentyn Tymofieiev commented on BEAM-7747:
-------------------------------------------

I suspect a temporary file created by FastAvroIO is not is not being closed in time.
{noformat}
ERROR:root:Exception in _rename_batch. src: 
c:\users\deft-t~1\appdata\local\temp\2\beam-temp-tmpokw4ei-d2a9f2cfaa6611e981e8c45de4a2bf0c\1eb13c37-3f7c-4f0e-b553-32c7248d2c74.tmpokw4ei, dst: 
c:\users\deft-t~1\appdata\local\temp\2\tmpokw4ei-00000-of-00001, err: [Error 32] The process cannot access the file because it is being used by another 
process
ERROR
{noformat}

> ERROR: test_sink_transform (apache_beam.io.avroio_test.TestFastAvro) Fails on Windows
> -------------------------------------------------------------------------------------
>
>                 Key: BEAM-7747
>                 URL: https://issues.apache.org/jira/browse/BEAM-7747
>             Project: Beam
>          Issue Type: Bug
>          Components: io-python-avro, test-failures
>            Reporter: Valentyn Tymofieiev
>            Priority: Major
>
> ======================================================================
> ERROR: test_sink_transform (apache_beam.io.avroio_test.TestFastAvro)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "C:\projects\beam\sdks\python\apache_beam\io\avroio_test.py", line 436, in test_sink_transform
>     | avroio.WriteToAvro(path, self.SCHEMA, use_fastavro=self.use_fastavro)
>   File "C:\projects\beam\sdks\python\apache_beam\pipeline.py", line 426, in __exit__
>     self.run().wait_until_finish()
>   File "C:\projects\beam\sdks\python\apache_beam\testing\test_pipeline.py", line 107, in run
>     else test_runner_api))
>   File "C:\projects\beam\sdks\python\apache_beam\pipeline.py", line 406, in run
>     self._options).run(False)
>   File "C:\projects\beam\sdks\python\apache_beam\pipeline.py", line 419, in run
>     return self.runner.run_pipeline(self, self._options)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\direct\direct_runner.py", line 128, in run_pipeline
>     return runner.run_pipeline(pipeline, options)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 319, in run_pipeline
>     default_environment=self._default_environment))
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 326, in run_via_runner_api
>     return self.run_stages(stage_context, stages)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 408, in run_stages
>     stage_context.safe_coders)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 681, in _run_stage
>     result, splits = bundle_manager.process_bundle(data_input, data_output)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 1562, in process_bundle
>     part_inputs):
>   File "C:\venv\newenv1\lib\site-packages\concurrent\futures\_base.py", line 641, in result_iterator
>     yield fs.pop().result()
>   File "C:\venv\newenv1\lib\site-packages\concurrent\futures\_base.py", line 462, in result
>     return self.__get_result()
>   File "C:\venv\newenv1\lib\site-packages\concurrent\futures\thread.py", line 63, in run
>     result = self.fn(*self.args, **self.kwargs)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 1561, in <lambda>
>     self._registered).process_bundle(part, expected_outputs),
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 1500, in process_bundle
>     result_future = self._controller.control_handler.push(process_bundle_req)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\portability\fn_api_runner.py", line 1017, in push
>     response = self.worker.do_instruction(request)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\sdk_worker.py", line 342, in do_instruction
>     request.instruction_id)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\sdk_worker.py", line 368, in process_bundle
>     bundle_processor.process_bundle(instruction_id))
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\bundle_processor.py", line 593, in process_bundle
>     data.ptransform_id].process_encoded(data.data)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\bundle_processor.py", line 143, in process_encoded
>     self.output(decoded_value)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\operations.py", line 256, in output
>     cython.cast(Receiver, self.receivers[output_index]).receive(windowed_value)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\operations.py", line 143, in receive
>     self.consumer.process(windowed_value)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\worker\operations.py", line 594, in process
>     delayed_application = self.dofn_receiver.receive(o)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 795, in receive
>     self.process(windowed_value)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 801, in process
>     self._reraise_augmented(exn)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 868, in _reraise_augmented
>     raise_with_traceback(new_exn)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 799, in process
>     return self.do_fn_invoker.invoke_process(windowed_value)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 611, in invoke_process
>     windowed_value, additional_args, additional_kwargs, output_processor)
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 683, in _invoke_process_per_window
>     windowed_value, self.process_method(*args_for_process))
>   File "C:\projects\beam\sdks\python\apache_beam\runners\common.py", line 914, in process_outputs
>     for result in results:
>   File "C:\projects\beam\sdks\python\apache_beam\io\iobase.py", line 1085, in <genexpr>
>     window.TimestampedValue(v, timestamp.MAX_TIMESTAMP) for v in outputs)
>   File "C:\projects\beam\sdks\python\apache_beam\io\filebasedsink.py", line 322, in finalize_write
>     'Encountered exceptions in finalize_write: %s' % all_exceptions)
> Exception: Encountered exceptions in finalize_write: [IOError(WindowsError(32, 'The process cannot access the file becau
> se it is being used by another process'),)] [while running 'WriteToAvro/Write/WriteImpl/FinalizeWrite']



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)