Skip to content

Better error when Python xlang download jar not available#32269

Merged
Abacn merged 2 commits intoapache:masterfrom
Abacn:bettererror
Aug 21, 2024
Merged

Better error when Python xlang download jar not available#32269
Abacn merged 2 commits intoapache:masterfrom
Abacn:bettererror

Conversation

@Abacn
Copy link
Copy Markdown
Contributor

@Abacn Abacn commented Aug 21, 2024

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:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@Abacn
Copy link
Copy Markdown
Contributor Author

Abacn commented Aug 21, 2024

R: @shunping @tvalentyn

@Abacn
Copy link
Copy Markdown
Contributor Author

Abacn commented Aug 21, 2024

internal issue: 361011084

@github-actions
Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

raise RuntimeError(
'Unable to fetch remote job server jar at %s: %s' % (url, e))
'Unable to fetch remote job server jar at %s: %s. If no Internet'
' access at runtime, stage the jar at %s' % (url, e, cache_dir))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Is it clear to users which jar to copy or where to take it from?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: consider using f-strings.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I should change cached_dir to cached_jar

@Abacn Abacn merged commit 512b52a into apache:master Aug 21, 2024
@Abacn Abacn deleted the bettererror branch August 21, 2024 21:06
reeba212 pushed a commit to reeba212/beam that referenced this pull request Dec 4, 2024
* Better error when Python xlang download jar not available

* address comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants