Skip to content

Conversation

aryanjassal
Copy link
Contributor

Description

Occasionally, a ErrorDBTransactionConflict is omitted from a background task checkForRediscoveryHandler. This should be properly locking a transaction and concurrent modification should be impossible.

This PR aims to figure out and eradicate the cause for this warning.

Issues Fixed

Tasks

  • 1. Resolve ErrorDBTransactionConflict in Discovery.checkForRediscoveryHandler

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@aryanjassal aryanjassal self-assigned this Jan 17, 2025
Copy link

linear bot commented Jan 17, 2025

@aryanjassal
Copy link
Contributor Author

When I applied a simple change of properly extracting the gestaltIdEncoded from an array, the syncNodeGraphHandler fails. And this change still has the DBTransactionConflict. So I would need to do a bit more research to actually resolve this.

pid       	933361
nodeId    	vet1dhoduhkmn4749r8usiopivklr8i4qoh9kjnhtgeg5rie4nvh0
clientHost	::1
clientPort	38573
agentHost 	::
agentPort 	39793
WARN:polykey.PolykeyAgent.task v0ps9qrcqapo01bq69ce6vhp398:Failed - Reason: ErrorNodeManagerSyncNodeGraphFailed("Failed to establish any connections with the following errors '[ErrorNodeConnectionTimeout()>AggregateError: All promises were rejected,ErrorNodeConnectionTimeout()>AggregateError: All promises were rejected]'")>AggregateError, Handler: NodeManager.syncNodeGraphHandler
WARN:polykey.PolykeyAgent.task v0ps9qihjq9o01a3rgl422osjhc:Failed - Reason: ErrorDBTransactionConflict, Handler: Discovery.checkForRediscoveryHandler

@aryanjassal aryanjassal force-pushed the feature-discovery-transaction-conflict branch from 263b3df to 2ee8f16 Compare January 17, 2025 05:33
@aryanjassal
Copy link
Contributor Author

This PR is more like a template or a starting point, so a simple rebase on staging and work can be resumed in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant