Pingpong example

69 views
Skip to first unread message

Assylay Sainova

unread,
Feb 22, 2015, 5:24:37 PM2/22/15
to beehi...@googlegroups.com
Hello,
I have a question regarding pingpong.go example:
In order to run it I changed 2 lines in main function, by setting the flags to True, and when I run it for the first time, it was fine. After killing it and rerunning again, I got the following error:

Error in Ping: Invalid pong: pong=0, want=8
Error in Pong: Invalid ping: ping=0, want=8

Since the apps were declared as Persistent, I expected it to work similar to helloworld.go example (the counts were saved when run next time). What might be the reasons of errors?

Thank you!
Best,
Assylay

Saman Samikermani

unread,
Feb 22, 2015, 7:13:17 PM2/22/15
to Assylay Sainova, beehi...@googlegroups.com
Hello Assylay,

I get the same error. I'm not entirely sure but I think the code is buggy. It actually saves the state as you can see it expects to receive the 8th ping. However, in the main function an empty structure(which defaults to zero) is always emitted regardless of the saved state.

Best regards,
Saman

--
You received this message because you are subscribed to the Google Groups "beehive-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beehive-dev...@googlegroups.com.
To post to this group, send email to beehi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beehive-dev/923ccb56-6f3e-4125-8343-4a7ec0be1b50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Soheil Hassas Yeganeh

unread,
Mar 2, 2015, 9:09:59 PM3/2/15
to beehi...@googlegroups.com, asyl...@gmail.com
Hi Assylay, 

I just saw these messages. That's the intended behavior for ping pong. It's for testing the optimizer and migration, and I have assumed that the state is always deleted before running this example. 

Best,
Soheil

On Sunday, February 22, 2015 at 7:13:17 PM UTC-5, Saman Sami wrote:
Hello Assylay,

I get the same error. I'm not entirely sure but I think the code is buggy. It actually saves the state as you can see it expects to receive the 8th ping. However, in the main function an empty structure(which defaults to zero) is always emitted regardless of the saved state.

Best regards,
Saman
On Sun, Feb 22, 2015 at 5:24 PM, Assylay Sainova <asyl...@gmail.com> wrote:
Hello,
I have a question regarding pingpong.go example:
In order to run it I changed 2 lines in main function, by setting the flags to True, and when I run it for the first time, it was fine. After killing it and rerunning again, I got the following error:

Error in Ping: Invalid pong: pong=0, want=8
Error in Pong: Invalid ping: ping=0, want=8

Since the apps were declared as Persistent, I expected it to work similar to helloworld.go example (the counts were saved when run next time). What might be the reasons of errors?

Thank you!
Best,
Assylay

--
You received this message because you are subscribed to the Google Groups "beehive-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beehive-dev+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages