Fix Remove this throw statement from this finally block issue
Fix Cast one of the operands of this multiplication operation to a "long" issue
Issue-ID: DMAAP-894
Change-Id: Ibd0f9a04e409f0de05e8cf42695188b0e8a1f201
Signed-off-by: Parshad Patel <pars.patel@samsung.com>
try {
ipLock.release();
} catch (Exception e) {
- throw new UnavailableException("Error while releasing consumer factory lock" + e, e);
+ log.error("Error while releasing consumer factory lock", e);
}
}
}
// start processing, building a batch to push to the backend
final long startMs = System.currentTimeMillis();
long count = 0;
- long maxEventBatch = 1024 * 16;
+ long maxEventBatch = 1024L * 16L;
String evenlen = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop, BATCH_LENGTH);
if (null != evenlen)
maxEventBatch = Long.parseLong(evenlen);