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

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

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

origin: jsevellec/cassandra-unit

public void run()
{
  // mark writes older than the barrier as blocking progress, permitting them to exceed our memory limit
  // if they are stuck waiting on it, then wait for them all to complete
  writeBarrier.markBlocking();
  writeBarrier.await();
  // mark all memtables as flushing, removing them from the live memtable list
  for (Memtable memtable : memtables)
    memtable.cfs.data.markFlushing(memtable);
  metric.memtableSwitchCount.inc();
  try
  {
    // Flush "data" memtable with non-cf 2i first;
    flushMemtable(memtables.get(0), true);
    for (int i = 1; i < memtables.size(); i++)
      flushMemtable(memtables.get(i), false);
  }
  catch (Throwable t)
  {
    JVMStabilityInspector.inspectThrowable(t);
    postFlush.flushFailure = t;
  }
  // signal the post-flush we've done our work
  postFlush.latch.countDown();
}
origin: org.apache.cassandra/cassandra-all

public void run()
{
  // mark writes older than the barrier as blocking progress, permitting them to exceed our memory limit
  // if they are stuck waiting on it, then wait for them all to complete
  writeBarrier.markBlocking();
  writeBarrier.await();
  // mark all memtables as flushing, removing them from the live memtable list
  for (Memtable memtable : memtables)
    memtable.cfs.data.markFlushing(memtable);
  metric.memtableSwitchCount.inc();
  try
  {
    // Flush "data" memtable with non-cf 2i first;
    flushMemtable(memtables.get(0), true);
    for (int i = 1; i < memtables.size(); i++)
      flushMemtable(memtables.get(i), false);
  }
  catch (Throwable t)
  {
    JVMStabilityInspector.inspectThrowable(t);
    postFlush.flushFailure = t;
  }
  // signal the post-flush we've done our work
  postFlush.latch.countDown();
}
origin: com.strapdata.cassandra/cassandra-all

public void run()
{
  // mark writes older than the barrier as blocking progress, permitting them to exceed our memory limit
  // if they are stuck waiting on it, then wait for them all to complete
  writeBarrier.markBlocking();
  writeBarrier.await();
  // mark all memtables as flushing, removing them from the live memtable list
  for (Memtable memtable : memtables)
    memtable.cfs.data.markFlushing(memtable);
  metric.memtableSwitchCount.inc();
  try
  {
    // Flush "data" memtable with non-cf 2i first;
    flushMemtable(memtables.get(0), true);
    for (int i = 1; i < memtables.size(); i++)
      flushMemtable(memtables.get(i), false);
  }
  catch (Throwable t)
  {
    JVMStabilityInspector.inspectThrowable(t);
    postFlush.flushFailure = t;
  }
  // signal the post-flush we've done our work
  postFlush.latch.countDown();
}
org.apache.cassandra.db.lifecycleTrackermarkFlushing

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,
  • maybeIncrementallyBackup,
  • notify,
  • notifyAdded,
  • notifyDeleting,
  • notifyDiscarded

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • From CI to AI: The AI layer in your organization
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