Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagedChannelImpl was not shutdown properly #1760

Open
jklukas opened this issue Jul 16, 2021 · 1 comment
Open

ManagedChannelImpl was not shutdown properly #1760

jklukas opened this issue Jul 16, 2021 · 1 comment

Comments

@jklukas
Copy link
Contributor

jklukas commented Jul 16, 2021

We are still seeing some instances of this message in the ContextualServicesSender Dataflow job in production (example):

"*~*~*~ Channel ManagedChannelImpl{logId=59, target=bigquerystorage.googleapis.com:443} was not shutdown properly!!! ~*~*~*
    Make sure to call shutdown()/shutdownNow() and wait until awaitTermination() returns true."

We had previously downgraded to Beam 2.28.0 to avoid this issue, but it was supposed to be fixed in 2.31.0. See https://issues.apache.org/jira/browse/BEAM-12356

We previously were having OOM issues that we believe were related to this problem. We are not seeing that yet on 2.31.0 so perhaps the severity of the problem is significantly reduced. The errors seem to come in spurts, with about 3 messages emitted and then hours of silence.

cc @BenWu

@jklukas
Copy link
Contributor Author

jklukas commented Jul 16, 2021

Of note, I previously thought that this error was indicating that Beam was using the new Storage Write API for all streaming inserts. That's not true. There's a new separate WriteMethod.STORAGE_WRITE_API that has to be chosen to use the write api.

But! The DatasetServicesImpl provisions a newWriteClient regardless of whether the Write API is being used. The error message is related to the write client not being shut down properly, but our pipeline is not set up to actually try to send data to BQ using the Write API.

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

No branches or pull requests

1 participant