Merge pull request #2290 from bluewave-labs/hotfix/bulk-insert-error-handling

hotfix: graceful error hanlding, unordered write
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-05-16 09:55:24 -07:00
commit 69bcd07c01
1 file changed
+10 -1
+10 -1
View File
@@ -80,7 +80,16 @@ class BufferService {
});
continue;
}
await operation(buffer);
try {
await operation(buffer);
} catch (error) {
this.logger.error({
message: error.message,
service: this.SERVICE_NAME,
method: "flushBuffers",
stack: error.stack,
});
}
this.buffers[bufferName] = [];
}
this.logger.info({