ipni / index-provider

📢 Index Provider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cached Chunker panics on nil IPLD link

masih opened this issue · comments

Observed on head of https://github.com/filecoin-project/boost/tree/nonsense/piece-store

Cc @dirkmc @nonsense

panic: interface conversion: datamodel.Link is nil, not cidlink.Link [recovered]
        panic: interface conversion: datamodel.Link is nil, not cidlink.Link [recovered]
        panic: interface conversion: datamodel.Link is nil, not cidlink.Link

goroutine 347 [running]:
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.func1()
        /root/code/pkg/mod/go.opentelemetry.io/otel/sdk@v1.9.0/trace/span.go:363 +0x2a
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End(0xc0153aca80, {0x0, 0x0, 0xf6a9ed70fb50a084?})
        /root/code/pkg/mod/go.opentelemetry.io/otel/sdk@v1.9.0/trace/span.go:402 +0x8ee
panic({0x3a42dc0, 0xc01df7fbc0})
        /usr/local/go/src/runtime/panic.go:884 +0x212
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End.func1()
        /root/code/pkg/mod/go.opentelemetry.io/otel/sdk@v1.9.0/trace/span.go:363 +0x2a
go.opentelemetry.io/otel/sdk/trace.(*recordingSpan).End(0xc0153acd80, {0x0, 0x0, 0x0?})
        /root/code/pkg/mod/go.opentelemetry.io/otel/sdk@v1.9.0/trace/span.go:402 +0x8ee
panic({0x3a42dc0, 0xc01df7fbc0})
        /usr/local/go/src/runtime/panic.go:884 +0x212
github.com/filecoin-project/index-provider/engine/chunker.dsKey({0x0?, 0x0?})
        /root/code/pkg/mod/github.com/filecoin-project/index-provider@v0.8.1/engine/chunker/cached_chunker.go:219 +0x77
github.com/filecoin-project/index-provider/engine/chunker.(*CachedEntriesChunker).dsRootPrefixedKey(0xc013b5f200?, {0x0?, 0x0?})
        /root/code/pkg/mod/github.com/filecoin-project/index-provider@v0.8.1/engine/chunker/cached_chunker.go:506 +0x2d
github.com/filecoin-project/index-provider/engine/chunker.(*CachedEntriesChunker).Chunk(0xc013b5f200, {0x4675e00, 0xc013981180}, {0x465d440, 0xc01dff9a60})
        /root/code/pkg/mod/github.com/filecoin-project/index-provider@v0.8.1/engine/chunker/cached_chunker.go:277 +0xbe6
github.com/filecoin-project/index-provider/engine.(*Engine).mkLinkSystem.func1({{0x4675e00, 0xc013981180}, {{0x0, 0x0, 0x0}}, {0x0, 0x0}, {0x0, 0x0}, {0x0, ...}}, ...)
        /root/code/pkg/mod/github.com/filecoin-project/index-provider@v0.8.1/engine/linksystem.go:106 +0xab4
github.com/ipfs/go-graphsync/responsemanager/queryexecutor.(*QueryExecutor).loadBlock(_, {_, _}, {0x0, {0x4675e00, 0xc022f48040}, {0x4685fc0, 0xc010171800}, {{{0xc025c683f0, 0x15}}, ...}, ...}, ...)
        /root/code/pkg/mod/github.com/ipfs/go-graphsync@v0.13.1/responsemanager/queryexecutor/queryexecutor.go:222 +0x1e6
github.com/ipfs/go-graphsync/responsemanager/queryexecutor.(*QueryExecutor).runTraversal(0xa5cc82?, {0x4675ea8, 0xc023adc630}, {0xc022f348a0, 0x26}, {0x0, {0x4675e00, 0xc022f48040}, {0x4685fc0, 0xc010171800}, ...})
        /root/code/pkg/mod/github.com/ipfs/go-graphsync@v0.13.1/responsemanager/queryexecutor/queryexecutor.go:203 +0x45c
github.com/ipfs/go-graphsync/responsemanager/queryexecutor.(*QueryExecutor).executeQuery(0xc0026816c0?, {0x4675ea8?, 0xc023adc630?}, {0xc022f348a0?, 0xc011f83a50?}, {0x0, {0x4675e00, 0xc022f48040}, {0x4685fc0, 0xc010171800}, ...})
        /root/code/pkg/mod/github.com/ipfs/go-graphsync@v0.13.1/responsemanager/queryexecutor/queryexecutor.go:121 +0x7e
github.com/ipfs/go-graphsync/responsemanager/queryexecutor.(*QueryExecutor).ExecuteTask(0xc011f05900, {0xc011f83f24?, 0x3579334d694d7877?}, {0xc022f348a0, 0x26}, 0x7d22677277366a01?)
        /root/code/pkg/mod/github.com/ipfs/go-graphsync@v0.13.1/responsemanager/queryexecutor/queryexecutor.go:105 +0x586
github.com/ipfs/go-graphsync/taskqueue.(*WorkerTaskQueue).worker(0xc011f3ae60, {0x4660b20, 0xc011f05900})
        /root/code/pkg/mod/github.com/ipfs/go-graphsync@v0.13.1/taskqueue/taskqueue.go:139 +0x3b5
created by github.com/ipfs/go-graphsync/taskqueue.(*WorkerTaskQueue).Startup
        /root/code/pkg/mod/github.com/ipfs/go-graphsync@v0.13.1/taskqueue/taskqueue.go:97 +0x3a