Code changes and added debug statement for cassandra issue.