[OPNFLWPLUG-1058] Logs being spammed with org.opendaylight.openflowplugin.impl - 0.8.0 | Switch Idle state occurred, node=/10.30.170.99:44168|auxId=0 Created: 11/Dec/18  Updated: 11/Feb/19  Resolved: 11/Feb/19

Status: Resolved
Project: OpenFlowPlugin
Component/s: openflowplugin-impl
Affects Version/s: None
Fix Version/s: Fluorine-SR2, Neon

Type: Bug Priority: Medium
Reporter: Jamo Luhrsen Assignee: Shweta Chaturvedi
Resolution: Done Votes: 0
Labels: csit, log_spam
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

in a ~2.5h CSIT job, the below message is seen 1600+ times.

47217:2018-12-10T17:22:00,630 | INFO  | ofppool-15       | SystemNotificationsListenerImpl  | 386 - org.opendaylight.openflowplugin.impl - 0.8.0 | Switch Idle state occurred, node=/10.30.170.99:44168|auxId=0

if the root cause event is expected and happening reasonably 1600+ times needs to be
understood first. If so, we should remove that log entirely or lower it's level to DEBUG or
higher so that it's not spamming a production environment with duplicate messages.

Unless I'm not seeing the true value in the message.



 Comments   
Comment by Arunprakash D [ 19/Dec/18 ]

jluhrsen, is there exceptions like "Exception while waiting for echoReply from" immediately after the log you have seen?

When the netty channel is idle for more than 15sec, SwitchIdleEvent will be generated and openflowplugin will print the info log "Switch Idle state occurred" and sends a echo message to the switch and if it didn't get reply within next 2 sec, the switch will be disconnected. If it gets reply with in 2 sec, it will continue to maintain the tcp connection.

When openflowplugin actually disconnects the switch, it will print "Exception while waiting for echoReply from". If this exception is not observed, then only the switch idle state is occuring in the setup. 

 

Comment by Jamo Luhrsen [ 19/Dec/18 ]

Apologies for not including a log. Here is a karaf log

but, no I don't see exceptions immediately after this log statement.

I'm wondering if this is related to OPENFLWPLUG-1053 / 1057?

Comment by Arunprakash D [ 06/Feb/19 ]

Shweta_Chaturvedi will raise a review to move this message from INFO to DEBUG.

Generated at Wed Feb 07 20:34:05 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.