Thread 'upload results doesn't trigger function assimilate_handler()'

Message boards : Server programs : upload results doesn't trigger function assimilate_handler()
Message board moderation

To post messages, you must log in.

AuthorMessage
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 18322 - Posted: 9 Jul 2008, 15:00:57 UTC
Last modified: 9 Jul 2008, 15:02:51 UTC

I am testing app 'uppercase' and try to hook the upload results inside assimlator_handler yet it seems to be blind to the results. The client did upload the results successfully.

I add some useless code inside the function to see whether boinc trigger this function, yet it didn't.
The assimilator is running well.

The code i add is as below:

int assimilate_handler(
WORKUNIT& wu, vector<RESULT>& /*results*/, RESULT& canonical_result
) {
// -------test started

char test[256]="../error.txt";
int temp=write_error(test);
if(temp)
{
perror("create file failed");
}


//--------test finished

--------------

-------------
}

Also I checked the log of the assimilator but it has no information recorded after the daemon started.

I have some guesses on reasons for the problem:
1. The upload results is not qualified for trigger the function.
2. I disabled this function.
3. I don't have the permission (yet I use 'chmod 777' to all folders inside project directory, which should be good enough'.

Does anyone meet this before? Or could anyone give me some testing code or idea for how-to debug this assimilator? Or may be to enable the trigger if it is disabled.

Any idea is appreciated.
ID: 18322 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 18331 - Posted: 9 Jul 2008, 20:06:19 UTC - in response to Message 18322.  
Last modified: 9 Jul 2008, 20:07:41 UTC

Thanks for those concern the post.
I add sample_trival_assimilator to config.xml and fix the problem. It is mentioned in unofficial wiki that a validator would create canonical results which would be used in an assimilator. I think they have to run at the same time. This seems not be documented officially in boinc website.

Also one interesting thing was that when I didn't add validator to the application before, the assimilaor did run randomly to report error log (maybe 1 out of 10 tries). I don't know whether it is a bug or not.

Hope this helps the newcomers
ID: 18331 · Report as offensive

Message boards : Server programs : upload results doesn't trigger function assimilate_handler()

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.