设置超时并重试'重试设置'在bigquery-api上处理服务器超时问题,还是这只是客户端?

时间:2017-09-12 18:09:07

标签: google-bigquery google-cloud-platform

我正在尝试将一些数据添加到bigquery表中,并希望重试写入失败。如果我们设置了最大重试次数和总超时,我找到了一个库函数来重试写入数据。 这个函数会处理下面的超时错误吗?此外,它是仅在抛出异常时触发,还是仅在缺少几行时触发(在这种情况下bigquery-api会返回成功)?

代码段:

    RetrySettings retrySettings = RetrySettings.newBuilder()
    .setTotalTimeout(Duration.ofSeconds(16)).setMaxAttempts(3).build();

日志:

    2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 
    [ERROR] Failed on errors : 13 / 500
    2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 
    [ERROR] {
    "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
    10.73.74.131:25988 : DEADLINE_EXCEEDED",
    "location" : "",
    "message" : "",
    "reason" : "timeout"
    }
    2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 
    [ERROR] {
    "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
    10.73.104.139:14782 : DEADLINE_EXCEEDED",
    "location" : "",
    "message" : "",
    "reason" : "timeout"
    }
    2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 
    [ERROR] {
    "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
    10.73.104.5:26078 : DEADLINE_EXCEEDED",
    "location" : "",
    "message" : "",
    "reason" : "timeout"
    }
    2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 [ERROR] {
   "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
   10.73.156.197:26110 : DEADLINE_EXCEEDED",
   "location" : "",
   "message" : "",
   "reason" : "timeout"
   }
   2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 
   [ERROR] {
   "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
   10.73.29.69:25588 : DEADLINE_EXCEEDED",
   "location" : "",
   "message" : "",
   "reason" : "timeout"
   }
   2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 [ERROR] {
   "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
   10.73.253.134:25986 : DEADLINE_EXCEEDED",
   "location" : "",
   "message" : "",
   "reason" : "timeout"
   }
   2017-09-12 15:29:02.961 c.y.d.m.b.MawBigQueryClient pool-12-thread-16 [ERROR] {
   "debugInfo" : "bigtable::Deadline missed: /BTI_TabletServer.Apply to 
   10.73.49.2:14832 : DEADLINE_EXCEEDED",
   "location" : "",
   "message" : "",
   "reason" : "timeout"
   }

0 个答案:

没有答案