{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/kura/issues/85","labels_url":"https://api.github.com/repos/eclipse/kura/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/kura/issues/85/comments","events_url":"https://api.github.com/repos/eclipse/kura/issues/85/events","html_url":"https://github.com/eclipse/kura/issues/85","id":125277681,"number":85,"title":"Concurrency problem in deployment agent service ?","user":{"login":"dwoodard1","id":1392274,"avatar_url":"https://avatars.githubusercontent.com/u/1392274?v=3","gravatar_id":"","url":"https://api.github.com/users/dwoodard1","html_url":"https://github.com/dwoodard1","followers_url":"https://api.github.com/users/dwoodard1/followers","following_url":"https://api.github.com/users/dwoodard1/following{/other_user}","gists_url":"https://api.github.com/users/dwoodard1/gists{/gist_id}","starred_url":"https://api.github.com/users/dwoodard1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwoodard1/subscriptions","organizations_url":"https://api.github.com/users/dwoodard1/orgs","repos_url":"https://api.github.com/users/dwoodard1/repos","events_url":"https://api.github.com/users/dwoodard1/events{/privacy}","received_events_url":"https://api.github.com/users/dwoodard1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"MMaiero","id":10448126,"avatar_url":"https://avatars.githubusercontent.com/u/10448126?v=3","gravatar_id":"","url":"https://api.github.com/users/MMaiero","html_url":"https://github.com/MMaiero","followers_url":"https://api.github.com/users/MMaiero/followers","following_url":"https://api.github.com/users/MMaiero/following{/other_user}","gists_url":"https://api.github.com/users/MMaiero/gists{/gist_id}","starred_url":"https://api.github.com/users/MMaiero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MMaiero/subscriptions","organizations_url":"https://api.github.com/users/MMaiero/orgs","repos_url":"https://api.github.com/users/MMaiero/repos","events_url":"https://api.github.com/users/MMaiero/events{/privacy}","received_events_url":"https://api.github.com/users/MMaiero/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-06T22:27:14Z","updated_at":"2016-01-12T18:23:05Z","closed_at":null,"body":"This bug was originally filed at https://bugs.eclipse.org/bugs/show_bug.cgi?id=480484.\r\n\r\nOriginal Message:\r\n\r\nHi guys !\r\n\r\nWe faced of a serious problem with the Deployment Agent service (in all version)\r\n\r\nSometimes this service is blocked and don't deploy our \".dp\". Last log we have from the service is : \r\n\r\n2015-10-23 12:59:23,389 [Component Resolve Thread (Bundle 6)] INFO  o.e.k.d.a.i.DeploymentAgent - Deploying package name io.stemys.kura.application.shopfloor at URL file:/opt/eclipse/kura/kura/packages/io.stemys.kura.application.shopfloor-0.2.0.dp\r\n\r\nAnd nothing else.\r\n\r\nWhen it's works we have the next log message :\r\n\r\n2015-10-23 12:59:23,392 [DeploymentAgent] INFO  o.e.k.d.a.i.DeploymentAgent - About to install package at URL file:/opt/eclipse/kura/kura/packages/io.stemys.kura.application.shopfloor-0.2.0.dp\r\n\r\nIt's really random. We look at the code to see what is between these two log messages and we think the problem come from the synchronized part on \"m_instPackageUrls\"\r\n\r\nThe synchronized part on a ConcurrentLinkedQueue is really necessary ? We remove it and  the problem was resolved for us.\r\n\r\nWe never saw this problem before but now that we installed Kura on a powerfull device (core i7 / 16 Gb ram / SSD / ...) we have the problem.\r\n\r\nThanks in advance for your job !\r\n\r\n\r\n\r\n\r\nHello,\r\n\r\nIt is hard to comment on this without knowing your application. I believe the synchronization block is necessary when attempting to install the deployment package. A couple of questions:\r\n\r\n1. When you see this issue, are you also getting error in the log files (/var/log/kura.log and /var/log/kura-console.log)?\r\n2. Do you have any potential long running processes in your bundle activate methods? This can often cause issues when activating bundles. \r\n\r\nThanks,\r\n--Dave"},"comment":{"url":"https://api.github.com/repos/eclipse/kura/issues/comments/171001840","html_url":"https://github.com/eclipse/kura/issues/85#issuecomment-171001840","issue_url":"https://api.github.com/repos/eclipse/kura/issues/85","id":171001840,"user":{"login":"MMaiero","id":10448126,"avatar_url":"https://avatars.githubusercontent.com/u/10448126?v=3","gravatar_id":"","url":"https://api.github.com/users/MMaiero","html_url":"https://github.com/MMaiero","followers_url":"https://api.github.com/users/MMaiero/followers","following_url":"https://api.github.com/users/MMaiero/following{/other_user}","gists_url":"https://api.github.com/users/MMaiero/gists{/gist_id}","starred_url":"https://api.github.com/users/MMaiero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MMaiero/subscriptions","organizations_url":"https://api.github.com/users/MMaiero/orgs","repos_url":"https://api.github.com/users/MMaiero/repos","events_url":"https://api.github.com/users/MMaiero/events{/privacy}","received_events_url":"https://api.github.com/users/MMaiero/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T18:23:05Z","updated_at":"2016-01-12T18:23:05Z","body":"Modified Kura code in release-1.4.0 branch, in order to try to prevent this error.\r\n"}}