Skip to content

Commit 49f2c54

Browse files
authored
fix: webapp crash on clickhouse data corruption (#2491)
1 parent f077d49 commit 49f2c54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/webapp/app/services/runsReplicationService.server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ export class RunsReplicationService {
148148
}
149149

150150
for (const item of newBatch) {
151+
if (!item?.run?.id) {
152+
this.logger.warn("Skipping replication event with null run", { event: item });
153+
continue;
154+
}
155+
151156
const key = `${item.event}_${item.run.id}`;
152157
const existingItem = merged.get(key);
153158

0 commit comments

Comments
 (0)