Closed ghost closed 6 years ago
Please provide your cache.*
collections
Hmm your cache.when
is broken, will check what is going on mongodb
I can provide cache.when
with n/a
user
It's from other bot when instead username i got n/a
same issue
also do you have cache.users
collection with n/a
user?
Yeah, duplicated data, ok will fix
This will be harder issue to fix, its async stuff when several async connections trying to update one item then it is duplicating...need to figure out how to handle this thread safe
I should add lock system to mongodb (and nedb to be safe) engine. When collection (or _id) is locked, updates will need to wait until current running update is unlocked
Should be fixed, please remove all affected cache.*
collections
Expected behavior
Actual behavior
User: !subs bot: Subs: 5, Online: 0. Last sub: tiredinternetchild ()
Where in()
must be$lastSubAgo
And on others bots i gotn/a
instead usernameSteps to reproduce
Additional informations
2018-02-06T22:44:27.492219+00:00 app[web.1]: 2018-02-06T22:44:27.491 <<< !_debug 2018-02-06T22:44:27.826278+00:00 app[web.1]: 2018-02-06T22:44:27.826 >>> ======= COPY DEBUG MESSAGE FROM HERE ======= 2018-02-06T22:44:27.835553+00:00 app[web.1]: 2018-02-06T22:44:27.835 >>> GENERAL | OS: npm/5.6.0 node/v9.5.0 linux x64 | DB: mongodb | Bot version: 6.0.0-SNAPSHOT | Bot uptime: 8210.029 | Bot lang: ru | Bot mute: false 2018-02-06T22:44:27.849784+00:00 app[web.1]: 2018-02-06T22:44:27.849 >>> SYSTEMS | timers, customcommands, keywords, points, price, songs, alias, moderation, ranks, raffles, cooldown, gambling, donationalert 2018-02-06T22:44:27.859122+00:00 app[web.1]: 2018-02-06T22:44:27.859 >>> WIDGETS | chat, eventlist, joinpart 2018-02-06T22:44:27.861875+00:00 app[web.1]: 2018-02-06T22:44:27.861 >>> API | HELIX 151/0 | KRAKEN 457/0 | TMI 152/0 2018-02-06T22:44:27.866515+00:00 app[web.1]: 2018-02-06T22:44:27.866 >>> WEBHOOKS | follows, streams 2018-02-06T22:44:27.868541+00:00 app[web.1]: 2018-02-06T22:44:27.868 >>> OAUTH | BOT true | BROADCASTER true 2018-02-06T22:44:27.872390+00:00 app[web.1]: 2018-02-06T22:44:27.872 >>> ======= END OF DEBUG MESSAGE =======