Bug with buddy system offline variable

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

seeingrain
Posts: 28
Joined: 27 Mar 2014, 03:34

Bug with buddy system offline variable

Postby seeingrain » 17 Feb 2016, 06:56

Hi, Admin,
We have deployed our extension based on SmartFox 2.9.0. Now we are doing volume test using dozens of concurrent client threads. The client is implemented using C++ API. The client only do one thing: login and logout, using thousands of test users. The client connection pool has 30 SmartFox's instances, the users will be used rolling from first user to the final user.
The test result is: we always got some CONNECTION_LOST during testing!!! The probability is around 3%, that is we got around 3 CONNCTION_LOST every 100 connection. Deep into the server's log, we found, all bad connections have the same behaviour:
1) the client always got timeout during login (about 30 seconds), and then initiate a close connection request to server. In fact, the connection still exist, we can see client's request from server log.
1) the Login() callback was invoked, the the function returned (we print log)
2) the ZoneJoin() callback was NOT invoked, the callback also print log as soon as callback is invoked. we didn't see the log.
3) we cannot see SFS server's log: "User login: { Zone: UDK }, ( User Name: vt_user_129845, Id: 23846, Priv: 0, Sess: 168.168.113.53:18676 ) , Type: C++ API". However we can always see such log in a success login.
4) We can see the exception:
QQ截图20160217144916.png
Exception log from server
(34.91 KiB) Not downloaded yet

So, we conclude there must be something wrong between LOGIN & JOINZONE inside SFS platform and NOT in our extension app level.

From the clue of exception log, we tried disabling buddy system's offline variable feature in the zone, we then never see a CONNECTION_LOST!!!
So, it is obvious that something is wrong with buddy's offline variable during concurrent volume test. Are you able to reoccur this and fix?
Thank you~
seeingrain
Posts: 28
Joined: 27 Mar 2014, 03:34

Re: Bug with buddy system offline variable

Postby seeingrain » 17 Feb 2016, 10:19

More clue about this bug. we have 500000 test users in the server, each user have 4 offline variables
seeingrain
Posts: 28
Joined: 27 Mar 2014, 03:34

Re: Bug with buddy system offline variable

Postby seeingrain » 17 Feb 2016, 10:22

BTW: we didn't implement a custom storage class, we use system default.

I also searched the forum, a developer seems encounter the same issue:
viewtopic.php?f=18&t=16521&p=71131&hilit=buddy+bug#p71080
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Bug with buddy system offline variable

Postby Lapo » 17 Feb 2016, 11:11

Hi,
thanks for the details.
We're not able to reproduce the problem via login stress tests, but we have found a possible issue while stress testing the variable cache implementation that seems to be causing the exception.

I think we should be able to fix the problem within the current week and send you a patch to test.

Please get in touch with us directly by sending an email to our support@ address, with a reference to this discussion. We will send the patch back during the next days.

Thank you
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 43 guests