Issue-ID: MUSIC-410
Change-Id: Iac08df4b7534f3293f7ffa3ca1877b5baf044f89
Signed-off-by: arind.mondal <arind.mondal@samsung.com>
try {
lockReference = "" + getLockingServiceHandle().genLockRefandEnQueue(keyspace, table, lockName, locktype);
} catch (MusicLockingException | MusicServiceException | MusicQueryException e) {
try {
lockReference = "" + getLockingServiceHandle().genLockRefandEnQueue(keyspace, table, lockName, locktype);
} catch (MusicLockingException | MusicServiceException | MusicQueryException e) {
+ logger.error(EELFLoggerDelegate.applicationLogger, e);
throw new MusicLockingException("Unable to create lock reference. " + e.getMessage());
} catch (Exception e) {
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);
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);
logger.info("In acquire lock: Since there was a forcible release, need to sync quorum!");
try {
syncQuorum(keyspace, table, primaryKeyValue);