[ https://issues.apache.org/jira/browse/AMBARI-25609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zhiguo Wu updated AMBARI-25609: ------------------------------- Fix Version/s: 2.8.0 > sysUpTime field is populated with invalid value during SNMP trap creation > ------------------------------------------------------------------------- > > Key: AMBARI-25609 > URL: https://issues.apache.org/jira/browse/AMBARI-25609 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.7.5 > Reporter: Dmytro Vitiuk > Priority: Major > Fix For: 2.8.0, 2.7.6 > > Time Spent: 1h > Remaining Estimate: 0h > > Ambari tries to set milliseconds to the "sysUpTime" field: > [https://github.com/apache/ambari/blob/8e35277c24cc0ffd897c1dc727b2cc528cb8148b/ambari-server/src/main/java/org/apache/ambari/server/notifications/dispatchers/AmbariSNMPDispatcher.java#L120] > but this field accepts hundreds of milliseconds: > {noformat} > The time (in hundredths of a second) since the network > management portion of the system was last re-initialized. > {noformat} > ([https://tools.ietf.org/html/rfc1907#section-2.1]) > So after about 50-days in up-time an ambari server is not able to populate > "sysUpTime" with a correct value (the max value the field is able to accept > is "4294967295" - it is about 50 days in milliseconds). > Exception in ambari-server.log: > {noformat} > java.lang.IllegalArgumentException: Argument must be an unsigned 32bit value > at org.snmp4j.smi.UnsignedInteger32.setValue(UnsignedInteger32.java:144) > at org.snmp4j.smi.UnsignedInteger32.<init>(UnsignedInteger32.java:53) > at org.snmp4j.smi.TimeTicks.<init>(TimeTicks.java:58) > at > org.apache.ambari.server.notifications.dispatchers.AmbariSNMPDispatcher.prepareTrap(AmbariSNMPDispatcher.java:120) > at > org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher.sendTraps(SNMPDispatcher.java:244) > at > org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher.dispatch(SNMPDispatcher.java:157) > at > org.apache.ambari.server.notifications.DispatchRunnable.run(DispatchRunnable.java:58) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org For additional commands, e-mail: issues-h...@ambari.apache.org