linkedin/glu — Issue #123: Hammering console with several simple REST requests in parallel leads to strange groovy error
Author: zsimic
Created: 2012-02-07 03:12:28+00:00
State: open

I'm trying to do a 'stress test' on the console to see what happens when it gets hammered by several requests in parallel at the same time. As a start, I simply run N jobs that go and get the JSON static model via the REST API.

For 1 and 2 queries in parallel, things work well. However for N >= 5, I start getting the error below randomly. And the more waves of N jobs I run, the more often I'm getting that same error below. Anyone seen this and/or has an idea what this may be due to?

1345634 [qtp2110119369-32] ERROR org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver - No signature of method: static org.linkedin.groovy.util.json.JsonUtils.toJSON() is applicable for argument types: (java.lang.String) values: [data-platform-storage]
Possible solutions: toJSON(java.lang.Object), fromJSON(java.lang.String), mapToJSON(java.util.Map), toList(org.json.JSONArray), toMap(org.json.JSONObject)
groovy.lang.MissingMethodException: No signature of method: static org.linkedin.groovy.util.json.JsonUtils.toJSON() is applicable for argument types: (java.lang.String) values: [data-platform-storage]
Possible solutions: toJSON(java.lang.Object), fromJSON(java.lang.String), mapToJSON(java.util.Map), toList(org.json.JSONArray), toMap(org.json.JSONObject)
at org.linkedin.groovy.util.json.JsonUtils$_mapToJSON_closure3.doCall(JsonUtils.groovy:148)
at org.linkedin.groovy.util.json.JsonUtils.mapToJSON(JsonUtils.groovy:147)
at org.linkedin.groovy.util.json.JsonUtils.toJSON(JsonUtils.groovy:130)
at org.linkedin.groovy.util.json.JsonUtils$_mapToJSON_closure3.doCall(JsonUtils.groovy:148)
at org.linkedin.groovy.util.json.JsonUtils.mapToJSON(JsonUtils.groovy:147)
at org.linkedin.groovy.util.json.JsonUtils.toJSON(JsonUtils.groovy:130)
at org.linkedin.groovy.util.json.JsonUtils$_mapToJSON_closure3.doCall(JsonUtils.groovy:148)
at org.linkedin.groovy.util.json.JsonUtils.mapToJSON(JsonUtils.groovy:147)
at org.linkedin.groovy.util.json.JsonUtils.toJSON(JsonUtils.groovy:130)
at org.linkedin.groovy.util.json.JsonUtils$toJSON.callStatic(Unknown Source)
at org.linkedin.groovy.util.json.JsonUtils$toJSON.callStatic(Unknown Source)
at org.linkedin.groovy.util.json.JsonUtils$_collectionToJSON_closure4.doCall(JsonUtils.groovy:160)
at org.linkedin.groovy.util.json.JsonUtils.collectionToJSON(JsonUtils.groovy:159)
at org.linkedin.groovy.util.json.JsonUtils.toJSON(JsonUtils.groovy:135)
at org.linkedin.groovy.util.json.JsonUtils$_mapToJSON_closure3.doCall(JsonUtils.groovy:148)
at org.linkedin.groovy.util.json.JsonUtils.mapToJSON(JsonUtils.groovy:147)
at org.linkedin.groovy.util.json.JsonUtils.toJSON(JsonUtils.groovy:130)
at org.linkedin.groovy.util.json.JsonUtils$toJSON.call(Unknown Source)
at org.linkedin.glu.provisioner.core.model.JSONSystemModelSerializer.serialize(JSONSystemModelSerializer.groovy:39)
at org.linkedin.glu.provisioner.core.model.SystemModelSerializer$serialize.call(Unknown Source)
at org.linkedin.glu.provisioner.core.model.SystemModel.toString(SystemModel.groovy:518)
at org.linkedin.glu.provisioner.core.model.SystemModel$toString.call(Unknown Source)