This repository was archived by the owner on Nov 7, 2025. It is now read-only.
Commit 8ccf821
authored
Adding table sanity check (#930)
This PR adds a sanity check and fixes crash. I plan to work on root
cause of the problem is next PR
```
Oct 30 14:15:34.699 INF quesma/functionality/bulk/bulk.go:339 > Ingesting via _bulk API, batch size=6 documents
Oct 30 14:15:35.882 ERR quesma/recovery/recovery_strategies.go:32 > Panic recovered: runtime error: invalid memory address or nil pointer dereference
goroutine 155 [running]:
runtime/debug.Stack()
/Users/pdelewski/go/pkg/mod/golang.org/[email protected]/src/runtime/debug/stack.go:26 +0x64
quesma/quesma/recovery.commonRecovery({0x102e930a0, 0x103359030}, 0x1400033a380?)
/Users/pdelewski/Projects/quesma/quesma/quesma/recovery/recovery_strategies.go:32 +0x154
quesma/quesma/recovery.LogPanic()
/Users/pdelewski/Projects/quesma/quesma/quesma/recovery/recovery_strategies.go:37 +0x34
panic({0x102e930a0?, 0x103359030?})
/Users/pdelewski/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:785 +0x124
quesma/ingest.(*IngestProcessor).processInsertQuery(0x140001521b0, {0x102f6ff78, 0x14000706a20}, {0x1400076afd4, 0x26}, {0x14000693830, 0x2, 0x1?}, {0x102f69aa0, 0x1400022e228}, ...)
/Users/pdelewski/Projects/quesma/quesma/ingest/processor.go:675 +0x31c
quesma/ingest.(*IngestProcessor).processInsertQueryInternal(0x140001521b0, {0x102f6ff78, 0x14000706a20}, {0x1400076afd4?, 0x26?}, {0x14000693830?, 0x10?, 0xa?}, {0x102f69aa0?, 0x1400022e228?}, ...)
/Users/pdelewski/Projects/quesma/quesma/ingest/processor.go:779 +0x48
```1 parent 899f1fb commit 8ccf821
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
675 | 678 | | |
676 | 679 | | |
677 | 680 | | |
| |||
0 commit comments