{"action":"created","issue":{"url":"https://api.github.com/repos/Dutzel/TTV-Lab2/issues/10","repository_url":"https://api.github.com/repos/Dutzel/TTV-Lab2","labels_url":"https://api.github.com/repos/Dutzel/TTV-Lab2/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Dutzel/TTV-Lab2/issues/10/comments","events_url":"https://api.github.com/repos/Dutzel/TTV-Lab2/issues/10/events","html_url":"https://github.com/Dutzel/TTV-Lab2/issues/10","id":282114752,"number":10,"title":"transaktionsid prüfen","user":{"login":"fabianHAW","id":5648818,"avatar_url":"https://avatars0.githubusercontent.com/u/5648818?v=4","gravatar_id":"","url":"https://api.github.com/users/fabianHAW","html_url":"https://github.com/fabianHAW","followers_url":"https://api.github.com/users/fabianHAW/followers","following_url":"https://api.github.com/users/fabianHAW/following{/other_user}","gists_url":"https://api.github.com/users/fabianHAW/gists{/gist_id}","starred_url":"https://api.github.com/users/fabianHAW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabianHAW/subscriptions","organizations_url":"https://api.github.com/users/fabianHAW/orgs","repos_url":"https://api.github.com/users/fabianHAW/repos","events_url":"https://api.github.com/users/fabianHAW/events{/privacy}","received_events_url":"https://api.github.com/users/fabianHAW/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"Dutzel","id":17947422,"avatar_url":"https://avatars3.githubusercontent.com/u/17947422?v=4","gravatar_id":"","url":"https://api.github.com/users/Dutzel","html_url":"https://github.com/Dutzel","followers_url":"https://api.github.com/users/Dutzel/followers","following_url":"https://api.github.com/users/Dutzel/following{/other_user}","gists_url":"https://api.github.com/users/Dutzel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dutzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dutzel/subscriptions","organizations_url":"https://api.github.com/users/Dutzel/orgs","repos_url":"https://api.github.com/users/Dutzel/repos","events_url":"https://api.github.com/users/Dutzel/events{/privacy}","received_events_url":"https://api.github.com/users/Dutzel/received_events","type":"User","site_admin":false},"assignees":[{"login":"Dutzel","id":17947422,"avatar_url":"https://avatars3.githubusercontent.com/u/17947422?v=4","gravatar_id":"","url":"https://api.github.com/users/Dutzel","html_url":"https://github.com/Dutzel","followers_url":"https://api.github.com/users/Dutzel/followers","following_url":"https://api.github.com/users/Dutzel/following{/other_user}","gists_url":"https://api.github.com/users/Dutzel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dutzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dutzel/subscriptions","organizations_url":"https://api.github.com/users/Dutzel/orgs","repos_url":"https://api.github.com/users/Dutzel/repos","events_url":"https://api.github.com/users/Dutzel/events{/privacy}","received_events_url":"https://api.github.com/users/Dutzel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-12-14T14:15:19Z","updated_at":"2017-12-29T11:29:52Z","closed_at":null,"author_association":"COLLABORATOR","body":"prüfen der transaktionsid, ob die reihenfolge stimmt. prüfe ob die erhaltene ta id in NodeImpl.broadcast() fortlaufend ist. ist sie identisch mit der gespeicherten id, dann verwerfe den broadcast."},"comment":{"url":"https://api.github.com/repos/Dutzel/TTV-Lab2/issues/comments/354434501","html_url":"https://github.com/Dutzel/TTV-Lab2/issues/10#issuecomment-354434501","issue_url":"https://api.github.com/repos/Dutzel/TTV-Lab2/issues/10","id":354434501,"user":{"login":"Dutzel","id":17947422,"avatar_url":"https://avatars3.githubusercontent.com/u/17947422?v=4","gravatar_id":"","url":"https://api.github.com/users/Dutzel","html_url":"https://github.com/Dutzel","followers_url":"https://api.github.com/users/Dutzel/followers","following_url":"https://api.github.com/users/Dutzel/following{/other_user}","gists_url":"https://api.github.com/users/Dutzel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dutzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dutzel/subscriptions","organizations_url":"https://api.github.com/users/Dutzel/orgs","repos_url":"https://api.github.com/users/Dutzel/repos","events_url":"https://api.github.com/users/Dutzel/events{/privacy}","received_events_url":"https://api.github.com/users/Dutzel/received_events","type":"User","site_admin":false},"created_at":"2017-12-29T11:29:52Z","updated_at":"2017-12-29T11:29:52Z","author_association":"OWNER","body":"/**\r\n\t\t * GIT Issue: #10\r\n\t\t * Here we check, if a received transaction id was already forwarded.\r\n\t\t * If a transaction id was allready forwarded, we discard the boradcast.\r\n\t\t * Status: done\r\n\t\t */\r\n\t\tif(!alreadyForwardedTransactionIDs.contains(info.getTransaction())){\r\n\t\t\talreadyForwardedTransactionIDs.add(info.getTransaction());\r\n\t\t\t\r\n\t\t\tList<Node> sortedFingerTable = this.impl.getSortedFingerTable();\r\n\t\r\n\t\t\t// 2. case: broadcast comes from another node\r\n\t\t\tif(!this.getNodeID().equals(info.getSource())){\r\n\t\t\t\t// inform application\r\n\t\t\t\tif (this.notifyCallback != null) {\r\n\t\t\t\t\tif (this.logger.isEnabledFor(DEBUG)) {\r\n\t\t\t\t\t\tthis.logger.debug(\"Inform my application about the broadcast from another node: \" + info.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.notifyCallback.broadcast(info.getSource(), info.getTarget(), info.getHit());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.sendBroadcast(sortedFingerTable, 0, info);\r\n\t\t}else{\r\n\t\t\tif (this.logger.isEnabledFor(DEBUG)) {\r\n\t\t\t\t//System.err.println(\"Ignored transaction \" + info.getTransaction() + \", because it was already forwarded.\");\r\n\t\t\t\t//this.logger.debug(\"Ignored transaction \" + info.getTransaction() + \", because it was already forwarded.\");\r\n\t\t\t}\r\n\t\t}"}}
{"actor":{"display_login":"Dutzel"}}