android-basic-samples icon indicating copy to clipboard operation
android-basic-samples copied to clipboard

TurnBasedMatch expiration does not work.

Open TroelsN opened this issue 9 years ago • 1 comments

Scenario is a two player match where participant p_2 waits 3 weeks before taking turn. Before p_2 takes the turn, the match looks like this on the two devices:

Device 1:

Match status:           MATCH_STATUS_ACTIVE
Match turn status:      MATCH_TURN_STATUS_THEIR_TURN
Participant p_1 status: STATUS_JOINED
Participant p_2 status: STATUS_JOINED

Device 2:

Match status:           MATCH_STATUS_ACTIVE
Match turn status:      MATCH_TURN_STATUS_MY_TURN
Participant p_1 status: STATUS_JOINED
Participant p_2 status: STATUS_JOINED

So everything seems fine. Participant p_2 now takes turn on device 2:

Device 2: takeTurn returns the following UpdateMatchResult (and afterwards the match disappears from device 2):

Error code:             STATUS_MATCH_ERROR_OUT_OF_DATE_VERSION
Match status:           MATCH_STATUS_EXPIRED
Match turn status:      MATCH_TURN_STATUS_COMPLETE
Participant p_1 status: STATUS_JOINED
Participant p_2 status: STATUS_UNRESPONSIVE

Device 1: Nothing happens (not even after rebooting the device). It still looks like p_2 is having turn:

Match status:           MATCH_STATUS_ACTIVE
Match turn status:      MATCH_TURN_STATUS_THEIR_TURN
Participant p_1 status: STATUS_JOINED
Participant p_2 status: STATUS_JOINED

TroelsN avatar Oct 11 '15 15:10 TroelsN

Thanks for the detailed report. I'll pass it along.

claywilkinson avatar Oct 12 '15 14:10 claywilkinson