{"action":"created","issue":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1975","repository_url":"https://api.github.com/repos/Graylog2/graylog2-server","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1975/labels{/name}","comments_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1975/comments","events_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1975/events","html_url":"https://github.com/Graylog2/graylog2-server/issues/1975","id":143281774,"number":1975,"title":"Index Range lost when index is closed","user":{"login":"dennisoelkers","id":41929,"avatar_url":"https://avatars.githubusercontent.com/u/41929?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisoelkers","html_url":"https://github.com/dennisoelkers","followers_url":"https://api.github.com/users/dennisoelkers/followers","following_url":"https://api.github.com/users/dennisoelkers/following{/other_user}","gists_url":"https://api.github.com/users/dennisoelkers/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisoelkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisoelkers/subscriptions","organizations_url":"https://api.github.com/users/dennisoelkers/orgs","repos_url":"https://api.github.com/users/dennisoelkers/repos","events_url":"https://api.github.com/users/dennisoelkers/events{/privacy}","received_events_url":"https://api.github.com/users/dennisoelkers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/P3","name":"P3","color":"c7def8"},{"url":"https://api.github.com/repos/Graylog2/graylog2-server/labels/S3","name":"S3","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/milestones/46","html_url":"https://github.com/Graylog2/graylog2-server/milestones/2.0.0","labels_url":"https://api.github.com/repos/Graylog2/graylog2-server/milestones/46/labels","id":1451974,"number":46,"title":"2.0.0","description":"","creator":{"login":"kroepke","id":52014,"avatar_url":"https://avatars.githubusercontent.com/u/52014?v=3","gravatar_id":"","url":"https://api.github.com/users/kroepke","html_url":"https://github.com/kroepke","followers_url":"https://api.github.com/users/kroepke/followers","following_url":"https://api.github.com/users/kroepke/following{/other_user}","gists_url":"https://api.github.com/users/kroepke/gists{/gist_id}","starred_url":"https://api.github.com/users/kroepke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroepke/subscriptions","organizations_url":"https://api.github.com/users/kroepke/orgs","repos_url":"https://api.github.com/users/kroepke/repos","events_url":"https://api.github.com/users/kroepke/events{/privacy}","received_events_url":"https://api.github.com/users/kroepke/received_events","type":"User","site_admin":false},"open_issues":43,"closed_issues":176,"state":"open","created_at":"2015-12-09T14:24:24Z","updated_at":"2016-03-24T17:05:49Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-24T15:43:33Z","updated_at":"2016-03-24T18:25:14Z","closed_at":null,"body":"### Problem description\r\n\r\nWhen an index is closed, there is no index range available anymore afterwards. This makes it hard for users to determine, which \"historic\" index they need to reopen to have data for a specific time range available again.\r\n\r\nA proposed solution would be to merge old index ranges into newly calculated ones for closed indices, to keep old index ranges for closed indices (which should not change anymore) around.\r\n\r\n### Steps to reproduce the problem\r\n\r\n1. Go to indices page on web interface\r\n2. Close an arbitrary index\r\n3. See that \"Time range of index is unknown, because index range is not available. Please recalculate index ranges manually.\"\r\n\r\nOptional:\r\n4. Click Maintenance -> Recalculate Index Ranges\r\n5. See that nothing changes\r\n\r\n### Environment\r\n\r\n* Graylog Version: Graylog 2.0.0-beta.2-SNAPSHOT (9c0846cf71b96735239488523d8f65863c219145e)\r\n* Elasticsearch Version:\r\n* MongoDB Version:\r\n* Operating System:\r\n* Browser version:"},"comment":{"url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/comments/200959870","html_url":"https://github.com/Graylog2/graylog2-server/issues/1975#issuecomment-200959870","issue_url":"https://api.github.com/repos/Graylog2/graylog2-server/issues/1975","id":200959870,"user":{"login":"dennisoelkers","id":41929,"avatar_url":"https://avatars.githubusercontent.com/u/41929?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisoelkers","html_url":"https://github.com/dennisoelkers","followers_url":"https://api.github.com/users/dennisoelkers/followers","following_url":"https://api.github.com/users/dennisoelkers/following{/other_user}","gists_url":"https://api.github.com/users/dennisoelkers/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisoelkers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisoelkers/subscriptions","organizations_url":"https://api.github.com/users/dennisoelkers/orgs","repos_url":"https://api.github.com/users/dennisoelkers/repos","events_url":"https://api.github.com/users/dennisoelkers/events{/privacy}","received_events_url":"https://api.github.com/users/dennisoelkers/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T18:25:14Z","updated_at":"2016-03-24T18:25:14Z","body":"Related to https://github.com/Graylog2/graylog2-server/blob/master/graylog2-server/src/main/java/org/graylog2/indexer/ranges/MongoIndexRangeService.java#L138 so this is done on purpose. Need to investigate if it makes sense to restructure closing indices/recalculating index ranges."}}