Skip to content
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

Redesign dao state monitoring [4] #5782

Merged
merged 13 commits into from
Nov 9, 2021

Commits on Nov 4, 2021

  1. Add api test, Cleanup

    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    aad658f View commit details
    Browse the repository at this point in the history
  2. Cleanups, improve logs

    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    3ac61c5 View commit details
    Browse the repository at this point in the history
  3. Rename onChangeAfterBatchProcessing to onDaoStateHashesChanged

    at DaoStateMonitoringService.Listener
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    cd3e821 View commit details
    Browse the repository at this point in the history
  4. Add method. Inline var

    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    d73bc55 View commit details
    Browse the repository at this point in the history
  5. Fix getCycleIndex method

    The recursive version is very slow with more cycles.
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    c559e6e View commit details
    Browse the repository at this point in the history
  6. Improve GcUtil

    Increase duration for autoReleaseMemory from 60 to 120 sec.
    Improve logging.
    Add print stack trace when in dev mode to show caller for debugging/tuning.
    Remove inefficient GC calls (based on test runs when no reduction occurred at those calls).
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    7b68686 View commit details
    Browse the repository at this point in the history
  7. Add useFullModeDaoMonitor field to PreferencesPayload

    Add toggle to PreferencesView
    Set useFullModeDaoMonitor default to true for headless nodes
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    1abe686 View commit details
    Browse the repository at this point in the history
  8. Remove prevHash from StateHash classes (the prevHash was only used fo…

    …r display.
    
    For creating the hash we take the hash from the previous element. By removing it
    we safe about 3 MB on data)
    
    Add isSelfCreated field to DaoStateHash (indicates if we have created
    the hash by ourself or if we have received it from a peer -> will be
    part of later commits)
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    1f92992 View commit details
    Browse the repository at this point in the history
  9. Add daoStateBlockChainNotConnecting property (impl. will come in othe…

    …r commits)
    
    Add Preferences to service classes
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    8e3f953 View commit details
    Browse the repository at this point in the history
  10. Delete DaoEventCoordinator (we will handle coordination in

    DaoStateSnapshotService instead in next commits)
    
    Let DaoStateSnapshotService implement DaoSetupService (impl in next commits)
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    5a8a9e9 View commit details
    Browse the repository at this point in the history
  11. Add pruneStore method

    We set both data to null and call GC after persistence is done.
    chimp1984 committed Nov 4, 2021
    Configuration menu
    Copy the full SHA
    5ccef96 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    84ff332 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Fix typos, cleanups

    chimp1984 committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    7e1696b View commit details
    Browse the repository at this point in the history