Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Resolving transaction conflicts in the discovery domain#858

Draft
aryanjassal wants to merge 1 commit intostaging from
feature-discovery-transaction-conflict
Draft

Resolving transaction conflicts in the discovery domain #858
aryanjassal wants to merge 1 commit intostaging from
feature-discovery-transaction-conflict

Conversation

@aryanjassal
Copy link
Contributor

@aryanjassal aryanjassal commented Jan 17, 2025

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

Copy link

linear bot commented Jan 17, 2025

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
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

Reviewers

No reviews

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /