Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

investigate duplicate MQTT timer directives #1045

Closed
jflamy opened this issue Jul 13, 2024 · 1 comment
Closed

investigate duplicate MQTT timer directives #1045

jflamy opened this issue Jul 13, 2024 · 1 comment
Assignees
Labels
L2 problem competition could take place, possible workaround

Comments

@jflamy
Copy link
Owner

jflamy commented Jul 13, 2024

Also suspicious timing (second request causing timer to terminate prematurely?)

17:12:13.216 INFO  FOP A    current athlete = #14 Loughran I. attempt = 5, requested = 76, clock=60000 initialTime=60000 
17:12:25.755 INFO  FOP A    MQTT received owlcms/clock/A : start                               
17:12:25.755 INFO  FOP A    MQTT received owlcms/clock/A : start                               
17:12:25.755 INFO  FOP A    state CURRENT_ATHLETE_DISPLAYED, event received app.owlcms.fieldofplay.FOPEvent$TimeStarted@45bd57cb from pp.owlcms.monitors.MQTTMonitor$MQTTCallback.postFopTimeEvents(MQTTMonitor.java:267) 
17:12:25.755 INFO  FOP A    setting clock owner to 3.14_Loughran_Isabelle_id1803410766905700065_695522042 [(FieldOfPlay.java:2829)] 
17:12:25.755 DEBUG FOP A     + lastChallengedRecords []                                        
17:12:25.755 DEBUG FOP A    **** resetting all decisions on new clock                          
17:12:25.755 INFO  FOP A    entering TIME_RUNNING (FieldOfPlay.java:2844)                      
17:12:25.755 DEBUG FOP A    MQTT resetDecisions                                                
17:12:25.756 INFO  FOP A    running 1:00                                                       
17:12:25.756 INFO  FOP A    state TIME_RUNNING, event received app.owlcms.fieldofplay.FOPEvent$TimeStarted@2196fd54 from pp.owlcms.monitors.MQTTMonitor$MQTTCallback.postFopTimeEvents(MQTTMonitor.java:267) 
17:12:25.756 INFO  FOP A    running 1:00                                                       
17:12:34.215 INFO  FOP A    +++++ running final warning                                        
17:12:34.215 INFO  FOP A    Final Warning                                                      
17:12:34.215 DEBUG FOP A    MQTT timeRemaining 30
@jflamy jflamy added the L2 problem competition could take place, possible workaround label Jul 13, 2024
@jflamy
Copy link
Owner Author

jflamy commented Jul 15, 2024

@scottgonzalez

  1. do you have a log file with the logging location at the end?
  2. can you check if 30 seconds before the final warning there was a timer started. There seems to be debouncing missing, and if multiple timers are running they might not all be cancelled out (which is an hypothesis about how the final warning timer could be produced).

I will need to log the unique id of the timer tasks (System.identityHashCode()) so we can see they are created and killed correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 problem competition could take place, possible workaround
Projects
Archived in project
Development

No branches or pull requests

2 participants