LogEntry lastEntry = getLastEntry(fs, lockFile); if (lastEntry == null) { LOG.warn("Empty lock file found. Deleting it. {}", lockFile);
FileLock.LogEntry lastEntry = FileLock.getLastEntry(hdfs, lastExpiredLock.getKey()); if (lastEntry.equals(lastExpiredLock.getValue())) { FileLock result = FileLock.takeOwnership(hdfs, lastExpiredLock.getKey(), lastEntry, spoutId);
LogEntry lastEntry = getLastEntry(fs, lockFile); if(lastEntry==null) { LOG.warn("Empty lock file found. Deleting it. {}", lockFile);
FileLock.LogEntry lastEntry = FileLock.getLastEntry(hdfs, lastExpiredLock.getKey()); if (lastEntry.equals(lastExpiredLock.getValue())) { FileLock result = FileLock.takeOwnership(hdfs, lastExpiredLock.getKey(), lastEntry, spoutId);