Opened 17 years ago
Last modified 17 years ago
#578 closed Defect
Venue is changed if the scheduler doesn't access the database — at Initial Version
Reported by: | Kevin Reed | Owned by: | |
---|---|---|---|
Priority: | Major | Milestone: | 6.2 |
Component: | Server - Scheduler | Version: | 5.10.45 |
Keywords: | scheduler venue | Cc: |
Description
In the event that the scheduler does not access the database, for example if there is no work or if the scheduler cannot access the database, then the scheduler reply will look something like:
<scheduler_reply> <scheduler_version>601</scheduler_version> <master_url>http://worldcommunitygriddev.com/</master_url> <request_delay>3600.000000</request_delay> <message priority="low">Server can't open database </message> <project_name>World Community Grid (Dev)</project_name> </scheduler_reply> Content-type: text/plain
The field host_venue is initialized to the empty string during parsing of the response and since it is never populated (since the tag is not present), the client then uses the empty string as the value from the server. If the client had previously had a different venue set such as 'home' the client would then decide that the venue had changed and will report:
3/12/2008 8:19:24 PM|World Community Grid (Dev)|Sending scheduler request: Requested by user. Requesting 0 seconds of work, reporting 0 completed tasks 3/12/2008 8:19:29 PM|World Community Grid (Dev)|Scheduler request succeeded: got 0 new tasks 3/12/2008 8:19:29 PM|World Community Grid (Dev)|Message from server: Server can't open database 3/12/2008 8:19:29 PM|World Community Grid (Dev)|New host venue:
This will then cause the client to use the default venue rather then its assigned venue which could cause behavior on the client to change that was not desired by the member.