首页> 外文期刊>IEEE Transactions on Knowledge and Data Engineering >A one-phase algorithm to detect distributed deadlocks in replicated databases
【24h】

A one-phase algorithm to detect distributed deadlocks in replicated databases

机译:一种用于检测复制数据库中的分布式死锁的单阶段算法

获取原文
获取原文并翻译 | 示例

摘要

Replicated databases that use quorum-consensus algorithms to perform majority voting are prone to deadlocks. Due to the P-out-of-Q nature of quorum requests, deadlocks that arise are generalized deadlocks and are hard to detect. We present an efficient distributed algorithm to detect generalized deadlocks in replicated databases. The algorithm performs reduction of a distributed wait-for-graph (WFG) to determine the existence of a deadlock. If sufficient information to decide the reducibility of a node is not available at that node, the algorithm attempts reduction later in a lazy manner. We prove the correctness of the algorithm. The algorithm has a message complexity of 2e messages and a worst-case time complexity of 2d+2 hops, where e is the number of edges and d is the diameter of the WFG. The algorithm is shown to perform significantly better in both time and message complexity than the best known existing algorithms. We conjecture that this is an optimal algorithm, in time and message complexity, to detect generalized deadlocks if no transaction has complete knowledge of the topology of the WFG or the system and the deadlock detection is to be carried out in a distributed manner.
机译:使用仲裁共识算法执行多数表决的复制数据库容易出现死锁。由于仲裁请求具有P-out-of-Q性质,因此出现的死锁是广义死锁,很难检测到。我们提出了一种有效的分布式算法来检测复制数据库中的广义死锁。该算法执行分布式等待图形(WFG)的减少以确定死锁的存在。如果在该节点上没有足够的信息来决定该节点的可还原性,则该算法稍后会以惰性方式尝试进行还原。我们证明了该算法的正确性。该算法的消息复杂度为2e条消息,最坏情况下的时间复杂度为2d + 2跳,其中e是边的数量,d是WFG的直径。与现有的最佳算法相比,该算法在时间和消息复杂度方面的表现都明显更好。我们推测,如果没有事务完全了解WFG或系统的拓扑,并且死锁检测将以分布式方式进行,那么这是一种在时间和消息复杂度上检测广义死锁的最佳算法。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号