nodejs-bigtable: `DEADLINE_EXCEEDED` Error when using `table.dropRows()`
When using thetable.dropRows() method to clear a table, I receive the following error:
{ Error: 4 DEADLINE_EXCEEDED: Insufficient deadline for DropRowRange. Please try again with a longer request deadline.
at new createStatusError (/temp-bt/node_modules/google-gax/node_modules/grpc/src/client.js:64:15)
at /temp-bt/node_modules/google-gax/node_modules/grpc/src/client.js:583:15
code: 4,
metadata:
Metadata {
_internal_repr:
{ 'google.rpc.debuginfo-bin': [Array],
'grpc-status-details-bin': [Array] } },
details: 'Insufficient deadline for DropRowRange. Please try again with a longer request deadline.'
The associated code is:
const Bigtable = require('@google-cloud/bigtable');
const bigtable = new Bigtable({
projectId: 'some-project-id'
});
const INSTANCE_NAME = 'some-instance';
async function main() {
await bigtable.createInstance(INSTANCE_NAME, {
clusters: [{
name: 'some-cluster',
location: 'us-central1-c',
nodes: 3
}]
});
const instance = bigtable.instance(INSTANCE_NAME);
const table = instance.table('someTable');
await table.create({
families: ['someFamily']
});
await table.insert({
key: 'some-key',
data: {
someFamily: {
someData: 'some-data'
}
}
});
await table.deleteRows(); // error thrown
}
main().catch(console.error);
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 15 (15 by maintainers)
It works for me now. I opened #123 to reenable the test