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, applyingBufferedOpsMeter, BUFFER_TLOG_NAME, bufferedOpsGauge, bufferTlog, cancelApplyBufferUpdate, COMMIT, copyOverOldUpdatesMeter, dataDir, defaultSyncLevel, DELETE, DELETE_BY_QUERY, deleteByQueries, existOldBufferLog, FLAGS_IDX, globalStrings, lastDataDir, LOG_FILENAME_PATTERN, logs, map, maxNumLogsToKeep, maxVersionFromIndex, metricManager, newestLogsOnStartup, numDeletesByQueryToKeep, numDeletesToKeep, numOldRecords, numRecordsToKeep, numVersionBuckets, oldDeletes, OPERATION_MASK, PREV_POINTER_IDX, PREV_VERSION_IDX, prevMap, prevMap2, prevMapLog, prevMapLog2, prevTlog, prevTlogOnPrecommit, recoveryInfo, registryName, replayOpsMeter, state, testing_logReplayFinishHook, testing_logReplayHook, tlog, TLOG_NAME, tlogFiles, UPDATE_INPLACE, VERSION_IDX, 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) |
protected void |
deleteBufferLogs() |
protected void |
ensureBufferTlog() |
protected void |
ensureLog() |
static String[] |
getBufferLogList(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path tlogDir) |
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) |
void |
preSoftCommit(CommitUpdateCommand cmd) |
String |
toString()
Returns true if we were able to drop buffered updates and return to the
ACTIVE state
|
add, add, addOldLog, applyBufferedUpdates, applyPartialUpdates, bufferUpdates, commitAndSwitchToNewTlog, convertTlogEntryToAddUpdateCommand, copyOverBufferingUpdates, copyOverOldUpdates, copyOverOldUpdates, delete, deleteAll, deleteByQuery, deleteFile, dropBufferedUpdates, existOldBufferLog, finish, getBufferLogList, getCurrentLogSizeFromStream, getCurrentMaxVersion, getDBQNewer, getFs, getLastLogId, getLogList, getMaxNumLogsToKeep, getNumRecordsToKeep, getNumVersionBuckets, getRecentUpdates, getStartingVersions, getState, getTlogDir, getTotalLogsNumber, getTotalLogsSize, getVersionInfo, hasUncommittedChanges, initializeMetrics, lookup, lookupVersion, newMap, newTransactionLog, objToInt, openRealtimeSearcher, postCommit, postSoftCommit, preCommit, recoverFromCurrentLog, recoverFromLog, seedBucketsWithHighestVersion, seedBucketsWithHighestVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeMetrics
public static AtomicLong INIT_FAILED_LOGS_COUNT
public HdfsUpdateLog()
public HdfsUpdateLog(String confDir)
public void init(PluginInfo info)
init
in interface PluginInfoInitialized
init
in class UpdateLog
public void init(UpdateHandler uhandler, SolrCore core)
public static String[] getBufferLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
public static String[] getLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
public void close(boolean committed, boolean deleteOnClose)
protected void ensureBufferTlog()
ensureBufferTlog
in class UpdateLog
protected void deleteBufferLogs()
deleteBufferLogs
in class UpdateLog
public void clearLog(SolrCore core, PluginInfo ulogPluginInfo)
public void preSoftCommit(CommitUpdateCommand cmd)
preSoftCommit
in class UpdateLog
public String[] getLogList(org.apache.hadoop.fs.Path tlogDir) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.