简体   繁体   English

com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException:无法从回填全局二级索引中读取

[英]com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: Cannot read from backfilling global secondary index

We keep getting this exception in our app which has a scheduled job to read on a gloabl secondary index.我们在我们的应用程序中不断收到此异常,该应用程序有一个计划的作业要在 gloabl 二级索引上读取。 Looks like it keeps backfilling periodically even though there were no changes on the table.看起来它会定期回填,即使桌子上没有任何变化。 The volumes on our table are quite low so a bit surprised to see this a few times a day.我们桌上的量很低,所以每天看到几次这种情况有点惊讶。 This is not a new index, so wondering should it not backfill only on insert/update of records.这不是一个新索引,所以想知道它是否应该只在插入/更新记录时才回填。 Anyone seen this before?有人见过这个吗?

It might be creating that GSI.它可能正在创建该 GSI。 Wait for sometime based on the amount of data in your DB.根据数据库中的数据量等待一段时间。 And this issue will go away.而这个问题就会消失。

This error occurs when you newly create a GSI in dynamodb Table.当您在 dynamodb 表中新创建 GSI 时会发生此错误。 wait for sometimes once it get created into the table you will not see the error see in below image it says Creating...有时等待,一旦它被创建到表中,您将看不到错误,如下图所示,它显示正在创建... 在此处输入图像描述

it will be like会像在此处输入图像描述

then hit your function you will not get an error然后打你的 function 你不会得到一个错误

I just waited 30 seconds, the error was gone away automatically.我只等了 30 秒,错误就自动消失了。 I edited my dynamoDB table from my aws console directly, I think this temporary error originated from this.我直接从我的 aws 控制台编辑了我的 dynamoDB 表,我认为这个临时错误源于此。

Try Detecting and Correcting Index Key Violations.尝试检测和纠正索引键违规。 I guess it is due to Index key Violation.我猜这是由于索引键违规。

暂无
暂无

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

相关问题 从 AWS 控制台按全局二级索引查询 - Query by global secondary index from AWS Console Pyspark S3 错误:java.lang.NoClassDefFoundError:com/amazonaws/services/s3/model/MultiObjectDeleteException - Pyspark S3 error: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/model/MultiObjectDeleteException 你如何使用 com.amazonaws.s3-global.accesspoint - How do you use a com.amazonaws.s3-global.accesspoint 全局二级索引 DynamoDB 空值错误 - Global Secondary Index DynamoDB empty value error DynamoDB 全球二级索引“批量”检索 - DynamoDB Global Secondary Index "Batch" Retrieval 在 dynamodb Local 中查询全局二级索引 - Querying a Global Secondary Index in dynamodb Local AWS Lambda Java 到 S3 - com.amazonaws.services.s3.AmazonS3ClientBuilder 上的 java.lang.ClassNotFoundException - AWS Lambda Java to S3 - java.lang.ClassNotFoundException on com.amazonaws.services.s3.AmazonS3ClientBuilder 找不到 package 错误:package com.amazonaws.services.secretsmanager 不存在 - Not found package error: package com.amazonaws.services.secretsmanager does not exist 查询带有全局二级索引错误的 DynamoDb - Querying DynamoDb with Global Secondary Index Error :java.lang.NoSuchMethodError:com.amazonaws.services.s3.transfer.TransferManager。<init> (S3;Ljava/util/concurrent/ThreadPoolExecutor;)V</init> - : java.lang.NoSuchMethodError: com.amazonaws.services.s3.transfer.TransferManager.<init>(S3;Ljava/util/concurrent/ThreadPoolExecutor;)V
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM