{"action":"closed","issue":{"url":"https://api.github.com/repos/deephacks/lmdbjni/issues/23","labels_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/23/comments","events_url":"https://api.github.com/repos/deephacks/lmdbjni/issues/23/events","html_url":"https://github.com/deephacks/lmdbjni/issues/23","id":58122314,"number":23,"title":"broken transactional patterns","user":{"login":"phraktle","id":333139,"avatar_url":"https://avatars.githubusercontent.com/u/333139?v=3","gravatar_id":"","url":"https://api.github.com/users/phraktle","html_url":"https://github.com/phraktle","followers_url":"https://api.github.com/users/phraktle/followers","following_url":"https://api.github.com/users/phraktle/following{/other_user}","gists_url":"https://api.github.com/users/phraktle/gists{/gist_id}","starred_url":"https://api.github.com/users/phraktle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phraktle/subscriptions","organizations_url":"https://api.github.com/users/phraktle/orgs","repos_url":"https://api.github.com/users/phraktle/repos","events_url":"https://api.github.com/users/phraktle/events{/privacy}","received_events_url":"https://api.github.com/users/phraktle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-02-18T20:20:16Z","updated_at":"2015-02-20T12:05:08Z","closed_at":"2015-02-20T12:05:08Z","body":"\r\nthe following pattern is broken:\r\n\r\n        Transaction tx = env.createTransaction();\r\n        try {\r\n            return put(tx, key, value, flags);\r\n        } finally {\r\n            tx.commit();\r\n        }\r\n\r\nWhen put throws an error, the commit still runs. Which causes the commit itself to throw an error, masking the original problem."}}