TimestampType i_end_date = results[0].getTimestampAsTimestamp(3);
ItemStatus i_status = ItemStatus.get(results[0].getLong(4));
long newBidId = 0;
long newBidMaxBuyerId = buyer_id;
if (i_end_date.compareTo(currentTime) < 0 || i_status != ItemStatus.OPEN) {
if (debug)
LOG.debug(String.format("The auction for item %d has ended [status=%s]\nCurrentTime:\t%s\nActualEndDate:\t%s\nEstimatedEndDate:\t%s",
item_id, i_status, currentTime, i_end_date, estimatedEndDate));
throw new VoltAbortException("Unable to bid on item: Auction has ended");
}