Closed WadeBarnes closed 5 years ago
@ianco, This appears to be happening fairly often. A few dozen records affected since last week.
@WadeBarnes Chatted with @nrempel about this, I think the move to the new agent will address this kind of problem.
With the current von-x code, the internal threading model combined with multiple processes deployed on openshift make this very difficult to debug. With the new agent design the separation of concerns will be a little bit cleaner and I think we can avoid this kind of issue.
So I'm not sure how much effort we want to expend trying to diagnose with the current codebase ...
Recent examples of records that cause the deadlock;
Examples (from credential_log):
record_id | corp_num
-----------+-----------
5195506 | FM0743811
5195507 | FM0743811
5195543 | 0964770
5195544 | 0964770
5195847 | FM0653232
5195848 | FM0653232
5195872 | FM0784088
5195873 | FM0769586
5195874 | FM0769586
5195897 | FM0784089
5195907 | FM0649949
5195908 | FM0649949
5195923 | FM0649943
5195924 | FM0649943
5195932 | FM0649946
5195933 | FM0649946
5195938 | C1218404
5195939 | C1218404
5195940 | C1218404
5195941 | C1218404
5195947 | FM0784092
5196140 | FM0783805
5196141 | FM0783805
5196145 | FM0784112
5196163 | 1136244
5196164 | 1136244
The attached examples are from the schedule agent processing feeds. For this data to actually trigger the deadlock data for the corp may need to pre-exist in the TOB database.
Occasionally there situations where a number of related credentials are posted to the OrgBook for processing. When the credentials are processed in a single transaction there is the potential for a deadlock condition since there is a high likelihood that the changes will affect the same records. An example of this is below.
This does not occur very often. In fact this is the first time I've seen this occur since we started the project. For now we, should ensure we are receiving notifications of posting errors from the agents and monitor the situation and document how often this may occur.
Workaround:
TOB Stack trace:
BC Registries Agent error report: