public class HdfsUpdateLog extends UpdateLog
UpdateLog.DBQ, UpdateLog.LogPtr, UpdateLog.RecentUpdates, UpdateLog.RecoveryInfo, UpdateLog.State, UpdateLog.SyncLevel
Modifier and Type | Field and Description |
---|---|
static AtomicLong |
INIT_FAILED_LOGS_COUNT |
ADD, cancelApplyBufferUpdate, COMMIT, dataDir, debug, defaultSyncLevel, DELETE, DELETE_BY_QUERY, deleteByQueries, FLAG_GAP, globalStrings, lastDataDir, log, LOG_FILENAME_PATTERN, logs, map, maxNumLogsToKeep, maxVersionFromIndex, newestLogsOnStartup, numDeletesByQueryToKeep, numDeletesToKeep, numOldRecords, numRecordsToKeep, numVersionBuckets, oldDeletes, OPERATION_MASK, operationFlags, prevMap, prevMap2, prevMapLog, prevMapLog2, prevTlog, recoveryInfo, state, testing_logReplayFinishHook, testing_logReplayHook, tlog, TLOG_NAME, tlogFiles, trace, versionInfo
Constructor and Description |
---|
HdfsUpdateLog() |
HdfsUpdateLog(String confDir) |
Modifier and Type | Method and Description |
---|---|
void |
clearLog(SolrCore core,
PluginInfo ulogPluginInfo)
Clears the logs on the file system.
|
void |
close(boolean committed) |
void |
close(boolean committed,
boolean deleteOnClose) |
boolean |
dropBufferedUpdates()
Returns true if we were able to drop buffered updates and return to the ACTIVE state
|
protected void |
ensureLog() |
String |
getLogDir() |
static String[] |
getLogList(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tlogDir) |
String[] |
getLogList(org.apache.hadoop.fs.Path tlogDir) |
void |
init(PluginInfo info) |
void |
init(UpdateHandler uhandler,
SolrCore core) |
String |
toString()
Returns true if we were able to drop buffered updates and return to the
ACTIVE state
|
add, add, addOldLog, applyBufferedUpdates, bufferUpdates, cancelApplyBufferedUpdates, delete, deleteAll, deleteByQuery, deleteFile, finish, getCurrentMaxVersion, getDBQNewer, getFs, getLastLogId, getLogList, getMaxNumLogsToKeep, getNumRecordsToKeep, getNumVersionBuckets, getRecentUpdates, getStartingOperation, getStartingVersions, getState, getTlogDir, getTotalLogsNumber, getTotalLogsSize, getVersionInfo, hasUncommittedChanges, lookup, lookupVersion, newMap, objToInt, postCommit, postSoftCommit, preCommit, preSoftCommit, recoverFromLog, seedBucketsWithHighestVersion, seedBucketsWithHighestVersion
public static AtomicLong INIT_FAILED_LOGS_COUNT
public HdfsUpdateLog()
public HdfsUpdateLog(String confDir)
public boolean dropBufferedUpdates()
UpdateLog
dropBufferedUpdates
in class UpdateLog
public void init(PluginInfo info)
init
in interface PluginInfoInitialized
init
in class UpdateLog
public void init(UpdateHandler uhandler, SolrCore core)
public static String[] getLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
public void close(boolean committed, boolean deleteOnClose)
public void clearLog(SolrCore core, PluginInfo ulogPluginInfo)
public String[] getLogList(org.apache.hadoop.fs.Path tlogDir) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.