Comments (4)
There are a couple of things that are likely to be causing this, and most of them need to be fixed to be sure.
First, I have several processes running on the public web server, including two versions of dcrdata that fight for resources, so it seems to be common when mempool is going crazy with ticket purchases to have this sort of thing happen (same block you pointed to):
2017-07-01 04:37:14.221 [INF] SKDB: Connected block 146881 to stake DB.
2017-07-01 04:37:14.311 [DBG] MEMP: Vote in new block triggering mempool data collection
2017-07-01 04:37:15.693 [INF] DCRD: Block height 146881 connected
2017-07-01 04:37:33.936 [DBG] MEMP: mempoolDataCollector.Collect() completed in 19.591016827s
2017-07-01 04:37:35.698 [ERR] DCRD: Block data collection TIMEOUT after 20 seconds.
2017-07-01 04:37:36.120 [DBG] DCRD: blockDataCollector.Collect() completed in 20.42313802s
The blocks before and after that one did not take nearly that long, so it looks like having the mempool data collection even be able to run first is a bad idea since it can be an order of magnitude slower with several hundred tickets in mempool, and having two dcrdata instances hammering the same dcrd is worse.
Second, and related to the first actually, is if blocks roll in quickly, requests pile up and because of some limitations in the dcrd RPCs, it was a bit hard to collect data for a specific block rather than the latest block. So it's easy to completely miss a block (and overload dcrd). The latest PR, merged June 30 was intended to address this to some extent.
These probably don't explain why your block 146443 is null though.
Third, reorganizations are only partly handled. π’ I've worked a lot on getting it handled enough not to crash dcrdata, but I still need to it to fix up new blocks added when switching a side chain to become the new main chain. It's handled in the internal stake database (the ffldb_stake folder) but the sqlite db needs to be fixed up still. This isn't terribly hard, but I've prioritized other stuff.
from dcrdata.
Just submitted PR #55 that should address "third" in my post above.
from dcrdata.
I also snuck in commit 0cc7437 to address "first" in the above post. It's a band-aid, but it should help for now.
from dcrdata.
Merged #55, so I think this can be closed.
After syncing master, be sure to glide install
again before build, then rm -r ffldb_stake dcrdata.sqlt.db
to start fresh.
from dcrdata.
Related Issues (20)
- Treasurybases and treasury adds outputs are not spendable
- wiki: remove cockroachDB wiki page
- ui: unused info icon HOT 2
- `/visualblocks` page does have a tab on the dcrdata UI
- ΠΏΠΎΠΌΠΎΠ³ΠΈΡΠ΅ ΠΏΠΎΠΆΠ°Π»ΡΠΉΡΡΠ° Ρ Π²ΡΠ²ΠΎΠ΄ΠΎΠΌ ΠΌΠΎΠ½Π΅Ρ ΠΈΠ· Π·Π° ΠΎΡΠΈΠ±ΠΊΠΈ Π±Π»ΠΎΠΊΡΠ΅ΠΉΠ½ HOT 1
- ΠΏΠΎΠΌΠΎΠ³ΠΈΡΠ΅ ! ΠΏΡΠΎΠ²Π΅ΡΡΡΠ΅ Π²ΠΎΠ·ΠΌΠΎΠΆΠ½ΠΎΡΡΡ ΠΎΡΠΈΠ±ΠΊΠΈ HOT 2
- Inaccurate bought ticket count in the charts/API
- Incorrect Daily Address Flow Enpoint Filtering
- Coin supply discrepancy HOT 9
- Feature Request: Show Separate Proof-of-Work Hash HOT 11
- Feature Request: add Testnet after Decred in the <title> when running Testnet
- Feature Request: Dynamic Scaling of Displayed Values on Home Page HOT 9
- dcrpg: Remove duplicates for `votes`, `misses` and `treasury` table. HOT 1
- CI/CD: `TestBittrexWebsocket` takes too long
- Unexpected `panic: runtime error: slice bounds out of range`
- Update npm modules with vulnerability reports
- dcrpg: Use index consts in `internal` pkg where possible
- Incorrect(too high) balance on /address chart
- Charts stopped updating Mar 25th HOT 1
- UI Suggestion: Network Hashrate Chart Adjustments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcrdata.