{"action":"opened","issue":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/22654","repository_url":"https://api.github.com/repos/mantidproject/mantid","labels_url":"https://api.github.com/repos/mantidproject/mantid/issues/22654/labels{/name}","comments_url":"https://api.github.com/repos/mantidproject/mantid/issues/22654/comments","events_url":"https://api.github.com/repos/mantidproject/mantid/issues/22654/events","html_url":"https://github.com/mantidproject/mantid/issues/22654","id":334917854,"node_id":"MDU6SXNzdWUzMzQ5MTc4NTQ=","number":22654,"title":"Kafka Live Listener causes Mantid crash when number of periods changes between runs","user":{"login":"matthew-d-jones","id":13455433,"node_id":"MDQ6VXNlcjEzNDU1NDMz","avatar_url":"https://avatars2.githubusercontent.com/u/13455433?v=4","gravatar_id":"","url":"https://api.github.com/users/matthew-d-jones","html_url":"https://github.com/matthew-d-jones","followers_url":"https://api.github.com/users/matthew-d-jones/followers","following_url":"https://api.github.com/users/matthew-d-jones/following{/other_user}","gists_url":"https://api.github.com/users/matthew-d-jones/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-d-jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-d-jones/subscriptions","organizations_url":"https://api.github.com/users/matthew-d-jones/orgs","repos_url":"https://api.github.com/users/matthew-d-jones/repos","events_url":"https://api.github.com/users/matthew-d-jones/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-d-jones/received_events","type":"User","site_admin":false},"labels":[{"id":40046083,"node_id":"MDU6TGFiZWw0MDA0NjA4Mw==","url":"https://api.github.com/repos/mantidproject/mantid/labels/Misc:%20Bug","name":"Misc: Bug","color":"d4c5f9","default":false},{"id":35408850,"node_id":"MDU6TGFiZWwzNTQwODg1MA==","url":"https://api.github.com/repos/mantidproject/mantid/labels/Priority:%20High","name":"Priority: High","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"ElliotAOram","id":13132128,"node_id":"MDQ6VXNlcjEzMTMyMTI4","avatar_url":"https://avatars2.githubusercontent.com/u/13132128?v=4","gravatar_id":"","url":"https://api.github.com/users/ElliotAOram","html_url":"https://github.com/ElliotAOram","followers_url":"https://api.github.com/users/ElliotAOram/followers","following_url":"https://api.github.com/users/ElliotAOram/following{/other_user}","gists_url":"https://api.github.com/users/ElliotAOram/gists{/gist_id}","starred_url":"https://api.github.com/users/ElliotAOram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElliotAOram/subscriptions","organizations_url":"https://api.github.com/users/ElliotAOram/orgs","repos_url":"https://api.github.com/users/ElliotAOram/repos","events_url":"https://api.github.com/users/ElliotAOram/events{/privacy}","received_events_url":"https://api.github.com/users/ElliotAOram/received_events","type":"User","site_admin":false},"assignees":[{"login":"ElliotAOram","id":13132128,"node_id":"MDQ6VXNlcjEzMTMyMTI4","avatar_url":"https://avatars2.githubusercontent.com/u/13132128?v=4","gravatar_id":"","url":"https://api.github.com/users/ElliotAOram","html_url":"https://github.com/ElliotAOram","followers_url":"https://api.github.com/users/ElliotAOram/followers","following_url":"https://api.github.com/users/ElliotAOram/following{/other_user}","gists_url":"https://api.github.com/users/ElliotAOram/gists{/gist_id}","starred_url":"https://api.github.com/users/ElliotAOram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElliotAOram/subscriptions","organizations_url":"https://api.github.com/users/ElliotAOram/orgs","repos_url":"https://api.github.com/users/ElliotAOram/repos","events_url":"https://api.github.com/users/ElliotAOram/events{/privacy}","received_events_url":"https://api.github.com/users/ElliotAOram/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/mantidproject/mantid/milestones/67","html_url":"https://github.com/mantidproject/mantid/milestone/67","labels_url":"https://api.github.com/repos/mantidproject/mantid/milestones/67/labels","id":3113719,"node_id":"MDk6TWlsZXN0b25lMzExMzcxOQ==","number":67,"title":"Release 3.13","description":"Code Freeze: 29th June\r\nBeta Test: 3rd-17th July","creator":{"login":"NickDraper","id":1017173,"node_id":"MDQ6VXNlcjEwMTcxNzM=","avatar_url":"https://avatars1.githubusercontent.com/u/1017173?v=4","gravatar_id":"","url":"https://api.github.com/users/NickDraper","html_url":"https://github.com/NickDraper","followers_url":"https://api.github.com/users/NickDraper/followers","following_url":"https://api.github.com/users/NickDraper/following{/other_user}","gists_url":"https://api.github.com/users/NickDraper/gists{/gist_id}","starred_url":"https://api.github.com/users/NickDraper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickDraper/subscriptions","organizations_url":"https://api.github.com/users/NickDraper/orgs","repos_url":"https://api.github.com/users/NickDraper/repos","events_url":"https://api.github.com/users/NickDraper/events{/privacy}","received_events_url":"https://api.github.com/users/NickDraper/received_events","type":"User","site_admin":false},"open_issues":268,"closed_issues":388,"state":"open","created_at":"2018-02-13T15:37:12Z","updated_at":"2018-06-22T15:18:12Z","due_on":"2018-07-23T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-06-22T15:18:12Z","updated_at":"2018-06-22T15:18:12Z","closed_at":null,"author_association":"MEMBER","body":"<!-- TEMPLATE FOR BUG REPORTS -->\r\n\r\n**Original reporter:** ISIS/Rob Dalgliesh\r\n\r\n### Expected behavior\r\n\r\nWhen the number of periods changes between runs, a new workspace group should be created containing one workspace per period for the, possibly changed, number of periods.\r\n\r\n### Actual behavior\r\n\r\n\"If you start a live view when e.g. larmor running say 2 periods and then they change to a higher number of periods in the next run it crashes mantid. If you start the live view when it has a higher number of periods, it doesn’t crash when the instrument changes to a lower number of periods but you are left with a lot of blank workspaces for the undefined periods.\"\r\n\r\n### Steps to reproduce the behavior\r\nIt should be possible to create a test which reproduces the behaviour. See `mantid/Framework/LiveData/test/KafkaEventStreamDecoderTest.h` for similar tests which fake the Kafka interface. Fakes are in `mantid/Framework/LiveData/test/KafkaTesting.h`.\r\n\r\n### Platforms affected\r\nAll"}}
{"actor":{"display_login":"matthew-d-jones"}}