8000 Active deadlock detection by martinkersner · Pull Request #442 · Bisonai/orakl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Active deadlock detection #442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 51 commits into from
Mar 27, 2023
Merged

Conversation

martinkersner
Copy link
Member
@martinkersner martinkersner commented Mar 24, 2023

Description

This PR actively deals with potential heartbeat deadlock. We never want the heartbeat cycle to die. The reason for the heartbeat complications is because the cycle is loosely connected. If any of the following jobs dies, then the cycle is broken.

graph TD;
    eventJob-->aggregatorJob;
    checkHearbeatJob-->submitHeartbeatJob;
    submitHeartbeatJob-->heartbeatJob;
    deviationJob-->reporterJob;
    deviationJob-->submitHeartbeatJob;
    heartbeatJob-->aggregatorJob;
    aggregatorJob-->reporterJob;
    aggregatorJob-->submitHeartbeatJob;
Loading

Other changes

  • deployment and migration files of 11 data feeds for Baobab
  • fix wrong computation of aggregator hash
  • data feed watchman (port 5001 by default) and ephemeral state
  • integration of data feed watchman in Orakl CLI
  • graceful shutdown for data feed services
  • custom retry of failed transactions
  • move submission of new heartbeat round to separate job
  • setup attempts and backoff configs for queue jobs
  • limit calls to OracleRoundState in Aggregator contract
  • fix removal of repeatable job in fetcher
  • tool to flush queues in fetcher

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist before requesting a review

  • I have performed a self-review of my code.

Deployment

  • Should publish npm package
  • Should publish Docker image

@martinkersner martinkersner self-assigned this Mar 24, 2023
@martinkersner martinkersner linked an issue Mar 24, 2023 that may be closed by this pull request
@martinkersner martinkersner marked this pull request as ready for review March 26, 2023 11:13
@martinkersner martinkersner linked an issue Mar 27, 2023 that may be closed by this pull request
@martinkersner martinkersner merged commit 545feaa into master Mar 27, 2023
@martinkersner martinkersner deleted the i-441/feat/active-deadlock-detection branch March 27, 2023 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active deadlock detection Data Feed Reporter Bottleneck
1 participant
0