PostCommentOnResourceAction, DeleteCommentOnResourceAction NullPointers Error

17 views
Skip to first unread message

Sayat Satybaldiev

unread,
Nov 22, 2013, 10:42:08 PM11/22/13
to BG-Social...@googlegroups.com
I'm wondering if someone experienced NullPointers Errors on PostCommentOnResourceAction, DeleteCommentOnResourceAction? We're using slightly modified SymmetricHighUpdateActions file with non zero parameters for post and delete comment actions and new BG client as well as the old produce following error:

****** Benchmarking  ********
BGClient is in onetime mode.
*****max execution time specified : 100
BG Client: ThreadCount =10

Loading workload...
0
Create fragments in workload init phase
Creating the initial zipfian probabilities...
Sum of original probs = 0.9999999999999996
Initial Zipfian probabilities are created.
Done creating clusters.
ClusterId0, 100
ZipfianMean=0.27 Usercount=100 numMaxClusters=1; 20.0% of members have, 0.5379732061994167, initial probability.
ZipfianMean=0.27 Usercount=100 numMaxClusters=1; 20.0% of members have, 0.537973206199417 clustering(new)probability.
Time to create fragments : 4 msec

After init: Fri Nov 22 19:37:34 PST 2013
EXECUTIONDONE
Connected
Starting benchmark.
 0 sec: 0 actions;  0 sec: 0 operations; 
Maximum execution time specified as: 100 secs
java.lang.NullPointerException
at edu.usc.bg.workloads.CoreWorkload.doActionPostComments(Unknown Source)
at edu.usc.bg.workloads.CoreWorkload.doTransaction(Unknown Source)
at edu.usc.bg.base.ClientThread.run(Unknown Source)
java.lang.NullPointerException
at edu.usc.bg.workloads.CoreWorkload.doActionPostComments(Unknown Source)
at edu.usc.bg.workloads.CoreWorkload.doTransaction(Unknown Source)
at edu.usc.bg.base.ClientThread.run(Unknown Source)
DONE: 0

Here's params from SymmetricHighUpdateActions file for user actions:
#user actions
ViewProfileAction=0.35
ListFriendsAction=0.05
ViewFriendReqAction=0.05
InviteFriendAction=0.04
AcceptFriendReqAction=0.02
RejectFriendReqAction=0.02
ThawFriendshipAction=0.02
ViewTopKResourcesAction=0 #switched probabilities of this two params
ViewCommentsOnResourceAction=0.1
PostCommentOnResourceAction=0.35
DeleteCommentOnResourceAction=0
ViewNewsFeedAction=0

and command arguments:
    java -Xmx1024M -cp $BG_HOME/build/bg.jar:$BG_HOME/db/MongoDB/lib/* edu.usc.bg.BGMainClass \
    onetime -t -db mongoDB.MongoDbClient \
    -P $BG_HOME/workloads/SymmetricHighUpdateActions -s \
    -p mongodb.url=$HOST_IP:27017 -p threadcount=$THREAD_COUNT -p mongodb.writeConcern=strict \
    -p mongodb.database=$DB_NAME -p exportfile=thread0.10.07.txt -p ratingmode=false \
    -p maxexecutiontime=$MAX_EXEC_TIME -p initapproach=querydata -p usercount=$USER_COUNT

Sumita Barahmand

unread,
Nov 24, 2013, 11:37:55 AM11/24/13
to BG-Social...@googlegroups.com
Hi,

Please replace -p initapproach=querydata with -p initapproach=deterministic and add the following properties to the execution command: -p numloadthreads=x (where x is the number of threads you used to load your database) and -P populateFile (the file you used to load your database).


--
You received this message because you are subscribed to the Google Groups "BG Social Benchmark" group.
To unsubscribe from this group and stop receiving emails from it, send an email to BG-SocialBenchm...@googlegroups.com.
Visit this group at http://groups.google.com/group/BG-SocialBenchmark.
For more options, visit https://groups.google.com/groups/opt_out.

Sayat Satybaldiev

unread,
Nov 24, 2013, 10:28:45 PM11/24/13
to BG-Social...@googlegroups.com
Hi Sumita,

Yep, that works! Thank you.
To unsubscribe from this group and stop receiving emails from it, send an email to BG-SocialBenchmark+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages