[英]java bigquery storage write api
Using the java bigquery storage api as documented here https:\/\/cloud.google.com\/bigquery\/docs\/write-api<\/a> .使用此处记录的 java bigquery 存储 api
https:\/\/cloud.google.com\/bigquery\/docs\/write-api<\/a> 。 Keeping the write stream long lived and refreshing it when one of the non-retry-able errors happened as per thishttps:\/\/cloud.google.com\/bigquery\/docs\/write-api#error_handling<\/a>
根据此
https:\/\/cloud.google.com\/bigquery\/docs\/write-api#error_handling<\/a>在发生不可重试错误之一时,保持写入流长期存在并刷新它
Original error because stream closed due to inactivity原始错误,因为流因不活动而关闭
! io.grpc.StatusRuntimeException: FAILED_PRECONDITION: Stream is closed due to com.google.api.gax.rpc.AbortedException: io.grpc.StatusRuntimeException: ABORTED: Closing the stream because it has been inactive for 600 seconds. Entity: projects/<id>/datasets/<id>/tables/<id>/_default
! at com.google.cloud.bigquery.storage.v1beta2.StreamWriterV2.appendInternal(StreamWriterV2.java:263)
! at com.google.cloud.bigquery.storage.v1beta2.StreamWriterV2.append(StreamWriterV2.java:234)
! at com.google.cloud.bigquery.storage.v1beta2.JsonStreamWriter.append(JsonStreamWriter.java:114)
! at com.google.cloud.bigquery.storage.v1beta2.JsonStreamWriter.append(JsonStreamWriter.java:89)
could you try updating to using the v1 version of the client?您可以尝试更新为使用客户端的 v1 版本吗? We have added reconnect support for the JsonStreamwriter which should help with retries.
我们添加了对 JsonStreamwriter 的重新连接支持,这应该有助于重试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.