{"action":"created","issue":{"url":"https://api.github.com/repos/druid-io/druid/issues/1274","labels_url":"https://api.github.com/repos/druid-io/druid/issues/1274/labels{/name}","comments_url":"https://api.github.com/repos/druid-io/druid/issues/1274/comments","events_url":"https://api.github.com/repos/druid-io/druid/issues/1274/events","html_url":"https://github.com/druid-io/druid/pull/1274","id":67390380,"number":1274,"title":"Fix bug: Ensure that the last segement will be delete.","user":{"login":"b-slim","id":7376396,"avatar_url":"https://avatars.githubusercontent.com/u/7376396?v=3","gravatar_id":"","url":"https://api.github.com/users/b-slim","html_url":"https://github.com/b-slim","followers_url":"https://api.github.com/users/b-slim/followers","following_url":"https://api.github.com/users/b-slim/following{/other_user}","gists_url":"https://api.github.com/users/b-slim/gists{/gist_id}","starred_url":"https://api.github.com/users/b-slim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-slim/subscriptions","organizations_url":"https://api.github.com/users/b-slim/orgs","repos_url":"https://api.github.com/users/b-slim/repos","events_url":"https://api.github.com/users/b-slim/events{/privacy}","received_events_url":"https://api.github.com/users/b-slim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-09T15:47:15Z","updated_at":"2015-04-10T21:43:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/druid-io/druid/pulls/1274","html_url":"https://github.com/druid-io/druid/pull/1274","diff_url":"https://github.com/druid-io/druid/pull/1274.diff","patch_url":"https://github.com/druid-io/druid/pull/1274.patch"},"body":"The bug is a corner case that happens when the someone try to delete the last segment.\r\nUpon a request to delete the last segment is issued, the list of available segments is an empty set (`availableSegments.isEmpty() == true` ), the the last segments will not be dropped.\r\n"},"comment":{"url":"https://api.github.com/repos/druid-io/druid/issues/comments/91701518","html_url":"https://github.com/druid-io/druid/pull/1274#issuecomment-91701518","issue_url":"https://api.github.com/repos/druid-io/druid/issues/1274","id":91701518,"user":{"login":"gianm","id":1214075,"avatar_url":"https://avatars.githubusercontent.com/u/1214075?v=3","gravatar_id":"","url":"https://api.github.com/users/gianm","html_url":"https://github.com/gianm","followers_url":"https://api.github.com/users/gianm/followers","following_url":"https://api.github.com/users/gianm/following{/other_user}","gists_url":"https://api.github.com/users/gianm/gists{/gist_id}","starred_url":"https://api.github.com/users/gianm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianm/subscriptions","organizations_url":"https://api.github.com/users/gianm/orgs","repos_url":"https://api.github.com/users/gianm/repos","events_url":"https://api.github.com/users/gianm/events{/privacy}","received_events_url":"https://api.github.com/users/gianm/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T21:43:13Z","updated_at":"2015-04-10T21:43:13Z","body":"So :-1: unless there is another strategy in place for preventing the coordinator from doing whacky things when availableSegments is empty due to recently having gained or lost leadership."}}