发表文章

[Python] 从SQLite服务器回填联邦完全被破坏 "backfill-over-federation from sqlite servers is completely broken"[synapse]

richvdh 2月前 2

从0.27.0-rc1开始,显然(由

since 0.27.0-rc1, apparently (introduced by #2990)

相关推荐
最新评论 (4)
richvdh 2月前
1
2018-06-06 13:59:18,444 - 140620972586752 synapse.http.server - 102 - ERROR - [[GET-0]] Failed handle request via <function _async_render at 0x7fe4d793baa0>: <SynapseRequest at 0x7fe4d79ab368 method='GET' uri='/_matrix/federation/v1/backfill/%21pfckadQIhQBjSxSreH%3Afred.sw1v.org/?limit=100&v=%24152828448611PwllX%3Afred.sw1v.org' clientproto='HTTP/1.1' site=8448>: Traceback (most recent call last):
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1442, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
  File "synapse/http/server.py", line 79, in wrapped_request_handler
    yield h(self, request)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/http/server.py", line 305, in _async_render
    callback_return = yield callback(request, **kwargs)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/federation/transport/server.py", line 203, in new_func
    origin, content, request.args, *args, **kwargs
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/federation/federation_server.py", line 78, in on_backfill_request
    origin, room_id, versions, limit
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/handlers/federation.py", line 1465, in on_backfill_request
    events = yield self._filter_events_for_server(origin, room_id, events)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/util/metrics.py", line 55, in measured_func
    r = yield func(self, *args, **kwargs)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/handlers/federation.py", line 465, in _filter_events_for_server
    (EventTypes.Member, None),
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/state.py", line 393, in get_state_ids_for_events
    group_to_state = yield self._get_state_for_groups(groups, types)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/state.py", line 565, in _get_state_for_groups
    missing_groups, types
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/state.py", line 196, in _get_state_groups_from_groups
    self._get_state_groups_from_groups_txn, chunk, types,
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/_base.py", line 325, in runInteraction
    result = yield self.runWithConnection(inner_func, *args, **kwargs)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/_base.py", line 370, in runWithConnection
    inner_func, *args, **kwargs
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/enterprise/adbapi.py", line 307, in _runWithConnection
    compat.reraise(excValue, excTraceback)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/enterprise/adbapi.py", line 298, in _runWithConnection
    result = func(conn, *args, **kw)
  File "synapse/storage/_base.py", line 366, in inner_func
    return func(conn, *args, **kwargs)
  File "synapse/storage/_base.py", line 321, in inner_func
    func, *args, **kwargs
  File "synapse/storage/_base.py", line 246, in _new_transaction
    r = func(txn, *args, **kwargs)
  File "synapse/storage/state.py", line 304, in _get_state_groups_from_groups_txn
    args
  File "synapse/storage/_base.py", line 87, in execute
    self._do_execute(self.txn.execute, sql, *args)
  File "synapse/storage/_base.py", line 117, in _do_execute
    sql, *args
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 4, and there are 16 supplied.
原文:
2018-06-06 13:59:18,444 - 140620972586752 synapse.http.server - 102 - ERROR - [[GET-0]] Failed handle request via <function _async_render at 0x7fe4d793baa0>: <SynapseRequest at 0x7fe4d79ab368 method='GET' uri='/_matrix/federation/v1/backfill/%21pfckadQIhQBjSxSreH%3Afred.sw1v.org/?limit=100&v=%24152828448611PwllX%3Afred.sw1v.org' clientproto='HTTP/1.1' site=8448>: Traceback (most recent call last):
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 653, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1442, in gotResult
    _inlineCallbacks(r, g, deferred)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
--- <exception caught here> ---
  File "synapse/http/server.py", line 79, in wrapped_request_handler
    yield h(self, request)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/http/server.py", line 305, in _async_render
    callback_return = yield callback(request, **kwargs)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/federation/transport/server.py", line 203, in new_func
    origin, content, request.args, *args, **kwargs
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/federation/federation_server.py", line 78, in on_backfill_request
    origin, room_id, versions, limit
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/handlers/federation.py", line 1465, in on_backfill_request
    events = yield self._filter_events_for_server(origin, room_id, events)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/util/metrics.py", line 55, in measured_func
    r = yield func(self, *args, **kwargs)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/handlers/federation.py", line 465, in _filter_events_for_server
    (EventTypes.Member, None),
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/state.py", line 393, in get_state_ids_for_events
    group_to_state = yield self._get_state_for_groups(groups, types)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/state.py", line 565, in _get_state_for_groups
    missing_groups, types
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/state.py", line 196, in _get_state_groups_from_groups
    self._get_state_groups_from_groups_txn, chunk, types,
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/_base.py", line 325, in runInteraction
    result = yield self.runWithConnection(inner_func, *args, **kwargs)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1384, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/failure.py", line 408, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "synapse/storage/_base.py", line 370, in runWithConnection
    inner_func, *args, **kwargs
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/enterprise/adbapi.py", line 307, in _runWithConnection
    compat.reraise(excValue, excTraceback)
  File "/home/rav/work/synapse/env/local/lib/python2.7/site-packages/twisted/enterprise/adbapi.py", line 298, in _runWithConnection
    result = func(conn, *args, **kw)
  File "synapse/storage/_base.py", line 366, in inner_func
    return func(conn, *args, **kwargs)
  File "synapse/storage/_base.py", line 321, in inner_func
    func, *args, **kwargs
  File "synapse/storage/_base.py", line 246, in _new_transaction
    r = func(txn, *args, **kwargs)
  File "synapse/storage/state.py", line 304, in _get_state_groups_from_groups_txn
    args
  File "synapse/storage/_base.py", line 87, in execute
    self._do_execute(self.txn.execute, sql, *args)
  File "synapse/storage/_base.py", line 117, in _do_execute
    sql, *args
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 4, and there are 16 supplied.
ara4n 2月前
2
< div类=“电子邮件片段”>屎,对不起:(< / div >)>< div类=“电子邮件签名回复”>马太霍奇森矩阵.org </div>< div类=“电子邮件引用回复”>6君2018,16:14,李察范德霍夫*******。2018-06-0613:59:18444-14062020972586752synapse.http.服务器-14062020209786752突触.http.http.服务器-102-ERROR-[[GET-0]-102-ERROR-[[GET-0]]通过0x7fe4d7937fe4d793baa0>;>;<0x7fe4fe4fe4d79ab368方法='GET’uri='GET’uri=='''''''''''''GET'uri='''''''/_矩阵/联邦'''/////_矩阵/联合/v1/v1/填充///org/?极限=100和±V= %2415828 46611pWLLx %3AFRES.SW1V.org’clitPROTO=HTTP/1.1’站点=8448 & gt;Traceback(最近的呼叫最后):文件“/home /rava/Works/Eng/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第653行,在结果=回调(Curr.Read,*ARGS,**KW)文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1442行,结果i-内联回(r,g,推迟)文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home/rav/work/synapse/env/local/lib/python2.7/site-package/twi./python/..py”,第408行,在.ExceptionIntoGenerator中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)在这里被抓住的例外文件“SalpSe/HTTP/Server,Py”,第79行,在WrApDeDReQuestPub处理程序中收益h(自我,请求)文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home/rav/work/synapse/env/local/lib/python2.7/site-package/twi./python/..py”,第408行,在.ExceptionIntoGenerator中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)文件“Sythys/http/Server .Py”,第305行,在回调=收益率回调(请求,*kWAGS)文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home/rav/work/synapse/env/local/lib/python2.7/site-package/twi./python/..py”,第408行,在.ExceptionIntoGenerator中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)在NexFunc中的“SnimeSc/Field/Trime/Server,Py”203行文件来源、内容、要求、ARGS、*ARGS、*KWARGS文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home/rav/work/synapse/env/local/lib/python2.7/site-package/twi./python/..py”,第408行,在.ExceptionIntoGenerator中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)文件“SnimeSe/联邦/FUNCTION Serv.Py”,第78行,在ONI BuffFILL请求中原产地,ROM,ID,版本,限制文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home/rav/work/synapse/env/local/lib/python2.7/site-package/twi./python/..py”,第408行,在.ExceptionIntoGenerator中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)文件“突触/处理程序/联邦.Py”,第1465行,在ONI BuffFILL请求中事件=屈服自我。文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home/rav/work/synapse/env/local/lib/python2.7/site-package/twi./python/..py”,第408行,在.ExceptionIntoGenerator中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)文件“SnimeSe/UTL/Mealth.Py”,第55行,在度量函数中R =产量函数(自我,*ARGS,*kWARGS)文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Python /Purrest.Py”,第408行,在抛出异常发生器中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)文件“突触/处理程序/联邦.Py”,第465行,在(事件类型:成员,无)文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Internet /DEFER .Py”,第1384行,在结果=结果。文件“/home /rava/Works/Engs/Env/本地/LIB/Python 2.7/站点包/扭曲/ Python /Purrest.Py”,第408行,在抛出异常发生器中返回G.投掷(Self.Type,Self.Valuy,Bo.TB)“突触/存储/ ST”文件 原文:
richvdh 2月前
3
< Nm >我认为这个问题的主要原因是测试覆盖的严重不足。

原文:

Nm. I think the main thing this ponts to is the woeful lack of test coverage.

richvdh 2月前
4
65615/p> 原文:

fixed by #3355

返回
发表文章
richvdh
文章数
29
评论数
419
注册排名
8161