ethconnect crash
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start with internal/kldkafka/client.go at line 211, then follow the call from internal/kldrest/webhookskafka.go line 84 and the consumer startup in internal/kldkafka/kafkacommon.go line 249. Reproduce or trace the performance-test crash and identify the nil value reached by MarkOffset; done means the consumer no longer panics in this scenario.
Written by the indexing model from the issue text.
Description
from one of our performance testing runs we observed a crash with the following logs:
time="2020-01-24T04:14:51Z" level=info msg="Consumer session cleanup. Claims=map[zzo8ywgn54-zzax9xn2pu-replies:[0]] Member=2984c4ea-2db0-4ef2-6974-a16743d14c52-36b90936-e43f-4ee1-9580-106481b21fdb Generation=7"
time="2020-01-24T04:14:51Z" level=info msg="Inserted receipt 3f7ab219-d070-4e1f-7a2e-1050974354c0 into receipt store"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x9f46ed]
goroutine 188 [running]:
github.com/kaleido-io/ethconnect/internal/kldkafka.(*saramaKafkaConsumerGroupHandler).MarkOffset(0xc0013c4000, 0xc03ffbafa0, 0x0, 0x0)
/kaleido-io/ethconnect/internal/kldkafka/client.go:211 +0x2d
github.com/kaleido-io/ethconnect/internal/kldrest.(*webhooksKafka).ConsumerMessagesLoop(0xc00012c740, 0xf2b500, 0xc0013c4000, 0x7f702412a4d0, 0xc0013bb3b0, 0xc0004c80d8)
/kaleido-io/ethconnect/internal/kldrest/webhookskafka.go:84 +0xb0
created by github.com/kaleido-io/ethconnect/internal/kldkafka.(*kafkaCommon).startConsumer
/kaleido-io/ethconnect/internal/kldkafka/kafkacommon.go:249 +0xbf
Copyright (C) 2018,2019 Kaleido
Licensed under the Apache License, Version 2.0
Version: it-1579124042156 (Build Date: 2020-01-15T21:35:18Z)
time="2020-01-24T04:14:52Z" level=info msg="Starting REST gateway 'rest-gateway'"
time="2020-01-24T04:14:52Z" level=info msg="New JSON/RPC connection established"
time="2020-01-24T04:14:52Z" level=info msg="OpenAPI Smart Contract Gateway configured with base URL 'https://zzo8ywgn54-zzax9xn2pu-connect.dev2.photic.io'"
time="2020-01-24T04:14:52Z" level=info msg="Starting Kafka->Ethereum bridge 'kafka-tx-streaming'"
- Dominant language
- Go
- Stars
- 76
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hyperledger-firefly/ethconnect
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
hyperledger-firefly/ethconnect#223 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
hyperledger-firefly/ethconnect#219 · 6 comments ·
-
error openapiOpen
Difficulty 3/5 1-2 days Newbie friendliness 15/100
hyperledger-firefly/ethconnect#203 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
hyperledger-firefly/ethconnect#202 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
All issues in hyperledger-firefly/ethconnect
Similar issues
-
compress: block buffers get re-zeroed on every call, and the zeroing is immediately overwrittenOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/ch-go#1218 ·
Maintainers usually reply within 13 days
-
automation models
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
podman-container-tools/podman#30031 ·
Maintainers usually reply within 1 day