Skip to content

Comments

[BEAM-7170] Fix exception when retrieving ExpansionServer port after closing#8424

Merged
mxm merged 1 commit intoapache:masterfrom
mxm:BEAM-7170
Apr 29, 2019
Merged

[BEAM-7170] Fix exception when retrieving ExpansionServer port after closing#8424
mxm merged 1 commit intoapache:masterfrom
mxm:BEAM-7170

Conversation

@mxm
Copy link
Contributor

@mxm mxm commented Apr 29, 2019

The ExpansionServer can throw the following exception after shutdown because the
port getter retrieves the port dynamically from the underlying service:

java.lang.IllegalStateException: Already terminated
	at org.apache.beam.vendor.grpc.v1p13p1.com.google.common.base.Preconditions.checkState(Preconditions.java:444)
	at org.apache.beam.vendor.grpc.v1p13p1.io.grpc.internal.ServerImpl.getPort(ServerImpl.java:174)
	at org.apache.beam.runners.core.construction.expansion.ExpansionServer.getPort(ExpansionServer.java:66)

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

…closing

The ExpansionServer can throw the following exception after shutdown because the
port getter retrieves the port dynamically from the underlying service:

```
java.lang.IllegalStateException: Already terminated
	at org.apache.beam.vendor.grpc.v1p13p1.com.google.common.base.Preconditions.checkState(Preconditions.java:444)
	at org.apache.beam.vendor.grpc.v1p13p1.io.grpc.internal.ServerImpl.getPort(ServerImpl.java:174)
	at org.apache.beam.runners.core.construction.expansion.ExpansionServer.getPort(ExpansionServer.java:66)
```
@mxm mxm requested a review from iemejia April 29, 2019 12:21
Copy link
Member

@iemejia iemejia left a comment

Choose a reason for hiding this comment

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

LGTM

@mxm
Copy link
Contributor Author

mxm commented Apr 29, 2019

Java PreCommit stuck while collecting results, tests related to this PR are passing.

@mxm mxm merged commit 7e1de51 into apache:master Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants