Merge pull request #2290 from bluewave-labs/hotfix/bulk-insert-error-handling
hotfix: graceful error hanlding, unordered write
This commit is contained in:
1 file changed
+10
-1
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user