2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
From https://www.gnu.org/software/libc/manual/html_node/Error-Codes.html
EBUSY: “Device or resource busy.” A system resource that can’t be shared is already in use. For example, if you try to delete a file that is the root of a currently mounted filesystem, you get this error.
If you google it, you'll see that many kinds of low-level system errors produce produce this kind of message. Did you look at ClouWatch to see if you get more details there ?
Best,
Didier
0
Thank you @Didier for your response. I am aware of the meaning of the error but unclear how to resolve it. Regarding CloudWatch, there is nothing but I think that's because this is a response to a query rather than an error. I am using Node20 (not mentioned initially) and my function is a pretty standard query (below). It doesn't service high volumes of traffic and the EBUSY error tends to surface randomly when the query returns 15k+ rows or so.
const dynamoClient = new DynamoDBClient({});
async getAllTableItems(tableName, pkId, pkValue) {
let queryParams = {
TableName: tableName,
KeyConditionExpression: "#pkid = :pkValue",
ExpressionAttributeNames: {
"#pkid": pkId
},
ExpressionAttributeValues: {
":pkValue": {"S": pkValue},
},
Limit: 100
};
let result = [];
let items;
do {
let command = new QueryCommand(queryParams);
items = await dynamoClient.send(command);
items.Items.forEach((item) => result.push(unmarshall(item)));
queryParams.ExclusiveStartKey = items.LastEvaluatedKey;
} while (typeof items.LastEvaluatedKey != "undefined");
return result;
}
answered 3 months ago
Relevant content
- Accepted Answer
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 2 years ago