You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/07/19 22:55:00 UTC
[jira] [Work logged] (BEAM-7747) ERROR: test_sink_transform
(apache_beam.io.avroio_test.TestFastAvro) Fails on Windows
[ https://issues.apache.org/jira/browse/BEAM-7747?focusedWorklogId=279988&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-279988 ]
ASF GitHub Bot logged work on BEAM-7747:
----------------------------------------
Author: ASF GitHub Bot
Created on: 19/Jul/19 22:54
Start Date: 19/Jul/19 22:54
Worklog Time Spent: 10m
Work Description: tvalentyn commented on pull request #9111: [BEAM-7747] Close the file handle owned by fastavro.write.Writer in _FastAvroSink.close().
URL: https://github.com/apache/beam/pull/9111
**Please** add a meaningful description for your change here
------------------------
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
- [ ] [**Choose reviewer(s)**](https://beam.apache.org/contribute/#make-your-change) and mention them in a comment (`R: @username`).
- [ ] Format the pull request title like `[BEAM-XXX] Fixes bug in ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
- [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).
Post-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
Lang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark
--- | --- | --- | --- | --- | --- | --- | ---
Go | [](https://builds.apache.org/job/beam_PostCommit_Go/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_Go_VR_Flink/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_Go_VR_Spark/lastCompletedBuild/)
Java | [](https://builds.apache.org/job/beam_PostCommit_Java/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Batch/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink_Streaming/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Spark_Batch/lastCompletedBuild/)
Python | [] (https://builds.apache.org/job/beam_PostCommit_Python2/lastCompletedBuild/)<br>[] (https://builds.apache.org/job/beam_PostCommit_Python35/lastCompletedBuild/)<br>[] (https://builds.apache.org/job/beam_PostCommit_Python36/lastCompletedBuild/)<br>[] (https://builds.apache.org/job/beam_PostCommit_Python37/lastCompletedBuild/) | --- | [](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/)<br>[](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Python_PVR_Flink_Cron/lastCompletedBuild/) | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_Python_VR_Spark/lastCompletedBuild/)
Pre-Commit Tests Status (on master branch)
------------------------------------------------------------------------------------------------
--- |Java | Python | Go | Website
--- | --- | --- | --- | ---
Non-portable | [](https://builds.apache.org/job/beam_PreCommit_Java_Cron/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Python_Cron/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Go_Cron/lastCompletedBuild/) | [](https://builds.apache.org/job/beam_PreCommit_Website_Cron/lastCompletedBuild/)
Portable | --- | [](https://builds.apache.org/job/beam_PreCommit_Portable_Python_Cron/lastCompletedBuild/) | --- | ---
See [.test-infra/jenkins/README](https://github.com/apache/beam/blob/master/.test-infra/jenkins/README.md) for trigger phrase, status and link of all Jenkins jobs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 279988)
Time Spent: 10m
Remaining Estimate: 0h
> 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
> Time Spent: 10m
> Remaining Estimate: 0h
>
> ======================================================================
> 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)