{"action":"opened","issue":{"url":"https://api.github.com/repos/Cloudslab/cloudsim/issues/84","repository_url":"https://api.github.com/repos/Cloudslab/cloudsim","labels_url":"https://api.github.com/repos/Cloudslab/cloudsim/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/Cloudslab/cloudsim/issues/84/comments","events_url":"https://api.github.com/repos/Cloudslab/cloudsim/issues/84/events","html_url":"https://github.com/Cloudslab/cloudsim/issues/84","id":194080742,"number":84,"title":"NetworkCloudletSpaceSharedScheduler and DataCenter exchange problem","user":{"login":"wmedali","id":23320355,"avatar_url":"https://avatars.githubusercontent.com/u/23320355?v=3","gravatar_id":"","url":"https://api.github.com/users/wmedali","html_url":"https://github.com/wmedali","followers_url":"https://api.github.com/users/wmedali/followers","following_url":"https://api.github.com/users/wmedali/following{/other_user}","gists_url":"https://api.github.com/users/wmedali/gists{/gist_id}","starred_url":"https://api.github.com/users/wmedali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmedali/subscriptions","organizations_url":"https://api.github.com/users/wmedali/orgs","repos_url":"https://api.github.com/users/wmedali/repos","events_url":"https://api.github.com/users/wmedali/events{/privacy}","received_events_url":"https://api.github.com/users/wmedali/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T15:31:53Z","updated_at":"2016-12-07T15:31:53Z","closed_at":null,"body":"Hello, i think it might be a probleme in the exchange between the scheduler and datacenter of networkcloudsim.\r\n\r\nwhen a cloudlet is submitted by the broker, it is processed by the datacenter's method processCloudletSubmit. if the cloudlet hasn't finished execution yet, it is sent to the scheduler by the instruction\r\n\r\ndouble estimatedFinishTime = scheduler.cloudletSubmit(cl, fileTransferTime);\r\n\r\nif the VM is not currently available to process the cloudlet, the value returned by the method cloudletSubmit of NetworkCloudletSpaceSharedScheduler must be > 0 so the datacenter cand process it again\r\nif (estimatedFinishTime > 0.0 && !Double.isInfinite(estimatedFinishTime)) {\r\n\t\t\t\testimatedFinishTime += fileTransferTime;\r\n\t\t\t\tsend(getId(), estimatedFinishTime, CloudSimTags.VM_DATACENTER_EVENT);\r\n\t\t\t}\r\n\r\nThe issue here is that the method cloudletSubmit returns 0.0 in case of there not enough pes and the cloudlet goes to the queue list\r\n\r\n else {\r\n\t\t\tResCloudlet rcl = new ResCloudlet(cloudlet);\r\n\t\t\trcl.setCloudletStatus(Cloudlet.QUEUED);\r\n\t\t\tgetCloudletWaitingList().add(rcl);\r\n\t\t\t**return 0.0;**\r\n\t\t}\r\n"}}
{"actor":{"display_login":"wmedali"}}