Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Karknu/rcd 43 mitigation #3920

Merged
merged 7 commits into from
Dec 1, 2018
Merged

Karknu/rcd 43 mitigation #3920

merged 7 commits into from
Dec 1, 2018

Conversation

karknu
Copy link
Contributor

@karknu karknu commented Nov 30, 2018

Description

Improvement that makes the network disconnect in RCD-43 less likely to happen.

Linked issue

Type of change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • 🛠 New feature (non-breaking change which adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
  • 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
  • 🔨 New or improved tests for existing code
  • ⛑ git-flow chore (backport, hotfix, etc)

Developer checklist

  • I have read the style guide document, and my code follows the code style of this project.
  • If my code deals with exceptions, it follows the guidelines.
  • I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on cardanodocs.com, amending the inline Haddock comments, any relevant README file or one of the document listed in the docs directory.
  • CHANGELOG entry has been added and is linked to the correct PR on GitHub.

Testing checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.

QA Steps

Screenshots (if available)

How to merge

Send the message bors r+ to merge this PR. For more information, see
docs/how-to/bors.md.

erikd and others added 3 commits November 30, 2018 11:39
Disable spotlight indexing of the block storage on OSX.
@karknu karknu requested a review from dcoutts November 30, 2018 13:24
Copy link
Contributor

@dcoutts dcoutts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One minor comment on the tidy-up requested. Otherwise we can proceede.

db/src/Pos/DB/Rocks/Functions.hs Outdated Show resolved Hide resolved
@jmitchell
Copy link
Contributor

bors r+

iohk-bors bot added a commit that referenced this pull request Nov 30, 2018
3919: [DEVOPS-1112] Bump applicationVersion 2 -> 3 for testnet r=jmitchell a=rvl

## Description

Update applicationVersion for an update proposal on testnet.

https://github.com/input-output-hk/internal-documentation/wiki/Daedalus-installer-history

## Linked issue

https://iohk.myjetbrains.com/youtrack/issue/DEVOPS-1112



3920: Karknu/rcd 43 mitigation r=jmitchell a=karknu

## Description

Improvement that makes the network disconnect in RCD-43 less likely to happen.

## Linked issue

<!--- Put here the relevant issue from YouTrack -->



Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
Co-authored-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
Co-authored-by: Duncan Coutts <duncan.coutts@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 30, 2018

Build failed (retrying...)

@jmitchell
Copy link
Contributor

src/Pos/DB/Rocks/Functions.hs:97:5: error:
    • Couldn't match type ‘m’ with ‘IO’
      ‘m’ is a rigid type variable bound by
        the type signature for:
          openNodeDBs :: forall (m :: * -> *).
                         MonadIO m =>
                         Bool -> FilePath -> m NodeDBs
        at src/Pos/DB/Rocks/Functions.hs:(72,1)-(74,36)
      Expected type: m ()
        Actual type: IO ()
    • In a stmt of a 'do' block:
        when (System.Info.os == "darwin")
          $ withFile
              (fp </> ".metadata_never_index") AppendMode (\ _ -> return ())
      In the expression:
        do liftIO
             $ whenM ((recreate &&) <$> doesDirectoryExist fp)
                 $ removeDirectoryRecursive fp
           let blocksDir = fp </> "blocks"
           let blocksIndexPath = blocksDir </> "index"
           let _blockDataDir = blocksDir </> "data"
           ....
      In an equation for ‘openNodeDBs’:
          openNodeDBs recreate fp
            = do liftIO
                   $ whenM ((recreate &&) <$> doesDirectoryExist fp)
                       $ removeDirectoryRecursive fp
                 let blocksDir = ...
                 let blocksIndexPath = ...
                 ....
            where
                ensureDirectoryExists :: MonadIO m => FilePath -> m ()
                ensureDirectoryExists = liftIO . createDirectoryIfMissing True
    • Relevant bindings include
        openNodeDBs :: Bool -> FilePath -> m NodeDBs
          (bound at src/Pos/DB/Rocks/Functions.hs:75:1)
   |
97 |     when (System.Info.os == "darwin") $
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 30, 2018

Canceled

@jmitchell
Copy link
Contributor

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 30, 2018

Canceled

@jmitchell
Copy link
Contributor

bors r+

iohk-bors bot added a commit that referenced this pull request Nov 30, 2018
3920: Karknu/rcd 43 mitigation r=jmitchell a=karknu

## Description

Improvement that makes the network disconnect in RCD-43 less likely to happen.

## Linked issue

<!--- Put here the relevant issue from YouTrack -->



Co-authored-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
Co-authored-by: Duncan Coutts <duncan.coutts@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Nov 30, 2018

Timed out

@jmitchell
Copy link
Contributor

bors r+ p=10

iohk-bors bot added a commit that referenced this pull request Nov 30, 2018
3920: Karknu/rcd 43 mitigation r=jmitchell a=karknu

## Description

Improvement that makes the network disconnect in RCD-43 less likely to happen.

## Linked issue

<!--- Put here the relevant issue from YouTrack -->



Co-authored-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
Co-authored-by: Duncan Coutts <duncan.coutts@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 1, 2018

Timed out

@cleverca22
Copy link
Contributor

bors r+ p=10

iohk-bors bot added a commit that referenced this pull request Dec 1, 2018
3920: Karknu/rcd 43 mitigation r=cleverca22 a=karknu

## Description

Improvement that makes the network disconnect in RCD-43 less likely to happen.

## Linked issue

<!--- Put here the relevant issue from YouTrack -->



Co-authored-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Co-authored-by: Karl Knutsson <karl.knutsson@iohk.io>
Co-authored-by: Kosyrev Serge <serge.kosyrev@iohk.io>
Co-authored-by: Duncan Coutts <duncan.coutts@iohk.io>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 1, 2018

@iohk-bors iohk-bors bot merged commit e1bca52 into release/2.0.0 Dec 1, 2018
@iohk-bors iohk-bors bot deleted the karknu/rcd-43-mitigation branch December 1, 2018 04:24
@KtorZ KtorZ mentioned this pull request Jan 4, 2019
12 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants