PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Monday the 5th of October, 2020

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[12:43:01] <Yukkuri> hi, i'm looking for a way to apply regexp replacement toa field before matching it; i tried `db.foo.find({$expr: {$regexMatch: {input: {$replaceAll: {input: '$city', find: /n/, replacement: 's'}}, regex: 'los'}}})` but it seems to accept only fixed strings for find argument. documentation is not very clear, which function should i use to get regexp replacement?
[12:45:08] <Yukkuri> there is https://jira.mongodb.org/browse/SERVER-33389 ticket which was apparently implemented as part of https://jira.mongodb.org/browse/SERVER-32314 , but i'm not sure how it supposed to work
[12:45:54] <Yukkuri> if i'm understanding tags correctly, it should be in 4.4 mainline
[13:01:54] <Yukkuri> apparently that can be done with something like `db.foo.find({$where: '(obj.city || "").replace(/n/, "s").match(/los/)'});` but i'm still wondering about aggregation syntax
[16:40:51] <repo1> hi there, i have a replicaset which has growing lag and i'd like to find out why, can someone help me debug this?
[16:41:07] <repo1> one of the replicaset members went offline
[16:42:40] <repo1> (but now it's back online)
[16:46:39] <repo> hm
[16:46:40] <repo> pinging failed for distributed lock pinger :: caused by :: WriteConcernFailed: waiting for replication timed out; Error details: { wtimeout: true }