payload: {"action":"created","comment":{"url":"https://api.github.com/repos/iotaledger/iri/pulls/comments/332164082","pull_request_review_id":298316742,"id":332164082,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMjE2NDA4Mg==","diff_hunk":"@@ -530,4 +548,56 @@ private void initClassTreeMap(List<ColumnFamilyDescriptor> columnFamilyDescripto\n         classTreeMap = MapUtils.unmodifiableMap(classMap);\n     }\n \n+    private DBOptions createOptions(String logPath, String configFile) throws IOException {","path":"src/main/java/com/iota/iri/storage/rocksDB/RocksDBPersistenceProvider.java","position":264,"original_position":264,"commit_id":"285332571b2f912a041174263ac2769691878b70","original_commit_id":"285332571b2f912a041174263ac2769691878b70","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [The method 'createOptions(String, String)' has an NPath complexity of 224](https://app.codacy.com/app/GalRogozinski/iri/pullRequest?prid=4280498)","created_at":"2019-10-07T18:14:41Z","updated_at":"2019-10-07T18:14:42Z","html_url":"https://github.com/iotaledger/iri/pull/1638#discussion_r332164082","pull_request_url":"https://api.github.com/repos/iotaledger/iri/pulls/1638","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/iotaledger/iri/pulls/comments/332164082"},"html":{"href":"https://github.com/iotaledger/iri/pull/1638#discussion_r332164082"},"pull_request":{"href":"https://api.github.com/repos/iotaledger/iri/pulls/1638"}}},"pull_request":{"url":"https://api.github.com/repos/iotaledger/iri/pulls/1638","id":325427260,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI1NDI3MjYw","html_url":"https://github.com/iotaledger/iri/pull/1638","diff_url":"https://github.com/iotaledger/iri/pull/1638.diff","patch_url":"https://github.com/iotaledger/iri/pull/1638.patch","issue_url":"https://api.github.com/repos/iotaledger/iri/issues/1638","number":1638,"state":"open","locked":false,"title":"Rocksdb config","user":{"login":"kwek20","id":1417565,"node_id":"MDQ6VXNlcjE0MTc1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1417565?v=4","gravatar_id":"","url":"https://api.github.com/users/kwek20","html_url":"https://github.com/kwek20","followers_url":"https://api.github.com/users/kwek20/followers","following_url":"https://api.github.com/users/kwek20/following{/other_user}","gists_url":"https://api.github.com/users/kwek20/gists{/gist_id}","starred_url":"https://api.github.com/users/kwek20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwek20/subscriptions","organizations_url":"https://api.github.com/users/kwek20/orgs","repos_url":"https://api.github.com/users/kwek20/repos","events_url":"https://api.github.com/users/kwek20/events{/privacy}","received_events_url":"https://api.github.com/users/kwek20/received_events","type":"User","site_admin":false},"body":"# Description\r\n\r\nIn order to easily change rocksdb settings, you can now configure it directly though a config file.\r\nCurrent settings but in a config would look like this:\r\n```\r\ncreate_if_missing=true\r\ncreate_missing_column_families=true\r\nmax_log_file_size=1048576\r\nmax_manifest_file_size=1048576\r\nmax_open_files=10000\r\nmax_background_compactions=1\r\nallow_concurrent_memtable_write=true\r\nmax_subcompactions=6\r\n```\r\n\r\nFixes #1630\r\n\r\n## Type of change\r\n- Enhancement (a non-breaking change which adds functionality)\r\n\r\n# How Has This Been Tested?\r\nIt loads the config\r\n\r\n\r\n# Checklist:\r\n- [X] My code follows the style guidelines for this project\r\n- [X] I have performed a self-review of my own code\r\n- [X] I have commented my code, particularly in hard-to-understand areas\r\n- [X] I have made corresponding changes to the documentation\r\n- [X] I have added tests that prove my fix is effective or that my feature works\r\n- [X] New and existing unit tests pass locally with my changes\r\n","created_at":"2019-10-07T18:10:56Z","updated_at":"2019-10-07T18:14:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f7d294934ea7fb2790bdae587bbfea912d251ea","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/iotaledger/iri/pulls/1638/commits","review_comments_url":"https://api.github.com/repos/iotaledger/iri/pulls/1638/comments","review_comment_url":"https://api.github.com/repos/iotaledger/iri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iotaledger/iri/issues/1638/comments","statuses_url":"https://api.github.com/repos/iotaledger/iri/statuses/285332571b2f912a041174263ac2769691878b70","head":{"label":"kwek20:rocksdb-config","ref":"rocksdb-config","sha":"285332571b2f912a041174263ac2769691878b70","user":{"login":"kwek20","id":1417565,"node_id":"MDQ6VXNlcjE0MTc1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1417565?v=4","gravatar_id":"","url":"https://api.github.com/users/kwek20","html_url":"https://github.com/kwek20","followers_url":"https://api.github.com/users/kwek20/followers","following_url":"https://api.github.com/users/kwek20/following{/other_user}","gists_url":"https://api.github.com/users/kwek20/gists{/gist_id}","starred_url":"https://api.github.com/users/kwek20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwek20/subscriptions","organizations_url":"https://api.github.com/users/kwek20/orgs","repos_url":"https://api.github.com/users/kwek20/repos","events_url":"https://api.github.com/users/kwek20/events{/privacy}","received_events_url":"https://api.github.com/users/kwek20/received_events","type":"User","site_admin":false},"repo":{"id":144158765,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQxNTg3NjU=","name":"iri","full_name":"kwek20/iri","private":false,"owner":{"login":"kwek20","id":1417565,"node_id":"MDQ6VXNlcjE0MTc1NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1417565?v=4","gravatar_id":"","url":"https://api.github.com/users/kwek20","html_url":"https://github.com/kwek20","followers_url":"https://api.github.com/users/kwek20/followers","following_url":"https://api.github.com/users/kwek20/following{/other_user}","gists_url":"https://api.github.com/users/kwek20/gists{/gist_id}","starred_url":"https://api.github.com/users/kwek20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwek20/subscriptions","organizations_url":"https://api.github.com/users/kwek20/orgs","repos_url":"https://api.github.com/users/kwek20/repos","events_url":"https://api.github.com/users/kwek20/events{/privacy}","received_events_url":"https://api.github.com/users/kwek20/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kwek20/iri","description":"IOTA Reference Implementation","fork":true,"url":"https://api.github.com/repos/kwek20/iri","forks_url":"https://api.github.com/repos/kwek20/iri/forks","keys_url":"https://api.github.com/repos/kwek20/iri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwek20/iri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwek20/iri/teams","hooks_url":"https://api.github.com/repos/kwek20/iri/hooks","issue_events_url":"https://api.github.com/repos/kwek20/iri/issues/events{/number}","events_url":"https://api.github.com/repos/kwek20/iri/events","assignees_url":"https://api.github.com/repos/kwek20/iri/assignees{/user}","branches_url":"https://api.github.com/repos/kwek20/iri/branches{/branch}","tags_url":"https://api.github.com/repos/kwek20/iri/tags","blobs_url":"https://api.github.com/repos/kwek20/iri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwek20/iri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwek20/iri/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwek20/iri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwek20/iri/statuses/{sha}","languages_url":"https://api.github.com/repos/kwek20/iri/languages","stargazers_url":"https://api.github.com/repos/kwek20/iri/stargazers","contributors_url":"https://api.github.com/repos/kwek20/iri/contributors","subscribers_url":"https://api.github.com/repos/kwek20/iri/subscribers","subscription_url":"https://api.github.com/repos/kwek20/iri/subscription","commits_url":"https://api.github.com/repos/kwek20/iri/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwek20/iri/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwek20/iri/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwek20/iri/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwek20/iri/contents/{+path}","compare_url":"https://api.github.com/repos/kwek20/iri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwek20/iri/merges","archive_url":"https://api.github.com/repos/kwek20/iri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwek20/iri/downloads","issues_url":"https://api.github.com/repos/kwek20/iri/issues{/number}","pulls_url":"https://api.github.com/repos/kwek20/iri/pulls{/number}","milestones_url":"https://api.github.com/repos/kwek20/iri/milestones{/number}","notifications_url":"https://api.github.com/repos/kwek20/iri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwek20/iri/labels{/name}","releases_url":"https://api.github.com/repos/kwek20/iri/releases{/id}","deployments_url":"https://api.github.com/repos/kwek20/iri/deployments","created_at":"2018-08-09T13:47:51Z","updated_at":"2019-09-30T12:37:09Z","pushed_at":"2019-10-07T17:16:12Z","git_url":"git://github.com/kwek20/iri.git","ssh_url":"git@github.com:kwek20/iri.git","clone_url":"https://github.com/kwek20/iri.git","svn_url":"https://github.com/kwek20/iri","homepage":null,"size":239068,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"iotaledger:dev","ref":"dev","sha":"1b07a374f9974e782a6cd5b7e3f4e9d4554c8301","user":{"login":"iotaledger","id":20126597,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMTI2NTk3","avatar_url":"https://avatars3.githubusercontent.com/u/20126597?v=4","gravatar_id":"","url":"https://api.github.com/users/iotaledger","html_url":"https://github.com/iotaledger","followers_url":"https://api.github.com/users/iotaledger/followers","following_url":"https://api.github.com/users/iotaledger/following{/other_user}","gists_url":"https://api.github.com/users/iotaledger/gists{/gist_id}","starred_url":"https://api.github.com/users/iotaledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotaledger/subscriptions","organizations_url":"https://api.github.com/users/iotaledger/orgs","repos_url":"https://api.github.com/users/iotaledger/repos","events_url":"https://api.github.com/users/iotaledger/events{/privacy}","received_events_url":"https://api.github.com/users/iotaledger/received_events","type":"Organization","site_admin":false},"repo":{"id":71836159,"node_id":"MDEwOlJlcG9zaXRvcnk3MTgzNjE1OQ==","name":"iri","full_name":"iotaledger/iri","private":false,"owner":{"login":"iotaledger","id":20126597,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMTI2NTk3","avatar_url":"https://avatars3.githubusercontent.com/u/20126597?v=4","gravatar_id":"","url":"https://api.github.com/users/iotaledger","html_url":"https://github.com/iotaledger","followers_url":"https://api.github.com/users/iotaledger/followers","following_url":"https://api.github.com/users/iotaledger/following{/other_user}","gists_url":"https://api.github.com/users/iotaledger/gists{/gist_id}","starred_url":"https://api.github.com/users/iotaledger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotaledger/subscriptions","organizations_url":"https://api.github.com/users/iotaledger/orgs","repos_url":"https://api.github.com/users/iotaledger/repos","events_url":"https://api.github.com/users/iotaledger/events{/privacy}","received_events_url":"https://api.github.com/users/iotaledger/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/iotaledger/iri","description":"IOTA Reference Implementation","fork":false,"url":"https://api.github.com/repos/iotaledger/iri","forks_url":"https://api.github.com/repos/iotaledger/iri/forks","keys_url":"https://api.github.com/repos/iotaledger/iri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iotaledger/iri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iotaledger/iri/teams","hooks_url":"https://api.github.com/repos/iotaledger/iri/hooks","issue_events_url":"https://api.github.com/repos/iotaledger/iri/issues/events{/number}","events_url":"https://api.github.com/repos/iotaledger/iri/events","assignees_url":"https://api.github.com/repos/iotaledger/iri/assignees{/user}","branches_url":"https://api.github.com/repos/iotaledger/iri/branches{/branch}","tags_url":"https://api.github.com/repos/iotaledger/iri/tags","blobs_url":"https://api.github.com/repos/iotaledger/iri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iotaledger/iri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iotaledger/iri/git/refs{/sha}","trees_url":"https://api.github.com/repos/iotaledger/iri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iotaledger/iri/statuses/{sha}","languages_url":"https://api.github.com/repos/iotaledger/iri/languages","stargazers_url":"https://api.github.com/repos/iotaledger/iri/stargazers","contributors_url":"https://api.github.com/repos/iotaledger/iri/contributors","subscribers_url":"https://api.github.com/repos/iotaledger/iri/subscribers","subscription_url":"https://api.github.com/repos/iotaledger/iri/subscription","commits_url":"https://api.github.com/repos/iotaledger/iri/commits{/sha}","git_commits_url":"https://api.github.com/repos/iotaledger/iri/git/commits{/sha}","comments_url":"https://api.github.com/repos/iotaledger/iri/comments{/number}","issue_comment_url":"https://api.github.com/repos/iotaledger/iri/issues/comments{/number}","contents_url":"https://api.github.com/repos/iotaledger/iri/contents/{+path}","compare_url":"https://api.github.com/repos/iotaledger/iri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iotaledger/iri/merges","archive_url":"https://api.github.com/repos/iotaledger/iri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iotaledger/iri/downloads","issues_url":"https://api.github.com/repos/iotaledger/iri/issues{/number}","pulls_url":"https://api.github.com/repos/iotaledger/iri/pulls{/number}","milestones_url":"https://api.github.com/repos/iotaledger/iri/milestones{/number}","notifications_url":"https://api.github.com/repos/iotaledger/iri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iotaledger/iri/labels{/name}","releases_url":"https://api.github.com/repos/iotaledger/iri/releases{/id}","deployments_url":"https://api.github.com/repos/iotaledger/iri/deployments","created_at":"2016-10-24T22:06:06Z","updated_at":"2019-10-04T16:05:03Z","pushed_at":"2019-10-07T18:10:57Z","git_url":"git://github.com/iotaledger/iri.git","ssh_url":"git@github.com:iotaledger/iri.git","clone_url":"https://github.com/iotaledger/iri.git","svn_url":"https://github.com/iotaledger/iri","homepage":null,"size":238558,"stargazers_count":1168,"watchers_count":1168,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":411,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":398,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":411,"open_issues":398,"watchers":1168,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/iotaledger/iri/pulls/1638"},"html":{"href":"https://github.com/iotaledger/iri/pull/1638"},"issue":{"href":"https://api.github.com/repos/iotaledger/iri/issues/1638"},"comments":{"href":"https://api.github.com/repos/iotaledger/iri/issues/1638/comments"},"review_comments":{"href":"https://api.github.com/repos/iotaledger/iri/pulls/1638/comments"},"review_comment":{"href":"https://api.github.com/repos/iotaledger/iri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iotaledger/iri/pulls/1638/commits"},"statuses":{"href":"https://api.github.com/repos/iotaledger/iri/statuses/285332571b2f912a041174263ac2769691878b70"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"codacy-bot"}}