Package org.apache.solr.update
Class HdfsUpdateLog
- java.lang.Object
-
- org.apache.solr.update.UpdateLog
-
- org.apache.solr.update.HdfsUpdateLog
-
- All Implemented Interfaces:
AutoCloseable
,SolrMetricProducer
,PluginInfoInitialized
@Deprecated public class HdfsUpdateLog extends UpdateLog
Deprecated.since 8.6- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.update.UpdateLog
UpdateLog.DBQ, UpdateLog.LogPtr, UpdateLog.RecentUpdates, UpdateLog.RecoveryInfo, UpdateLog.State, UpdateLog.SyncLevel
-
-
Field Summary
Fields Modifier and Type Field Description static AtomicLong
INIT_FAILED_LOGS_COUNT
Deprecated.-
Fields inherited from class org.apache.solr.update.UpdateLog
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 Summary
Constructors Constructor Description HdfsUpdateLog()
Deprecated.HdfsUpdateLog(String confDir)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clearLog(SolrCore core, PluginInfo ulogPluginInfo)
Deprecated.Clears the logs on the file system.void
close(boolean committed)
Deprecated.void
close(boolean committed, boolean deleteOnClose)
Deprecated.protected void
deleteBufferLogs()
Deprecated.protected void
ensureBufferTlog()
Deprecated.protected void
ensureLog()
Deprecated.static String[]
getBufferLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
Deprecated.String
getLogDir()
Deprecated.static String[]
getLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
Deprecated.String[]
getLogList(org.apache.hadoop.fs.Path tlogDir)
Deprecated.void
init(PluginInfo info)
Deprecated.void
init(UpdateHandler uhandler, SolrCore core)
Deprecated.void
preSoftCommit(CommitUpdateCommand cmd)
Deprecated.String
toString()
Deprecated.Returns true if we were able to drop buffered updates and return to the ACTIVE state-
Methods inherited from class org.apache.solr.update.UpdateLog
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close, getSolrMetricsContext, initializeMetrics
-
-
-
-
Field Detail
-
INIT_FAILED_LOGS_COUNT
public static AtomicLong INIT_FAILED_LOGS_COUNT
Deprecated.
-
-
Constructor Detail
-
HdfsUpdateLog
public HdfsUpdateLog()
Deprecated.
-
HdfsUpdateLog
public HdfsUpdateLog(String confDir)
Deprecated.
-
-
Method Detail
-
init
public void init(PluginInfo info)
Deprecated.- Specified by:
init
in interfacePluginInfoInitialized
- Overrides:
init
in classUpdateLog
-
init
public void init(UpdateHandler uhandler, SolrCore core)
Deprecated.
-
getBufferLogList
public static String[] getBufferLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
Deprecated.
-
getLogList
public static String[] getLogList(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path tlogDir)
Deprecated.
-
close
public void close(boolean committed, boolean deleteOnClose)
Deprecated.
-
ensureBufferTlog
protected void ensureBufferTlog()
Deprecated.- Overrides:
ensureBufferTlog
in classUpdateLog
-
deleteBufferLogs
protected void deleteBufferLogs()
Deprecated.- Overrides:
deleteBufferLogs
in classUpdateLog
-
clearLog
public void clearLog(SolrCore core, PluginInfo ulogPluginInfo)
Deprecated.Clears the logs on the file system. Only call before init.
-
preSoftCommit
public void preSoftCommit(CommitUpdateCommand cmd)
Deprecated.- Overrides:
preSoftCommit
in classUpdateLog
-
getLogList
public String[] getLogList(org.apache.hadoop.fs.Path tlogDir) throws FileNotFoundException, IOException
Deprecated.- Throws:
FileNotFoundException
IOException
-
-