{"action":"created","issue":{"url":"https://api.github.com/repos/twitter/heron/issues/920","repository_url":"https://api.github.com/repos/twitter/heron","labels_url":"https://api.github.com/repos/twitter/heron/issues/920/labels{/name}","comments_url":"https://api.github.com/repos/twitter/heron/issues/920/comments","events_url":"https://api.github.com/repos/twitter/heron/issues/920/events","html_url":"https://github.com/twitter/heron/issues/920","id":160333084,"number":920,"title":"version and timestamp in release.yaml is not loaded as String","user":{"login":"nlu90","id":16407807,"avatar_url":"https://avatars.githubusercontent.com/u/16407807?v=3","gravatar_id":"","url":"https://api.github.com/users/nlu90","html_url":"https://github.com/nlu90","followers_url":"https://api.github.com/users/nlu90/followers","following_url":"https://api.github.com/users/nlu90/following{/other_user}","gists_url":"https://api.github.com/users/nlu90/gists{/gist_id}","starred_url":"https://api.github.com/users/nlu90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlu90/subscriptions","organizations_url":"https://api.github.com/users/nlu90/orgs","repos_url":"https://api.github.com/users/nlu90/repos","events_url":"https://api.github.com/users/nlu90/events{/privacy}","received_events_url":"https://api.github.com/users/nlu90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T03:51:42Z","updated_at":"2016-06-15T03:53:39Z","closed_at":null,"body":"A recent travis ci job failed with the following exception:\r\n```bash\r\nException in thread \"main\" java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String\r\n\tat com.twitter.heron.spi.common.Config.getStringValue(Config.java:61)\r\n\tat com.twitter.heron.spi.common.Context.buildVersion(Context.java:43)\r\n\tat com.twitter.heron.scheduler.LaunchRunner.createExecutionState(LaunchRunner.java:56)\r\n\tat com.twitter.heron.scheduler.LaunchRunner.call(LaunchRunner.java:144)\r\n\tat com.twitter.heron.scheduler.SubmitterMain.callLauncherRunner(SubmitterMain.java:465)\r\n\tat com.twitter.heron.scheduler.SubmitterMain.submitTopology(SubmitterMain.java:418)\r\n\tat com.twitter.heron.scheduler.SubmitterMain.main(SubmitterMain.java:315)\r\n```\r\n\r\nIt's due to the value of `heron.build.version` contains only numbers\r\n\r\n```bash\r\nSee http://heronstreaming.io/docs/getting-started for how to use Heron.\r\nheron.build.version : 5943249\r\nheron.build.time : Wed Jun 15 00:56:13 UTC 2016\r\nheron.build.timestamp : 1465952173000\r\nheron.build.host : testing-gce-0bbbc5a5-20a6-4849-ae8c-ff20341cdc6c\r\nheron.build.user : travis\r\nheron.build.git.revision : 59432499872f8488df79ae976cb63e9f6ac8d8de\r\nheron.build.git.status : Modified\r\n```\r\n\r\nSince `5943249` contains only numbers, yaml loads it as an Integer instead of a String. Then when it's used later as a string, the above exception happens. \r\n\r\nThe `heron.build.timestamp` has the similar issue, yaml loads it as a Long instead of a String.\r\n\r\nThe solution is wrapping the values of `heron.build.version` and `heron.build.timestamp` with single or double quotes to force them to be String."},"comment":{"url":"https://api.github.com/repos/twitter/heron/issues/comments/226081682","html_url":"https://github.com/twitter/heron/issues/920#issuecomment-226081682","issue_url":"https://api.github.com/repos/twitter/heron/issues/920","id":226081682,"user":{"login":"kramasamy","id":367684,"avatar_url":"https://avatars.githubusercontent.com/u/367684?v=3","gravatar_id":"","url":"https://api.github.com/users/kramasamy","html_url":"https://github.com/kramasamy","followers_url":"https://api.github.com/users/kramasamy/followers","following_url":"https://api.github.com/users/kramasamy/following{/other_user}","gists_url":"https://api.github.com/users/kramasamy/gists{/gist_id}","starred_url":"https://api.github.com/users/kramasamy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kramasamy/subscriptions","organizations_url":"https://api.github.com/users/kramasamy/orgs","repos_url":"https://api.github.com/users/kramasamy/repos","events_url":"https://api.github.com/users/kramasamy/events{/privacy}","received_events_url":"https://api.github.com/users/kramasamy/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T03:53:39Z","updated_at":"2016-06-15T03:53:39Z","body":"@nlu90 - thanks for tracking this. can you fix and send a PR?"}}
{"actor":{"display_login":"kramasamy"}}