{"action":"closed","number":2045,"pull_request":{"url":"https://api.github.com/repos/apache/carbondata/pulls/2045","id":173677562,"html_url":"https://github.com/apache/carbondata/pull/2045","diff_url":"https://github.com/apache/carbondata/pull/2045.diff","patch_url":"https://github.com/apache/carbondata/pull/2045.patch","issue_url":"https://api.github.com/repos/apache/carbondata/issues/2045","number":2045,"state":"closed","locked":false,"title":"[CARBONDATA-2230]Add a path into table path to store lock files and delete useless segment lock files before loading","user":{"login":"zzcclp","id":9430290,"avatar_url":"https://avatars0.githubusercontent.com/u/9430290?v=4","gravatar_id":"","url":"https://api.github.com/users/zzcclp","html_url":"https://github.com/zzcclp","followers_url":"https://api.github.com/users/zzcclp/followers","following_url":"https://api.github.com/users/zzcclp/following{/other_user}","gists_url":"https://api.github.com/users/zzcclp/gists{/gist_id}","starred_url":"https://api.github.com/users/zzcclp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzcclp/subscriptions","organizations_url":"https://api.github.com/users/zzcclp/orgs","repos_url":"https://api.github.com/users/zzcclp/repos","events_url":"https://api.github.com/users/zzcclp/events{/privacy}","received_events_url":"https://api.github.com/users/zzcclp/received_events","type":"User","site_admin":false},"body":"After [PR1984](https://github.com/apache/carbondata/pull/1984) merged, it doesn't delete the lock files when unlock, there are many useless lock files in table path, especially segment lock files, they grow after every batch loading.\r\n\r\nSolution :\r\n1. add a child path into table path, called Locks, all lock files will be stored in this path;\r\n2. Before loading, get all useless segment lock files and delete them, because just segment lock files will grow, other lock files dosen't grow.\r\n\r\nBe sure to do all of the following checklist to help us incorporate \r\nyour contribution quickly and easily:\r\n\r\n - [ ] Any interfaces changed? No\r\n \r\n - [ ] Any backward compatibility impacted? No\r\n \r\n - [ ] Document update required? No\r\n\r\n - [ ] Testing done\r\n        Please provide details on \r\n        - Whether new unit test cases have been added or why no new tests are required?\r\n        - How it is tested? Please attach test report.\r\n        - Is it a performance related change? Please attach the performance test report.\r\n        - Any additional information to help reviewers in testing this change.\r\n    Test manually    \r\n\r\n - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA. \r\n\r\n","created_at":"2018-03-08T08:53:01Z","updated_at":"2018-03-18T16:16:49Z","closed_at":"2018-03-18T16:16:49Z","merged_at":null,"merge_commit_sha":"45fc0b4ceeb38de7bf468276d52a7bd045635b14","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/carbondata/pulls/2045/commits","review_comments_url":"https://api.github.com/repos/apache/carbondata/pulls/2045/comments","review_comment_url":"https://api.github.com/repos/apache/carbondata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/carbondata/issues/2045/comments","statuses_url":"https://api.github.com/repos/apache/carbondata/statuses/8d831dce7a357158b541325255cd7cd8813d0d4d","head":{"label":"zzcclp:CARBONDATA-2230","ref":"CARBONDATA-2230","sha":"8d831dce7a357158b541325255cd7cd8813d0d4d","user":{"login":"zzcclp","id":9430290,"avatar_url":"https://avatars0.githubusercontent.com/u/9430290?v=4","gravatar_id":"","url":"https://api.github.com/users/zzcclp","html_url":"https://github.com/zzcclp","followers_url":"https://api.github.com/users/zzcclp/followers","following_url":"https://api.github.com/users/zzcclp/following{/other_user}","gists_url":"https://api.github.com/users/zzcclp/gists{/gist_id}","starred_url":"https://api.github.com/users/zzcclp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzcclp/subscriptions","organizations_url":"https://api.github.com/users/zzcclp/orgs","repos_url":"https://api.github.com/users/zzcclp/repos","events_url":"https://api.github.com/users/zzcclp/events{/privacy}","received_events_url":"https://api.github.com/users/zzcclp/received_events","type":"User","site_admin":false},"repo":{"id":72818243,"name":"carbondata","full_name":"zzcclp/carbondata","owner":{"login":"zzcclp","id":9430290,"avatar_url":"https://avatars0.githubusercontent.com/u/9430290?v=4","gravatar_id":"","url":"https://api.github.com/users/zzcclp","html_url":"https://github.com/zzcclp","followers_url":"https://api.github.com/users/zzcclp/followers","following_url":"https://api.github.com/users/zzcclp/following{/other_user}","gists_url":"https://api.github.com/users/zzcclp/gists{/gist_id}","starred_url":"https://api.github.com/users/zzcclp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzcclp/subscriptions","organizations_url":"https://api.github.com/users/zzcclp/orgs","repos_url":"https://api.github.com/users/zzcclp/repos","events_url":"https://api.github.com/users/zzcclp/events{/privacy}","received_events_url":"https://api.github.com/users/zzcclp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zzcclp/carbondata","description":"Mirror of Apache CarbonData","fork":true,"url":"https://api.github.com/repos/zzcclp/carbondata","forks_url":"https://api.github.com/repos/zzcclp/carbondata/forks","keys_url":"https://api.github.com/repos/zzcclp/carbondata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zzcclp/carbondata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zzcclp/carbondata/teams","hooks_url":"https://api.github.com/repos/zzcclp/carbondata/hooks","issue_events_url":"https://api.github.com/repos/zzcclp/carbondata/issues/events{/number}","events_url":"https://api.github.com/repos/zzcclp/carbondata/events","assignees_url":"https://api.github.com/repos/zzcclp/carbondata/assignees{/user}","branches_url":"https://api.github.com/repos/zzcclp/carbondata/branches{/branch}","tags_url":"https://api.github.com/repos/zzcclp/carbondata/tags","blobs_url":"https://api.github.com/repos/zzcclp/carbondata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zzcclp/carbondata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zzcclp/carbondata/git/refs{/sha}","trees_url":"https://api.github.com/repos/zzcclp/carbondata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zzcclp/carbondata/statuses/{sha}","languages_url":"https://api.github.com/repos/zzcclp/carbondata/languages","stargazers_url":"https://api.github.com/repos/zzcclp/carbondata/stargazers","contributors_url":"https://api.github.com/repos/zzcclp/carbondata/contributors","subscribers_url":"https://api.github.com/repos/zzcclp/carbondata/subscribers","subscription_url":"https://api.github.com/repos/zzcclp/carbondata/subscription","commits_url":"https://api.github.com/repos/zzcclp/carbondata/commits{/sha}","git_commits_url":"https://api.github.com/repos/zzcclp/carbondata/git/commits{/sha}","comments_url":"https://api.github.com/repos/zzcclp/carbondata/comments{/number}","issue_comment_url":"https://api.github.com/repos/zzcclp/carbondata/issues/comments{/number}","contents_url":"https://api.github.com/repos/zzcclp/carbondata/contents/{+path}","compare_url":"https://api.github.com/repos/zzcclp/carbondata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zzcclp/carbondata/merges","archive_url":"https://api.github.com/repos/zzcclp/carbondata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zzcclp/carbondata/downloads","issues_url":"https://api.github.com/repos/zzcclp/carbondata/issues{/number}","pulls_url":"https://api.github.com/repos/zzcclp/carbondata/pulls{/number}","milestones_url":"https://api.github.com/repos/zzcclp/carbondata/milestones{/number}","notifications_url":"https://api.github.com/repos/zzcclp/carbondata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zzcclp/carbondata/labels{/name}","releases_url":"https://api.github.com/repos/zzcclp/carbondata/releases{/id}","deployments_url":"https://api.github.com/repos/zzcclp/carbondata/deployments","created_at":"2016-11-04T05:50:15Z","updated_at":"2018-03-18T15:29:11Z","pushed_at":"2018-03-18T15:55:28Z","git_url":"git://github.com/zzcclp/carbondata.git","ssh_url":"git@github.com:zzcclp/carbondata.git","clone_url":"https://github.com/zzcclp/carbondata.git","svn_url":"https://github.com/zzcclp/carbondata","homepage":"","size":55584,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"e39b0a14a196224dbe6fdce2ff53e09b3b76b876","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":62117818,"name":"carbondata","full_name":"apache/carbondata","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/carbondata","description":"Mirror of Apache CarbonData","fork":false,"url":"https://api.github.com/repos/apache/carbondata","forks_url":"https://api.github.com/repos/apache/carbondata/forks","keys_url":"https://api.github.com/repos/apache/carbondata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/carbondata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/carbondata/teams","hooks_url":"https://api.github.com/repos/apache/carbondata/hooks","issue_events_url":"https://api.github.com/repos/apache/carbondata/issues/events{/number}","events_url":"https://api.github.com/repos/apache/carbondata/events","assignees_url":"https://api.github.com/repos/apache/carbondata/assignees{/user}","branches_url":"https://api.github.com/repos/apache/carbondata/branches{/branch}","tags_url":"https://api.github.com/repos/apache/carbondata/tags","blobs_url":"https://api.github.com/repos/apache/carbondata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/carbondata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/carbondata/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/carbondata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/carbondata/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/carbondata/languages","stargazers_url":"https://api.github.com/repos/apache/carbondata/stargazers","contributors_url":"https://api.github.com/repos/apache/carbondata/contributors","subscribers_url":"https://api.github.com/repos/apache/carbondata/subscribers","subscription_url":"https://api.github.com/repos/apache/carbondata/subscription","commits_url":"https://api.github.com/repos/apache/carbondata/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/carbondata/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/carbondata/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/carbondata/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/carbondata/contents/{+path}","compare_url":"https://api.github.com/repos/apache/carbondata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/carbondata/merges","archive_url":"https://api.github.com/repos/apache/carbondata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/carbondata/downloads","issues_url":"https://api.github.com/repos/apache/carbondata/issues{/number}","pulls_url":"https://api.github.com/repos/apache/carbondata/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/carbondata/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/carbondata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/carbondata/labels{/name}","releases_url":"https://api.github.com/repos/apache/carbondata/releases{/id}","deployments_url":"https://api.github.com/repos/apache/carbondata/deployments","created_at":"2016-06-28T07:00:06Z","updated_at":"2018-03-18T15:00:08Z","pushed_at":"2018-03-18T16:16:36Z","git_url":"git://github.com/apache/carbondata.git","ssh_url":"git@github.com:apache/carbondata.git","clone_url":"https://github.com/apache/carbondata.git","svn_url":"https://github.com/apache/carbondata","homepage":"","size":55689,"stargazers_count":626,"watchers_count":626,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":394,"mirror_url":null,"archived":false,"open_issues_count":102,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":394,"open_issues":102,"watchers":626,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/carbondata/pulls/2045"},"html":{"href":"https://github.com/apache/carbondata/pull/2045"},"issue":{"href":"https://api.github.com/repos/apache/carbondata/issues/2045"},"comments":{"href":"https://api.github.com/repos/apache/carbondata/issues/2045/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/carbondata/pulls/2045/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/carbondata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/carbondata/pulls/2045/commits"},"statuses":{"href":"https://api.github.com/repos/apache/carbondata/statuses/8d831dce7a357158b541325255cd7cd8813d0d4d"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":85,"review_comments":19,"maintainer_can_modify":false,"commits":3,"additions":166,"deletions":66,"changed_files":11}}
{"actor":{"display_login":"asfgit"}}