Chandrasekaran SanthanaKrishnan wrote:This was the regex used:
if((this.queryString.matches("(.*)/(.*)")) || (this.queryString.matches("(.*)+(.*)")))
We did test few scenarios. May be we did not have the right string that would cause a CPU spin. But we found that this LOC was causing problem in the ThreadDump.
when replaced with the following, it fixed the issue:
this.queryString.contains("/") || this.queryString.contains("+")
Thanks for the replies.
hbase, cassandra and mongodb
'Not working' is a poor error description. What didn't work? Did you get an error message? Which? How did you experience that it didn't work? What result did you expect, what did you get?
Backticks are deprecated (Ommm, Ommm) because you can't nest them easily. Since classes should wear uppercase initials, you call `java Test`, not `java test`.
should be public
* named with capital T
* main method is empty - so nothing happens
* sample-method returns a String, but does no output.