Title: Calls to `create_dataset` and `get_table` are timing out · Issue #34 · googleapis/python-bigquery · GitHub
Open Graph Title: Calls to `create_dataset` and `get_table` are timing out · Issue #34 · googleapis/python-bigquery
X Title: Calls to `create_dataset` and `get_table` are timing out · Issue #34 · googleapis/python-bigquery
Description: We're getting some frequent test failures in the pandas integration tests due to timed out requests, possibly due to googleapis/google-cloud-python#10219 which added non-None default timeout. It seems 60 seconds is not enough for these c...
Open Graph Description: We're getting some frequent test failures in the pandas integration tests due to timed out requests, possibly due to googleapis/google-cloud-python#10219 which added non-None default timeout. It se...
X Description: We're getting some frequent test failures in the pandas integration tests due to timed out requests, possibly due to googleapis/google-cloud-python#10219 which added non-None default timeout. I...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/34
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Calls to `create_dataset` and `get_table` are timing out","articleBody":"We're getting some frequent test failures in the pandas integration tests due to timed out requests, possibly due to https://github.com/googleapis/google-cloud-python/pull/10219 which added non-`None` default timeout.\r\n\r\nIt seems 60 seconds is not enough for these calls (but strange that so many API requests are timing out).\r\n\r\n#### Environment details\r\n\r\nContext: https://github.com/pydata/pandas-gbq/issues/309\r\n\r\n#### Steps to reproduce\r\n\r\n 1. Make frequent calls to `create_dataset`.\r\n 2. Observe flakey tests.\r\n\r\n#### Stack trace\r\n\r\n```\r\n if new_retry.is_exhausted():\r\n\u003e raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nE urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='bigquery.googleapis.com', port=443): Max retries exceeded with url: /bigquery/v2/projects/pandas-travis/datasets/pydata_pandas_bq_testing_dddqwbgrjz/tables/hrsctwrmva (Caused by NewConnectionError('\u003curllib3.connection.VerifiedHTTPSConnection object at 0x7ff87946e898\u003e: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/urllib3/util/retry.py:436: MaxRetryError\r\nDuring handling of the above exception, another exception occurred:\r\nself = \u003cpandas.tests.io.test_gbq.TestToGBQIntegrationWithServiceAccountKeyPath object at 0x7ff879725160\u003e\r\ngbq_dataset = 'pydata_pandas_bq_testing_dddqwbgrjz.hrsctwrmva'\r\n def test_roundtrip(self, gbq_dataset):\r\n destination_table = gbq_dataset\r\n \r\n test_size = 20001\r\n df = make_mixed_dataframe_v2(test_size)\r\n \r\n df.to_gbq(\r\n destination_table,\r\n _get_project_id(),\r\n chunksize=None,\r\n\u003e credentials=_get_credentials(),\r\n )\r\npandas/tests/io/test_gbq.py:185: \r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\npandas/core/frame.py:1551: in to_gbq\r\n credentials=credentials,\r\npandas/io/gbq.py:219: in to_gbq\r\n private_key=private_key,\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/pandas_gbq/gbq.py:1202: in to_gbq\r\n if table.exists(table_id):\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/pandas_gbq/gbq.py:1312: in exists\r\n self.client.get_table(table_ref)\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/cloud/bigquery/client.py:679: in get_table\r\n retry, method=\"GET\", path=table_ref.path, timeout=timeout\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/cloud/bigquery/client.py:556: in _call_api\r\n return call()\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/api_core/retry.py:286: in retry_wrapped_func\r\n on_error=on_error,\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/api_core/retry.py:184: in retry_target\r\n return target()\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/cloud/_http.py:419: in api_request\r\n timeout=timeout,\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/cloud/_http.py:277: in _make_request\r\n method, url, headers, data, target_object, timeout=timeout\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/cloud/_http.py:315: in _do_request\r\n url=url, method=method, headers=headers, data=data, timeout=timeout\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/google/auth/transport/requests.py:317: in request\r\n **kwargs\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/requests/sessions.py:533: in request\r\n resp = self.send(prep, **send_kwargs)\r\n../../../miniconda3/envs/pandas-dev/lib/python3.6/site-packages/requests/sessions.py:646: in send\r\n r = adapter.send(request, **kwargs)\r\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \r\n```\r\n\r\n","author":{"url":"https://github.com/tswast","@type":"Person","name":"tswast"},"datePublished":"2020-02-07T19:18:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":12},"url":"https://github.com/34/python-bigquery/issues/34"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1861bd9-e5d3-5c7c-a770-5b1af327d9be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D674:50FD4:21981B0:2E36704:6A4ED834 |
| html-safe-nonce | 8c4f66ea8192444a361f3b08d346322f3fe45dbfe5d8d9bdee8168e5894da138 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjc0OjUwRkQ0OjIxOTgxQjA6MkUzNjcwNDo2QTRFRDgzNCIsInZpc2l0b3JfaWQiOiI1NzcxMDk2NDQzMDEyOTYyMzU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 100148a12db4f0d9c927b9ef2209901890f3bba37c2bfb353d070f1c93bf31c6 |
| hovercard-subject-tag | issue:561822640 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-bigquery/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b869281879f9acd384e880c8130e63bd1b2b38732ca3c63b43fa72907df7e47/googleapis/python-bigquery/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b869281879f9acd384e880c8130e63bd1b2b38732ca3c63b43fa72907df7e47/googleapis/python-bigquery/issues/34 |
| og:image:alt | We're getting some frequent test failures in the pandas integration tests due to timed out requests, possibly due to googleapis/google-cloud-python#10219 which added non-None default timeout. It se... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tswast |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992475 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992475 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c37fe3e3f5f306900bd5b6bee97463f66c938b2c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width