congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Tracker.notifySSTablesChanged
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jsevellec/cassandra-unit

/**
 * point of no return: commit all changes, but leave all readers marked as compacting
 */
public Throwable doCommit(Throwable accumulate)
{
  assert staged.isEmpty() : "must be no actions introduced between prepareToCommit and a commit";
  if (logger.isTraceEnabled())
    logger.trace("Committing transaction over {} staged: {}, logged: {}", originals, staged, logged);
  // accumulate must be null if we have been used correctly, so fail immediately if it is not
  maybeFail(accumulate);
  // transaction log commit failure means we must abort; safe commit is not possible
  maybeFail(log.commit(null));
  // this is now the point of no return; we cannot safely rollback, so we ignore exceptions until we're done
  // we restore state by obsoleting our obsolete files, releasing our references to them, and updating our size
  // and notification status for the obsolete and new files
  accumulate = markObsolete(obsoletions, accumulate);
  accumulate = tracker.updateSizeTracking(logged.obsolete, logged.update, accumulate);
  accumulate = release(selfRefs(logged.obsolete), accumulate);
  accumulate = tracker.notifySSTablesChanged(originals, logged.update, log.type(), accumulate);
  return accumulate;
}
origin: org.apache.cassandra/cassandra-all

/**
 * point of no return: commit all changes, but leave all readers marked as compacting
 */
public Throwable doCommit(Throwable accumulate)
{
  assert staged.isEmpty() : "must be no actions introduced between prepareToCommit and a commit";
  if (logger.isTraceEnabled())
    logger.trace("Committing transaction over {} staged: {}, logged: {}", originals, staged, logged);
  // accumulate must be null if we have been used correctly, so fail immediately if it is not
  maybeFail(accumulate);
  // transaction log commit failure means we must abort; safe commit is not possible
  maybeFail(log.commit(null));
  // this is now the point of no return; we cannot safely rollback, so we ignore exceptions until we're done
  // we restore state by obsoleting our obsolete files, releasing our references to them, and updating our size
  // and notification status for the obsolete and new files
  accumulate = markObsolete(obsoletions, accumulate);
  accumulate = tracker.updateSizeTracking(logged.obsolete, logged.update, accumulate);
  accumulate = release(selfRefs(logged.obsolete), accumulate);
  accumulate = tracker.notifySSTablesChanged(originals, logged.update, log.type(), accumulate);
  return accumulate;
}
origin: com.strapdata.cassandra/cassandra-all

/**
 * point of no return: commit all changes, but leave all readers marked as compacting
 */
public Throwable doCommit(Throwable accumulate)
{
  assert staged.isEmpty() : "must be no actions introduced between prepareToCommit and a commit";
  if (logger.isTraceEnabled())
    logger.trace("Committing transaction over {} staged: {}, logged: {}", originals, staged, logged);
  // accumulate must be null if we have been used correctly, so fail immediately if it is not
  maybeFail(accumulate);
  // transaction log commit failure means we must abort; safe commit is not possible
  maybeFail(log.commit(null));
  // this is now the point of no return; we cannot safely rollback, so we ignore exceptions until we're done
  // we restore state by obsoleting our obsolete files, releasing our references to them, and updating our size
  // and notification status for the obsolete and new files
  accumulate = markObsolete(obsoletions, accumulate);
  accumulate = tracker.updateSizeTracking(logged.obsolete, logged.update, accumulate);
  accumulate = release(selfRefs(logged.obsolete), accumulate);
  accumulate = tracker.notifySSTablesChanged(originals, logged.update, log.type(), accumulate);
  return accumulate;
}
origin: com.strapdata.cassandra/cassandra-all

accumulate = release(selfRefs(removed), accumulate);
accumulate = notifySSTablesChanged(removed, Collections.<SSTableReader>emptySet(), txnLogs.type(), accumulate);
origin: com.strapdata.cassandra/cassandra-all

List<SSTableReader> invalid = Lists.newArrayList(Iterables.concat(logged.update, logged.obsolete));
accumulate = tracker.apply(updateLiveSet(logged.update, restored), accumulate);
accumulate = tracker.notifySSTablesChanged(invalid, restored, OperationType.COMPACTION, accumulate);
origin: org.apache.cassandra/cassandra-all

List<SSTableReader> invalid = Lists.newArrayList(Iterables.concat(logged.update, logged.obsolete));
accumulate = tracker.apply(updateLiveSet(logged.update, restored), accumulate);
accumulate = tracker.notifySSTablesChanged(invalid, restored, OperationType.COMPACTION, accumulate);
origin: org.apache.cassandra/cassandra-all

accumulate = release(selfRefs(removed), accumulate);
accumulate = notifySSTablesChanged(removed, Collections.<SSTableReader>emptySet(), txnLogs.type(), accumulate);
origin: jsevellec/cassandra-unit

List<SSTableReader> invalid = Lists.newArrayList(Iterables.concat(logged.update, logged.obsolete));
accumulate = tracker.apply(updateLiveSet(logged.update, restored), accumulate);
accumulate = tracker.notifySSTablesChanged(invalid, restored, OperationType.COMPACTION, accumulate);
origin: jsevellec/cassandra-unit

accumulate = release(selfRefs(removed), accumulate);
accumulate = notifySSTablesChanged(removed, Collections.<SSTableReader>emptySet(), txnLogs.type(), accumulate);
org.apache.cassandra.db.lifecycleTrackernotifySSTablesChanged

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,
  • notifyDiscarded

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Runner (org.openjdk.jmh.runner)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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