GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — feat: added client side metric instrumentation to basic rpcs by daniel-sanche · Pull Request #1188 · googleapis/python-bigtable
This repository was archived by the owner on Aug 30, 2026. It is now read-only.
Conversation
|
| for i in range(num_retryable): | ||
| attempt = handler.completed_attempts[i] | ||
| assert isinstance(attempt, CompletedAttemptMetric) | ||
| assert attempt.end_status.name == "ABORTED" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Not related to the metrics, but ABORTED shouldn't be retried for mutate row?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It doesn't look like it, and it's not listed as a retryable error in the service config. Is it in Java? It would be easy to add here
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| assert attempt.end_status.value[0] == 0 | ||
| assert attempt.backoff_before_attempt_ns == 0 | ||
| assert ( | ||
| attempt.gfe_latency_ns > 0 and attempt.gfe_latency_ns < attempt.duration_ns |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
how is gfe_latency_ns injected to the header? this should be a number instead of a range since we can set it in the header.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this is testing against the true backend response here, not a mocked value
These are system tests, so I was trying to limit the amount of mocking used here, although some other tests do inject fake exceptions into the stream to test retry logic
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| final_attempt = handler.completed_attempts[num_retryable] | ||
| assert isinstance(final_attempt, CompletedAttemptMetric) | ||
| assert final_attempt.end_status.name == "PERMISSION_DENIED" | ||
| assert final_attempt.gfe_latency_ns is None |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think as long as the request gets to the server, gfe_latency_ns should not be none. So this is probably related to the test setup ?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It looks like this test is testing the case where we have multiple transient retryable errors, before encountering a terminal error. For the errors, I'm using a custom error_injector class, to control which errors are triggered in which sequence. So this test wouldn't ever be reaching the real backend
It's been a while since I looked at this, but I remember having issues fully controlling the backend errors in the way I needed for some of these tests, which is why I used the error_injector. There are other tests in this file that send unauthorized requests to trigger a real backend failure though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing stale PRs to prepare for the code migration to google-cloud-python |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Re-opening to see if we can get this in before the migration. If not, we can close and re-start this in the monorepo |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
As per offline discussion with @daniel-sanche, closing PR to prepare for the code migration to google-cloud-python |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.