<groupId>org.onap.music</groupId>
<artifactId>MUSIC</artifactId>
<packaging>jar</packaging>
- <version>3.2.34-SNAPSHOT</version>
+ <version>3.2.35-SNAPSHOT</version>
<description>
This is the MUSIC REST interface, packaged as a Springboot jar file.
</description>
}
private void populateMDCAndResponseHeader(Map<String, String> headerMap, String idKey, String mdcKey,
- boolean isRequired, HttpServletResponse httpResponse) throws ServletException, IOException {
+ boolean isRequired, HttpServletResponse httpResponse) throws IOException {
idKey = idKey.trim().toUpperCase();
try {
lockReference = "" + getLockingServiceHandle().genLockRefandEnQueue(keyspace, table, lockName, locktype);
} catch (MusicLockingException | MusicServiceException | MusicQueryException e) {
- e.printStackTrace();
+ logger.error(EELFLoggerDelegate.applicationLogger, e);
throw new MusicLockingException("Unable to create lock reference. " + e.getMessage());
} catch (Exception e) {
logger.error(EELFLoggerDelegate.applicationLogger, e);
PreparedQueryObject readQueryObject = new PreparedQueryObject();
readQueryObject.appendQueryString(query);
ResultSet results = MusicDataStoreHandle.getDSHandle().executeQuorumConsistencyGet(readQueryObject);
- if (results.all().size() != 0) {
+ if (!results.all().isEmpty()) {
logger.info("In acquire lock: Since there was a forcible release, need to sync quorum!");
try {
syncQuorum(keyspace, table, primaryKeyValue);