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
Fix #1250 by upgrading cloud.google.com/go/pubsub to v1.12.2 #1285
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing this change, it's much needed! The update to the cloud.google.com libs though also triggers the linter to rebuild and check components that depend on it and it's flagging the cloudstate state store component for its use of the deprecated ptypes
package. That component will need to be updated at the same time for the CI pipeline to allow this PR to be merged.
@CodeMonkeyLeet thank you for reviewing and looking into the linting errors. |
@yordan-pavlov I agree, it probably should be a separate PR, and that it should go in before this one. There's already a bug tracking it at #1261, but I suspect that with the code freeze for v1.5 release in RC, that's probably not going to get done right now. We should circle back to this no later than next week though. |
I have also added a reconnect loop for GCP pub/sub subscriptions here #1293 as a more general solution to this type of problem. |
@yordan-pavlov would you pls. kindly check my PR (yordan-pavlov#2) to solve the conflict? |
@beiwei30 thank you for looking into this, I will check your PR as soon as I can (should be later today or tomorrow morning) |
@yordan-pavlov thanks and no hurry. I made a mistake by accident when I tried to resolve conflict in your PR :) |
FYI, there's another issue being resolved in #1320 that will probably impact this PR. |
@CodeMonkeyLeet I change the solution to #1332, pls. take a look. |
@yordan-pavlov pls. run |
@yordan-pavlov can you check why the tests are failing? We would like to get this into 1.6 if possible. |
@yaron2 looks like the tests are failing because of the following error, not sure what's causing that - looks like tests were passing after my last commit:
|
it would be great if #1293 could be be merged for the 1.6 release as well - it adds much needed logging plus a configurable reconnect loop for even more reselience to the GCP pub/sub component |
Sure, will take a look at it too. |
@yordan-pavlov can you run |
@yaron2 I did run |
@yordan-pavlov You can run |
Also, please make sure you have Go 1.17 installed |
@yaron2 I understand now, the certification tests have their own go.mod files which |
@yaron2 the github.com/dapr/components-contrib/secretstores/gcp/secretmanager tests are still failing, it appears that this check
here https://github.com/dapr/components-contrib/blob/master/secretstores/gcp/secretmanager/secretmanager_test.go#L45
I wonder if extra validation was added in one of the upgraded libraries. I still haven't been able to track what exactly is causing this change in behavior. |
Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>
Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>
b91e7c5
to
7268fa9
Compare
Signed-off-by: Yordan Pavlov <yordan.pavlov@dunnhumby.com>
@yaron2 I have fixed the DCO and updated the failing GCP secret manager test |
Codecov Report
@@ Coverage Diff @@
## master #1285 +/- ##
==========================================
- Coverage 35.11% 35.00% -0.12%
==========================================
Files 153 153
Lines 13642 13644 +2
==========================================
- Hits 4791 4776 -15
- Misses 8345 8365 +20
+ Partials 506 503 -3
Continue to review full report at Codecov.
|
Description
Upgrade cloud.google.com/go/pubsub to v1.12.2 which includes a fix for googleapis/google-cloud-go#4257 where the
Subscription::Receive
method exits with error but should instead automatically reconnect.Prior to upgrading the GCP pub/sub library, the dapr sidecar would keep running (without logging any errors or warnings) but the subscription connection would stop working and no further messages would be received until the dapr sidecar is restarted. An example error that could trigger this behavior is:
rpc error: code = Unknown
desc = closing transport due to:
connection error:
desc = "error reading from server: EOF",
received prior goaway:
code: NO_ERROR,
debug data: server_shutting_down
After upgrading cloud.google.com/go/pubsub to v1.12.2, the issue hasn't been observed any more after several days of testing.
Issue reference
Please reference the issue this PR will close: #1250
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: