简体   繁体   English

无法运行查询:项目在数据区域中没有预留 - 删除预留后几分钟

[英]Cannot run query: project does not have the reservation in the data region - for a few minutes after removing the reservation

I am using flexible reservations for bigquery and turn them on/off for larger jobs.我正在为 bigquery 使用灵活的预留,并为更大的工作打开/关闭它们。 However after turning them off and (somewhere else) a query is started, it will fail with the "Cannot run query: project does not have the reservation in the data region" error.但是,在关闭它们并(在其他地方)启动查询后,它将失败并出现“无法运行查询:项目在数据区域中没有保留”错误。 This happens for about 20 seconds, and then everything works fine.这种情况会持续大约 20 秒,然后一切正常。

What I do for turning flex reservations on is:我为打开弹性预订所做的是:

  • create a commitment创建一个承诺
  • create a reservation创建预订
  • create an assignment wait 60 seconds (this works fine)创建作业等待 60 秒(这很好用)

What I do for turning flex reservations off is:我为关闭弹性预订所做的是:

  • remove the assignment删除分配
  • remove the reservation删除预订
  • remove the commitment Now we are entering a short "twilight" zone where the error can happen.删除承诺 现在我们正在进入一个可能会发生错误的短暂“暮光之城”区域。 After some time, everything starts working normally一段时间后,一切开始正常工作

Is this normal behaviour?这是正常行为吗? Is there anything in the removement procedure that can be done to avoid this?移除过程中有什么可以避免的吗?

You can do the following to prevent that issue.您可以执行以下操作来防止出现该问题。

  1. Delete the assignment删除作业
  2. Wait for 2-3 minutes等待2-3分钟
  3. Remove Reservation删除预订
  4. Remove Commitment删除承诺

I tested this and it worked for me.我对此进行了测试,它对我有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过 CloudFormation 在启动模板中具有容量预留的 EKS 托管节点组不使用容量预留 - EKS Managed Nodegroup with Capacity Reservation in Launch Template through CloudFormation does not use Capacity Reservation 每个命名空间的 Kubernetes 资源预留 - Kubernetes resource reservation per namespace Twilio Task Router接受预约后如何接通来电? - How to connect the incoming call after accepting a reservation through Twilio Task Router? Reservation Used Bytes 参数不断变化 - Reservation Used Bytes parameter keeps changing 没有使用 python boto3 获取所有 aws 实例 - 预订问题 - not getting all aws instances using python boto3 - problem with Reservation BigQuery BI Engine:如何选择合适的预留大小? - BigQuery BI Engine: how to choose a good reservation size? 为什么 firestore 在云 function 成功完成后几分钟更新文档? - why firestore updates the document few minutes after successful cloud function completion? 为什么在我设置区域后 AWS CLI 报告“Credential should be scoped to a valid region”? - Why does the AWS CLI report `Credential should be scoped to a valid region` when I have set a region? 生成私钥失败。 请在几分钟后再试一次。 Firebase 不会为项目生成新的私钥 - Failed to generate a private key. Please try again in a few minutes. Firebase doesn't generate new private key for a project 为什么websocket每隔7分钟就会断开连接? (角度和 Go ) - Why does websocket disconnect after every 7 minutes? (Angular and Go )
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM