XLNT / gnarly

🤙 A blockchain ETL tool to make your life better. Now that’s fuckin’ gnarly.
https://xlnt.co
Apache License 2.0
119 stars 11 forks source link

race condition for tx lookup upon previous tx invalidation #21

Closed shrugs closed 6 years ago

shrugs commented 6 years ago

https://gist.github.com/pkrasam/003fc5223ce82f5fe6c9e24287296ab3

important lines:


[36mgnarly_1    | 2018-07-04T08:04:41.930Z gnarly-core Resetting reducer stores: %s...
gnarly_1    | 2018-07-04T08:04:41.980Z gnarly-core Done with resetting reducers.
gnarly_1    | 2018-07-04T08:04:41.981Z gnarly-core Surfs up!
gnarly_1    | 2018-07-04T08:04:41.989Z gnarly-core:runner:events Explicitely starting from HEAD
gnarly_1    | 2018-07-04T08:04:42.002Z gnarly-core:runner:blocks Explicitely starting from HEAD
gnarly_1    | 2018-07-04T08:04:42.003Z gnarly-core:runner:cryptoKitties Explicitely starting from HEAD
gnarly_1    | 2018-07-04T08:04:43.830Z gnarly-core:blockstream Beginning from block 5903039
gnarly_1    | 2018-07-04T08:04:43.835Z gnarly-core:blockstream Beginning from block 5903039
gnarly_1    | 2018-07-04T08:04:43.838Z gnarly-core:blockstream Beginning from block 5903039
gnarly_1    | 2018-07-04T08:04:52.091Z gnarly-core:blockstream:onBlockAdd block 0x5a12c0 (0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f)
gnarly_1    | 2018-07-04T08:04:52.097Z gnarly-core:blockstream:onBlockAdd block 0x5a12c0 (0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f)
gnarly_1    | 2018-07-04T08:04:52.103Z gnarly-core:blockstream:onBlockAdd block 0x5a12c0 (0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f)
gnarly_1    | 2018-07-04T08:05:07.165Z gnarly-core:blockstream:onBlockInvalidated block 0x5a12c0 (0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f)
gnarly_1    | 2018-07-04T08:05:07.169Z gnarly-core:blockstream:onBlockInvalidated block 0x5a12c0 (0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f)
gnarly_1    | 2018-07-04T08:05:07.189Z gnarly-core:blockstream:onBlockInvalidated block 0x5a12c0 (0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f)
gnarly_1    | 2018-07-04T08:05:07.193Z gnarly-core:blockstream:onBlockAdd block 0x5a12be (0xb6279c18906ab5169f68004655e6fb777542cbca329fb4526fffa66c316a3949)
gnarly_1    | 2018-07-04T08:05:07.196Z gnarly-core:blockstream:onBlockAdd block 0x5a12be (0xb6279c18906ab5169f68004655e6fb777542cbca329fb4526fffa66c316a3949)
gnarly_1    | unhandledRejection: Error: Could not find transaction 0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f SequelizeEmptyResultError
gnarly_1    |     at __dirname.findAll.Promise.try.then.then.then.tap.then.results (/snapshot/gnarly/node_modules/sequelize/lib/model.js:1618:17)
gnarly_1    |     at tryCatcher (/snapshot/gnarly/node_modules/bluebird/js/release/util.js:16:23)
gnarly_1    |     at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:512:31)
gnarly_1    |     at Promise.module.exports.Promise._settlePromise (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:569:18)
gnarly_1    |     at Promise.module.exports.Promise._settlePromise0 (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:614:10)
gnarly_1    |     at Promise.module.exports.Promise._settlePromises (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:693:18)
gnarly_1    |     at Async._drainQueue (/snapshot/gnarly/node_modules/bluebird/js/release/async.js:133:16)
gnarly_1    |     at Async._drainQueues (/snapshot/gnarly/node_modules/bluebird/js/release/async.js:143:10)
gnarly_1    |     at Immediate.__dirname.Async.drainQueues [as _onImmediate] (/snapshot/gnarly/node_modules/bluebird/js/release/async.js:17:14)
gnarly_1    |     at runCallback (timers.js:800:20)
gnarly_1    |     at tryOnImmediate (timers.js:762:5)
gnarly_1    |     at processImmediate [as _immediateCallback] (timers.js:733:5)
gnarly_1    |     at SequelizePersistInterface.<anonymous> (/snapshot/gnarly/node_modules/@xlnt/gnarly-core/lib/stores/sequelize.js:205:23)
gnarly_1    |     at Generator.throw (<anonymous>)
gnarly_1    |     at rejected (/snapshot/gnarly/node_modules/@xlnt/gnarly-core/lib/stores/sequelize.js:5:65)
gnarly_1    |     at <anonymous> Error: Could not find transaction 0xe911bdc9ab499964c3a3512a68aa3b0f439bfe589154b25ef889aa179ce1220f SequelizeEmptyResultError
gnarly_1    |     at __dirname.findAll.Promise.try.then.then.then.tap.then.results (/snapshot/gnarly/node_modules/sequelize/lib/model.js:1618:17)
gnarly_1    |     at tryCatcher (/snapshot/gnarly/node_modules/bluebird/js/release/util.js:16:23)
gnarly_1    |     at Promise.module.exports.Promise._settlePromiseFromHandler (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:512:31)
gnarly_1    |     at Promise.module.exports.Promise._settlePromise (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:569:18)
gnarly_1    |     at Promise.module.exports.Promise._settlePromise0 (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:614:10)
gnarly_1    |     at Promise.module.exports.Promise._settlePromises (/snapshot/gnarly/node_modules/bluebird/js/release/promise.js:693:18)
gnarly_1    |     at Async._drainQueue (/snapshot/gnarly/node_modules/bluebird/js/release/async.js:133:16)
gnarly_1    |     at Async._drainQueues (/snapshot/gnarly/node_modules/bluebird/js/release/async.js:143:10)
gnarly_1    |     at Immediate.__dirname.Async.drainQueues [as _onImmediate] (/snapshot/gnarly/node_modules/bluebird/js/release/async.js:17:14)
gnarly_1    |     at runCallback (timers.js:800:20)
gnarly_1    |     at tryOnImmediate (timers.js:762:5)
gnarly_1    |     at processImmediate [as _immediateCallback] (timers.js:733:5)
gnarly_1    |     at SequelizePersistInterface.<anonymous> (/snapshot/gnarly/node_modules/@xlnt/gnarly-core/lib/stores/sequelize.js:205:23)
gnarly_1    |     at Generator.throw (<anonymous>)
gnarly_1    |     at rejected (/snapshot/gnarly/node_modules/@xlnt/gnarly-core/lib/stores/sequelize.js:5:65)
gnarly_1    |     at <anonymous>