<BUG>}private ObjectListing s3getNextBatch() {</BUG><CONTEXT>log.error("Error in run loop, KeyLister thread now exiting: "+e);} finally {if (verbose) log.info("KeyLister run loop finished");done.set(true);}<extra_id_0>final MirrorOptions options = context.getOptions();final boolean verbose = options.isVerbose();final int maxRetries = options.getMaxRetries();</CONTEXT>
private ObjectListing s3getFirstBatch(AmazonS3Client client, ListObjectsRequest request) {Exception lastException = null;