{"action":"created","issue":{"url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1193","repository_url":"https://api.github.com/repos/OpenGrok/OpenGrok","labels_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1193/labels{/name}","comments_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1193/comments","events_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1193/events","html_url":"https://github.com/OpenGrok/OpenGrok/issues/1193","id":179212773,"number":1193,"title":"GitHistoryParser: Unparseable date ","user":{"login":"aemyllius","id":22136327,"avatar_url":"https://avatars.githubusercontent.com/u/22136327?v=3","gravatar_id":"","url":"https://api.github.com/users/aemyllius","html_url":"https://github.com/aemyllius","followers_url":"https://api.github.com/users/aemyllius/followers","following_url":"https://api.github.com/users/aemyllius/following{/other_user}","gists_url":"https://api.github.com/users/aemyllius/gists{/gist_id}","starred_url":"https://api.github.com/users/aemyllius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aemyllius/subscriptions","organizations_url":"https://api.github.com/users/aemyllius/orgs","repos_url":"https://api.github.com/users/aemyllius/repos","events_url":"https://api.github.com/users/aemyllius/events{/privacy}","received_events_url":"https://api.github.com/users/aemyllius/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenGrok/OpenGrok/labels/stopper","name":"stopper","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/OpenGrok/OpenGrok/milestones/2","html_url":"https://github.com/OpenGrok/OpenGrok/milestones/0.13","labels_url":"https://api.github.com/repos/OpenGrok/OpenGrok/milestones/2/labels","id":360045,"number":2,"title":"0.13","description":"0.13 release","creator":{"login":"vladak","id":2934284,"avatar_url":"https://avatars.githubusercontent.com/u/2934284?v=3","gravatar_id":"","url":"https://api.github.com/users/vladak","html_url":"https://github.com/vladak","followers_url":"https://api.github.com/users/vladak/followers","following_url":"https://api.github.com/users/vladak/following{/other_user}","gists_url":"https://api.github.com/users/vladak/gists{/gist_id}","starred_url":"https://api.github.com/users/vladak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladak/subscriptions","organizations_url":"https://api.github.com/users/vladak/orgs","repos_url":"https://api.github.com/users/vladak/repos","events_url":"https://api.github.com/users/vladak/events{/privacy}","received_events_url":"https://api.github.com/users/vladak/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":153,"state":"open","created_at":"2013-06-20T10:24:36Z","updated_at":"2016-09-27T13:00:12Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-09-26T12:17:57Z","updated_at":"2016-09-27T14:45:59Z","closed_at":null,"body":"Git history retrieval hits an error when trying to parse the date from git log. On the whole index generation, it only hits this error in about 20% of the cases. The issue is that once this error is hit, **the file is not indexed anymore**. This is the crucial point.\r\n\r\n\r\nInitially file seems to be analyzed by good analyzer. When checking indexing results, the file exists in index, but has no contents.\r\n```\r\nSep 26, 2016 2:07:37 PM org.opensolaris.opengrok.index.DefaultIndexChangedListener fileAdd\r\nINFO: Add: <FILE-NAME-CHANGED>.cs (CSharpAnalyzer)\r\nSep 26, 2016 2:07:37 PM org.opensolaris.opengrok.history.GitHistoryParser process\r\nWARNING: Failed to parse author date: AuthorDate: Sat Dec 20 03:25:39 2014\r\njava.text.ParseException: Unparseable date: \"Sat Dec 20 03:25:39 2014\"\r\n        at java.text.DateFormat.parse(Unknown Source)\r\n        at org.opensolaris.opengrok.history.GitHistoryParser.process(GitHistoryParser.java:93)\r\n        at org.opensolaris.opengrok.history.GitHistoryParser.processStream(GitHistoryParser.java:63)\r\n        at org.opensolaris.opengrok.util.Executor.exec(Executor.java:178)\r\n        at org.opensolaris.opengrok.history.GitHistoryParser.parse(GitHistoryParser.java:153)\r\n        at org.opensolaris.opengrok.history.GitRepository.getHistory(GitRepository.java:406)\r\n        at org.opensolaris.opengrok.history.GitRepository.getHistory(GitRepository.java:399)\r\n        at org.opensolaris.opengrok.history.FileHistoryCache.get(FileHistoryCache.java:496)\r\n        at org.opensolaris.opengrok.history.HistoryGuru.getHistory(HistoryGuru.java:230)\r\n        at org.opensolaris.opengrok.history.HistoryGuru.getHistory(HistoryGuru.java:190)\r\n        at org.opensolaris.opengrok.history.HistoryGuru.getHistoryReader(HistoryGuru.java:174)\r\n        at org.opensolaris.opengrok.analysis.AnalyzerGuru.populateDocument(AnalyzerGuru.java:284)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.addFile(IndexDatabase.java:606)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:870)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:835)\r\n        at org.opensolaris.opengrok.index.IndexDatabase.update(IndexDatabase.java:383)\r\n        at org.opensolaris.opengrok.index.IndexDatabase$1.run(IndexDatabase.java:168)\r\n        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)\r\n        at java.util.concurrent.FutureTask.run(Unknown Source)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n        at java.lang.Thread.run(Unknown Source)\r\n\r\nSep 26, 2016 2:07:38 PM org.opensolaris.opengrok.index.IndexDatabase addFile\r\nINFO: Skipped file '<FILE-NAME-CHANGED>.cs' because the analyzer didn't understand it.\r\n```"},"comment":{"url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/comments/249886725","html_url":"https://github.com/OpenGrok/OpenGrok/issues/1193#issuecomment-249886725","issue_url":"https://api.github.com/repos/OpenGrok/OpenGrok/issues/1193","id":249886725,"user":{"login":"tulinkry","id":6997160,"avatar_url":"https://avatars.githubusercontent.com/u/6997160?v=3","gravatar_id":"","url":"https://api.github.com/users/tulinkry","html_url":"https://github.com/tulinkry","followers_url":"https://api.github.com/users/tulinkry/followers","following_url":"https://api.github.com/users/tulinkry/following{/other_user}","gists_url":"https://api.github.com/users/tulinkry/gists{/gist_id}","starred_url":"https://api.github.com/users/tulinkry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tulinkry/subscriptions","organizations_url":"https://api.github.com/users/tulinkry/orgs","repos_url":"https://api.github.com/users/tulinkry/repos","events_url":"https://api.github.com/users/tulinkry/events{/privacy}","received_events_url":"https://api.github.com/users/tulinkry/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T14:45:59Z","updated_at":"2016-09-27T14:45:59Z","body":"Hi,\r\nif you build OpenGrok from source, you can try changing line in [GitRepository.java#L86](https://github.com/OpenGrok/OpenGrok/blob/master/src/org/opensolaris/opengrok/history/GitRepository.java#L86)\r\nfrom the format \r\n`EEE MMM dd hh:mm:ss yyyy ZZZZ`\r\nto (without the timezone)\r\n`EEE MMM dd hh:mm:ss yyyy`\r\nand clean the affected index and index it again to see if it helps.\r\n\r\nIf yes, we're failing on documentation:\r\n```\r\n$ man git log\r\n ....\r\n --date=default is the default format, and is similar to --date=rfc2822, with a few exceptions:\r\n ·   there is no comma after the day-of-week\r\n ·   the time zone is omitted when the local time zone is used # <- !!!\r\n```\r\nand we should fix it.\r\n\r\nAnyways @tarzanek we should consider using the `--date` option in the log command because user can set different date format than the repository expects and it will fail like this."}}
{"actor":{"display_login":"tulinkry"}}