mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-08 18:16:59 +00:00
f93d1c4790
Fixes https://github.com/matrix-org/dendrite/issues/3240 and potentially a root cause for state resets. While testing, I've had added some more debug logging: ``` time="2023-12-16T18:13:11.319458084Z" level=warning msg="already processed event" event_id="$qFYMl_F2vb1N0yxmvlFAMhqhGhLKq4kA-o_YCQKH7tQ" kind=KindNew times=2 time="2023-12-16T18:13:14.537389126Z" level=warning msg="already processed event" event_id="$EU-LTsKErT6Mt1k12-p_3xOHfiLaK6gtwVDlZ35lSuo" kind=KindNew times=5 time="2023-12-16T18:13:16.789551206Z" level=warning msg="already processed event" event_id="$dIPuAfTL5x0VyG873LKPslQeljCSxFT1WKxUtjIMUGE" kind=KindNew times=5 time="2023-12-16T18:13:17.383838767Z" level=warning msg="already processed event" event_id="$7noSZiCkzerpkz_UBO3iatpRnaOiPx-3IXc0GPDQVGE" kind=KindNew times=2 time="2023-12-16T18:13:22.091946597Z" level=warning msg="already processed event" event_id="$3Lvo3Wbi2ol9-nNbQ93N-E2MuGQCJZo5397KkFH-W6E" kind=KindNew times=1 time="2023-12-16T18:13:23.026417446Z" level=warning msg="already processed event" event_id="$lj1xS46zsLBCChhKOLJEG-bu7z-_pq9i_Y2DUIjzGy4" kind=KindNew times=4 ``` So we did receive the same event over and over again. Given they are `KindNew`, we don't short circuit if we already processed them, which potentially caused the state to be calculated with a now wrong state snapshot. Also fixes the back pressure metric. We now correctly increment the counter once we sent the message to NATS and decrement it once we actually processed an event.
147 lines
6.4 KiB
Modula-2
147 lines
6.4 KiB
Modula-2
module github.com/matrix-org/dendrite
|
|
|
|
require (
|
|
github.com/Arceliar/ironwood v0.0.0-20221025225125-45b4281814c2
|
|
github.com/Arceliar/phony v0.0.0-20210209235338-dde1a8dca979
|
|
github.com/DATA-DOG/go-sqlmock v1.5.0
|
|
github.com/MFAshby/stdemuxerhook v1.0.0
|
|
github.com/Masterminds/semver/v3 v3.1.1
|
|
github.com/blevesearch/bleve/v2 v2.3.8
|
|
github.com/codeclysm/extract v2.2.0+incompatible
|
|
github.com/dgraph-io/ristretto v0.1.1
|
|
github.com/docker/docker v24.0.7+incompatible
|
|
github.com/docker/go-connections v0.4.0
|
|
github.com/getsentry/sentry-go v0.14.0
|
|
github.com/gologme/log v1.3.0
|
|
github.com/google/go-cmp v0.5.9
|
|
github.com/google/uuid v1.3.0
|
|
github.com/gorilla/mux v1.8.0
|
|
github.com/gorilla/websocket v1.5.0
|
|
github.com/kardianos/minwinsvc v1.0.2
|
|
github.com/lib/pq v1.10.9
|
|
github.com/matrix-org/dugong v0.0.0-20210921133753-66e6b1c67e2e
|
|
github.com/matrix-org/go-sqlite3-js v0.0.0-20220419092513-28aa791a1c91
|
|
github.com/matrix-org/gomatrix v0.0.0-20220926102614-ceba4d9f7530
|
|
github.com/matrix-org/gomatrixserverlib v0.0.0-20231212115925-41497b7563eb
|
|
github.com/matrix-org/pinecone v0.11.1-0.20230810010612-ea4c33717fd7
|
|
github.com/matrix-org/util v0.0.0-20221111132719-399730281e66
|
|
github.com/mattn/go-sqlite3 v1.14.17
|
|
github.com/nats-io/nats-server/v2 v2.10.7
|
|
github.com/nats-io/nats.go v1.31.0
|
|
github.com/neilalexander/utp v0.1.1-0.20210727203401-54ae7b1cd5f9
|
|
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
|
|
github.com/opentracing/opentracing-go v1.2.0
|
|
github.com/patrickmn/go-cache v2.1.0+incompatible
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/prometheus/client_golang v1.16.0
|
|
github.com/sirupsen/logrus v1.9.3
|
|
github.com/stretchr/testify v1.8.2
|
|
github.com/tidwall/gjson v1.17.0
|
|
github.com/tidwall/sjson v1.2.5
|
|
github.com/uber/jaeger-client-go v2.30.0+incompatible
|
|
github.com/uber/jaeger-lib v2.4.1+incompatible
|
|
github.com/yggdrasil-network/yggdrasil-go v0.4.6
|
|
go.uber.org/atomic v1.10.0
|
|
golang.org/x/crypto v0.16.0
|
|
golang.org/x/exp v0.0.0-20230809150735-7b3493d9a819
|
|
golang.org/x/image v0.10.0
|
|
golang.org/x/mobile v0.0.0-20221020085226-b36e6246172e
|
|
golang.org/x/sync v0.3.0
|
|
golang.org/x/term v0.15.0
|
|
gopkg.in/h2non/bimg.v1 v1.1.9
|
|
gopkg.in/yaml.v2 v2.4.0
|
|
gotest.tools/v3 v3.4.0
|
|
maunium.net/go/mautrix v0.15.1
|
|
modernc.org/sqlite v1.23.1
|
|
nhooyr.io/websocket v1.8.7
|
|
)
|
|
|
|
require (
|
|
github.com/HdrHistogram/hdrhistogram-go v1.1.2 // indirect
|
|
github.com/Microsoft/go-winio v0.5.2 // indirect
|
|
github.com/RoaringBitmap/roaring v1.2.3 // indirect
|
|
github.com/beorn7/perks v1.0.1 // indirect
|
|
github.com/bits-and-blooms/bitset v1.5.0 // indirect
|
|
github.com/blevesearch/bleve_index_api v1.0.5 // indirect
|
|
github.com/blevesearch/geo v0.1.17 // indirect
|
|
github.com/blevesearch/go-porterstemmer v1.0.3 // indirect
|
|
github.com/blevesearch/gtreap v0.1.1 // indirect
|
|
github.com/blevesearch/mmap-go v1.0.4 // indirect
|
|
github.com/blevesearch/scorch_segment_api/v2 v2.1.4 // indirect
|
|
github.com/blevesearch/segment v0.9.1 // indirect
|
|
github.com/blevesearch/snowballstem v0.9.0 // indirect
|
|
github.com/blevesearch/upsidedown_store_api v1.0.2 // indirect
|
|
github.com/blevesearch/vellum v1.0.9 // indirect
|
|
github.com/blevesearch/zapx/v11 v11.3.7 // indirect
|
|
github.com/blevesearch/zapx/v12 v12.3.7 // indirect
|
|
github.com/blevesearch/zapx/v13 v13.3.7 // indirect
|
|
github.com/blevesearch/zapx/v14 v14.3.7 // indirect
|
|
github.com/blevesearch/zapx/v15 v15.3.10 // indirect
|
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/docker/distribution v2.8.2+incompatible // indirect
|
|
github.com/docker/go-units v0.5.0 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
|
|
github.com/gogo/protobuf v1.3.2 // indirect
|
|
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 // indirect
|
|
github.com/golang/glog v1.0.0 // indirect
|
|
github.com/golang/mock v1.6.0 // indirect
|
|
github.com/golang/protobuf v1.5.3 // indirect
|
|
github.com/golang/snappy v0.0.4 // indirect
|
|
github.com/google/pprof v0.0.0-20230808223545-4887780b67fb // indirect
|
|
github.com/h2non/filetype v1.1.3 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/juju/errors v1.0.0 // indirect
|
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
|
github.com/klauspost/compress v1.17.4 // indirect
|
|
github.com/mattn/go-colorable v0.1.13 // indirect
|
|
github.com/mattn/go-isatty v0.0.17 // indirect
|
|
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
|
|
github.com/minio/highwayhash v1.0.2 // indirect
|
|
github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
|
github.com/morikuni/aec v1.0.0 // indirect
|
|
github.com/mschoch/smat v0.2.0 // indirect
|
|
github.com/nats-io/jwt/v2 v2.5.3 // indirect
|
|
github.com/nats-io/nkeys v0.4.6 // indirect
|
|
github.com/nats-io/nuid v1.0.1 // indirect
|
|
github.com/onsi/ginkgo/v2 v2.11.0 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.0.3-0.20211202183452-c5a74bcca799 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/prometheus/client_model v0.3.0 // indirect
|
|
github.com/prometheus/common v0.42.0 // indirect
|
|
github.com/prometheus/procfs v0.10.1 // indirect
|
|
github.com/quic-go/qtls-go1-20 v0.3.2 // indirect
|
|
github.com/quic-go/quic-go v0.37.4 // indirect
|
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
|
github.com/rogpeppe/go-internal v1.9.0 // indirect
|
|
github.com/rs/zerolog v1.29.1 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
go.etcd.io/bbolt v1.3.6 // indirect
|
|
golang.org/x/mod v0.12.0 // indirect
|
|
golang.org/x/net v0.17.0 // indirect
|
|
golang.org/x/sys v0.15.0 // indirect
|
|
golang.org/x/text v0.14.0 // indirect
|
|
golang.org/x/time v0.5.0 // indirect
|
|
golang.org/x/tools v0.12.0 // indirect
|
|
google.golang.org/protobuf v1.30.0 // indirect
|
|
gopkg.in/macaroon.v2 v2.1.0 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
lukechampine.com/uint128 v1.2.0 // indirect
|
|
maunium.net/go/maulogger/v2 v2.4.1 // indirect
|
|
modernc.org/cc/v3 v3.40.0 // indirect
|
|
modernc.org/ccgo/v3 v3.16.13 // indirect
|
|
modernc.org/libc v1.22.5 // indirect
|
|
modernc.org/mathutil v1.5.0 // indirect
|
|
modernc.org/memory v1.5.0 // indirect
|
|
modernc.org/opt v0.1.3 // indirect
|
|
modernc.org/strutil v1.1.3 // indirect
|
|
modernc.org/token v1.0.1 // indirect
|
|
)
|
|
|
|
go 1.20
|