[
https://issues.apache.org/jira/browse/BEAM-7924?focusedWorklogId=296617&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-296617
]
ASF GitHub Bot logged work on BEAM-7924:
----------------------------------------
Author: ASF GitHub Bot
Created on: 16/Aug/19 21:52
Start Date: 16/Aug/19 21:52
Worklog Time Spent: 10m
Work Description: ibzib commented on pull request #9365: [BEAM-7924] fix
pipeline options error with main session
URL: https://github.com/apache/beam/pull/9365
When the `save_main_session` option is enabled, the Python SDK harness
currently fails with the following message:
```
AttributeError: 'PipelineOptions' object has no attribute 'ProfilingOptions'
```
I'm not sure exactly what's going on here, so it'd be great if anyone could
help explain why this bandaid fix works, and if we might need a deeper fix.
R: @robertwb @aaltay
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/)
XLang | --- | --- | --- | [](https://builds.apache.org/job/beam_PostCommit_XVR_Flink/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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 296617)
Time Spent: 3h 40m (was: 3.5h)
> Failure in Python 2 postcommit: crossLanguagePythonJavaFlink
> ------------------------------------------------------------
>
> Key: BEAM-7924
> URL: https://issues.apache.org/jira/browse/BEAM-7924
> Project: Beam
> Issue Type: Bug
> Components: test-failures
> Reporter: Udi Meiri
> Assignee: Heejong Lee
> Priority: Major
> Fix For: 2.15.0
>
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> This seems to be the root cause:
> {code}
> 11:32:59 [grpc-default-executor-1] WARN pipeline_options.get_all_options -
> Discarding unparseable args: [u'--app_name=None',
> u'--shutdown_sources_on_final_watermark', u'--flink_master=[auto]',
> u'--direct_runner_use_stacked_bundle', u'--options_id=1',
> u'--fail_on_checkpointing_errors', u'--enable_metrics',
> u'--pipeline_type_check', u'--parallelism=2']
> 11:32:59 [grpc-default-executor-1] INFO sdk_worker_main.main - Python sdk
> harness started with pipeline_options: {'runner': u'None', 'experiments':
> [u'worker_threads=100', u'beam_fn_api'], 'environment_cache_millis':
> u'10000', 'sdk_location': u'container', 'job_name':
> u'BeamApp-root-0807183253-57a72c22', 'save_main_session': True, 'region':
> u'us-central1', 'sdk_worker_parallelism': u'1'}
> 11:32:59 [grpc-default-executor-1] ERROR sdk_worker_main.main - Python sdk
> harness failed:
> 11:32:59 Traceback (most recent call last):
> 11:32:59 File
> "/usr/local/lib/python2.7/site-packages/apache_beam/runners/worker/sdk_worker_main.py",
> line 153, in main
> 11:32:59 sdk_pipeline_options.view_as(pipeline_options.ProfilingOptions))
> 11:32:59 File
> "/usr/local/lib/python2.7/site-packages/apache_beam/options/pipeline_options.py",
> line 334, in __getattr__
> 11:32:59 (type(self).__name__, name))
> 11:32:59 AttributeError: 'PipelineOptions' object has no attribute
> 'ProfilingOptions'
> {code}
> https://builds.apache.org/job/beam_PostCommit_Python2_PR/58/console
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)