| Summary: | [watchman] ArgumentError when parsing date | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Kenny Woodson <kwoodson> |
| Component: | Containers | Assignee: | Michal Fojtik <mfojtik> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | bmeng, mfojtik |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-19 16:47:32 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Kenny Woodson
2013-08-20 21:44:30 UTC
Here is the specific line that is killing the parser:
---------
2013/02013/05/13 12:24:45,313 ERROR [stderr] (Thread-0 (HornetQ-scheduled-threads-33041257)) Exception in thread "Thread-0 (HornetQ-scheduled-threads-33041257)" java.lang.OutOfMemoryError: unable to create new native thread
---------
This happens on the strptime call:
------------
File.open(server_log).grep(/ java.lang.OutOfMemoryError/) {|msg|
Syslog.info("MSG => #{msg}") #DEBUG
# timezones are just a PITA. server.log message doesn't include timezone or date so inject both from today
ts = DateTime.strptime(msg, '%Y/%m/%d %T')
timestamp = DateTime.civil(ts.year, ts.month, ts.day, ts.hour, ts.min, ts.sec, epoch.zone)
next if epoch > timestamp.
cache_incident(uuid, timestamp, app_env)
}
-------------
The file that is causing the problem: /var/lib/openshift/518809f74382ec8dfb000015/jbossas//logs/server.log I have fix which make watchman ignore the invalid timestamps with a warning dumped to syslog: https://github.com/openshift/li/pull/1843 Aug 30 10:11:44 ex-std-node74 rhc-watchman[15274]: watchman caught #<ArgumentError: invalid date>: invalid date. Retries left: 0 We are still seeing this issue in production on a few of our nodes. I added some debugging inside of watchman to see where it was failing. I see its failing to parse the java server.log Aug 30 10:51:54 ex-std-node148 rhc-watchman[25453]: PROBLEM PARSING: /var/lib/openshift/518809f74382ec8dfb000015/jbossas//logs/server.log Here is the actual line it is failing on. 2013/02013/05/13 12:24:45,313 ERROR [stderr] (Thread-0 (HornetQ-scheduled-threads-33041257)) Exception in thread "Thread-0 (HornetQ-scheduled-threads-33041257)" java.lang.OutOfMemoryError: unable to create new native thread ./rhc-watchman:156:in `strptime' Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/bac7a1dfb4af4765815aadaf51c9a134c8ab3575 Bug 999183 - Make rhc-watchman ignore messages with invalid timestamp Checked on devenv_3745, With about 50 jbossas apps on node. Modify the timestamp for the server.log to some invalid value. Like the comment#4. Restart the gear. Watch the /var/log/messages There is no date related error, and the rhc-watchman did not restart. Move bug to verified. |