{"action":"created","issue":{"url":"https://api.github.com/repos/hyperledger/sawtooth-core/issues/1570","repository_url":"https://api.github.com/repos/hyperledger/sawtooth-core","labels_url":"https://api.github.com/repos/hyperledger/sawtooth-core/issues/1570/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/sawtooth-core/issues/1570/comments","events_url":"https://api.github.com/repos/hyperledger/sawtooth-core/issues/1570/events","html_url":"https://github.com/hyperledger/sawtooth-core/pull/1570","id":313663940,"number":1570,"title":"Fix infinte loop for set & delete context state(STL-1105)","user":{"login":"rranjan3","id":37328891,"avatar_url":"https://avatars0.githubusercontent.com/u/37328891?v=4","gravatar_id":"","url":"https://api.github.com/users/rranjan3","html_url":"https://github.com/rranjan3","followers_url":"https://api.github.com/users/rranjan3/followers","following_url":"https://api.github.com/users/rranjan3/following{/other_user}","gists_url":"https://api.github.com/users/rranjan3/gists{/gist_id}","starred_url":"https://api.github.com/users/rranjan3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rranjan3/subscriptions","organizations_url":"https://api.github.com/users/rranjan3/orgs","repos_url":"https://api.github.com/users/rranjan3/repos","events_url":"https://api.github.com/users/rranjan3/events{/privacy}","received_events_url":"https://api.github.com/users/rranjan3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"peterschwarz","id":282233,"avatar_url":"https://avatars0.githubusercontent.com/u/282233?v=4","gravatar_id":"","url":"https://api.github.com/users/peterschwarz","html_url":"https://github.com/peterschwarz","followers_url":"https://api.github.com/users/peterschwarz/followers","following_url":"https://api.github.com/users/peterschwarz/following{/other_user}","gists_url":"https://api.github.com/users/peterschwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterschwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterschwarz/subscriptions","organizations_url":"https://api.github.com/users/peterschwarz/orgs","repos_url":"https://api.github.com/users/peterschwarz/repos","events_url":"https://api.github.com/users/peterschwarz/events{/privacy}","received_events_url":"https://api.github.com/users/peterschwarz/received_events","type":"User","site_admin":false},"assignees":[{"login":"peterschwarz","id":282233,"avatar_url":"https://avatars0.githubusercontent.com/u/282233?v=4","gravatar_id":"","url":"https://api.github.com/users/peterschwarz","html_url":"https://github.com/peterschwarz","followers_url":"https://api.github.com/users/peterschwarz/followers","following_url":"https://api.github.com/users/peterschwarz/following{/other_user}","gists_url":"https://api.github.com/users/peterschwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterschwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterschwarz/subscriptions","organizations_url":"https://api.github.com/users/peterschwarz/orgs","repos_url":"https://api.github.com/users/peterschwarz/repos","events_url":"https://api.github.com/users/peterschwarz/events{/privacy}","received_events_url":"https://api.github.com/users/peterschwarz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-04-12T10:18:53Z","updated_at":"2018-05-02T17:49:02Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/hyperledger/sawtooth-core/pulls/1570","html_url":"https://github.com/hyperledger/sawtooth-core/pull/1570","diff_url":"https://github.com/hyperledger/sawtooth-core/pull/1570.diff","patch_url":"https://github.com/hyperledger/sawtooth-core/pull/1570.patch"},"body":"Validator was getting into infinite loop when trying to set & delete context state in one go. Set items were being handled before the deletion which was causing some expected data to be deleted. This threw an error which kept the batch from being cleaned up. This further caused the scheduler to pick up the same batch again and again after the schedule interval(infinte loop).\r\nNow carrying out the iteration over **set_items** post iteration over **delete_items**."},"comment":{"url":"https://api.github.com/repos/hyperledger/sawtooth-core/issues/comments/386063274","html_url":"https://github.com/hyperledger/sawtooth-core/pull/1570#issuecomment-386063274","issue_url":"https://api.github.com/repos/hyperledger/sawtooth-core/issues/1570","id":386063274,"user":{"login":"peterschwarz","id":282233,"avatar_url":"https://avatars0.githubusercontent.com/u/282233?v=4","gravatar_id":"","url":"https://api.github.com/users/peterschwarz","html_url":"https://github.com/peterschwarz","followers_url":"https://api.github.com/users/peterschwarz/followers","following_url":"https://api.github.com/users/peterschwarz/following{/other_user}","gists_url":"https://api.github.com/users/peterschwarz/gists{/gist_id}","starred_url":"https://api.github.com/users/peterschwarz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterschwarz/subscriptions","organizations_url":"https://api.github.com/users/peterschwarz/orgs","repos_url":"https://api.github.com/users/peterschwarz/repos","events_url":"https://api.github.com/users/peterschwarz/events{/privacy}","received_events_url":"https://api.github.com/users/peterschwarz/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T17:49:02Z","updated_at":"2018-05-02T17:49:02Z","author_association":"CONTRIBUTOR","body":"The underlying implementation has changed in master, so this PR should be closed and reopened against `1-0-staging-01` as a backport PR.   I have added a similar test to #1609 to demonstrate that the new implementation does not demonstrate the bug."}}
{"actor":{"display_login":"peterschwarz"}}