Tabnine Logo
Tracker.notifyDiscarded
Code IndexAdd Tabnine to your IDE (free)

How to use
notifyDiscarded
method
in
org.apache.cassandra.db.lifecycle.Tracker

Best Java code snippets using org.apache.cassandra.db.lifecycle.Tracker.notifyDiscarded (Showing top 3 results out of 315)

origin: com.strapdata.cassandra/cassandra-all

public void replaceFlushed(Memtable memtable, Iterable<SSTableReader> sstables)
{
  assert !isDummy();
  if (Iterables.isEmpty(sstables))
  {
    // sstable may be null if we flushed batchlog and nothing needed to be retained
    // if it's null, we don't care what state the cfstore is in, we just replace it and continue
    apply(View.replaceFlushed(memtable, null));
    return;
  }
  sstables.forEach(SSTableReader::setupOnline);
  // back up before creating a new Snapshot (which makes the new one eligible for compaction)
  maybeIncrementallyBackup(sstables);
  apply(View.replaceFlushed(memtable, sstables));
  Throwable fail;
  fail = updateSizeTracking(emptySet(), sstables, null);
  notifyDiscarded(memtable);
  // TODO: if we're invalidated, should we notifyadded AND removed, or just skip both?
  fail = notifyAdded(sstables, memtable, fail);
  if (!isDummy() && !cfstore.isValid())
    dropSSTables();
  maybeFail(fail);
}
origin: org.apache.cassandra/cassandra-all

public void replaceFlushed(Memtable memtable, Iterable<SSTableReader> sstables)
{
  assert !isDummy();
  if (Iterables.isEmpty(sstables))
  {
    // sstable may be null if we flushed batchlog and nothing needed to be retained
    // if it's null, we don't care what state the cfstore is in, we just replace it and continue
    apply(View.replaceFlushed(memtable, null));
    return;
  }
  sstables.forEach(SSTableReader::setupOnline);
  // back up before creating a new Snapshot (which makes the new one eligible for compaction)
  maybeIncrementallyBackup(sstables);
  apply(View.replaceFlushed(memtable, sstables));
  Throwable fail;
  fail = updateSizeTracking(emptySet(), sstables, null);
  notifyDiscarded(memtable);
  // TODO: if we're invalidated, should we notifyadded AND removed, or just skip both?
  fail = notifyAdded(sstables, fail);
  if (!isDummy() && !cfstore.isValid())
    dropSSTables();
  maybeFail(fail);
}
origin: jsevellec/cassandra-unit

public void replaceFlushed(Memtable memtable, Iterable<SSTableReader> sstables)
{
  assert !isDummy();
  if (Iterables.isEmpty(sstables))
  {
    // sstable may be null if we flushed batchlog and nothing needed to be retained
    // if it's null, we don't care what state the cfstore is in, we just replace it and continue
    apply(View.replaceFlushed(memtable, null));
    return;
  }
  sstables.forEach(SSTableReader::setupOnline);
  // back up before creating a new Snapshot (which makes the new one eligible for compaction)
  maybeIncrementallyBackup(sstables);
  apply(View.replaceFlushed(memtable, sstables));
  Throwable fail;
  fail = updateSizeTracking(emptySet(), sstables, null);
  notifyDiscarded(memtable);
  // TODO: if we're invalidated, should we notifyadded AND removed, or just skip both?
  fail = notifyAdded(sstables, fail);
  if (!isDummy() && !cfstore.isValid())
    dropSSTables();
  maybeFail(fail);
}
org.apache.cassandra.db.lifecycleTrackernotifyDiscarded

Popular methods of Tracker

  • tryModify
  • <init>
  • addInitialSSTables
  • apply
    atomically tests permit against the view and applies function to it, if permit yields true, returnin
  • dropSSTables
    removes all sstables that are not busy compacting.
  • dropSSTablesIfInvalid
  • emptySet
  • isDummy
  • updateSizeTracking
  • addSSTables
  • getCompacting
  • getMemtableFor
    get the Memtable that the ordered writeOp should be directed to
  • getCompacting,
  • getMemtableFor,
  • getUncompacting,
  • getView,
  • markFlushing,
  • maybeIncrementallyBackup,
  • notify,
  • notifyAdded,
  • notifyDeleting

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Collectors (java.util.stream)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now