Tabnine Logo
SnapshotTestingUtils.verifyRowCount
Code IndexAdd Tabnine to your IDE (free)

How to use
verifyRowCount
method
in
org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils

Best Java code snippets using org.apache.hadoop.hbase.snapshot.SnapshotTestingUtils.verifyRowCount (Showing top 14 results out of 315)

origin: apache/hbase

protected void verifyRowCount(final HBaseTestingUtility util, final TableName tableName,
  long expectedRows) throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: apache/hbase

protected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows)
  throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: apache/hbase

protected void verifyRowCount(final HBaseTestingUtility util, final TableName tableName,
  long expectedRows) throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: apache/hbase

protected void verifyRowCount(final HBaseTestingUtility util, final TableName tableName,
  long expectedRows) throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: apache/hbase

SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot1Rows);
takeSnapshot(tableName, Bytes.toString(snapshotName1), false);
admin.restoreSnapshot(snapshotName0);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot0Rows);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
admin.restoreSnapshot(emptySnapshot);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, 0);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
admin.restoreSnapshot(snapshotName1);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot1Rows);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot1Rows);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
origin: apache/hbase

SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot1Rows);
admin.disableTable(tableName);
takeSnapshot(tableName, Bytes.toString(snapshotName1), true);
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot0Rows);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
admin.restoreSnapshot(emptySnapshot);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, 0);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
admin.restoreSnapshot(snapshotName1);
admin.enableTable(tableName);
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot1Rows);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
SnapshotTestingUtils.verifyRowCount(UTIL, tableName, snapshot1Rows);
SnapshotTestingUtils.verifyReplicasCameOnline(tableName, admin, getNumReplicas());
origin: apache/hbase

 private void validateSnapshotRestore() throws IOException {
  try {
   UTIL.getAdmin().enableTable(snapshotTableName);

   HTableDescriptor currentHTD = UTIL.getAdmin().getTableDescriptor(snapshotTableName);
   assertTrue(currentHTD.hasFamily(CF1));
   assertTrue(currentHTD.hasFamily(CF2));
   assertFalse(currentHTD.hasFamily(CF3));
   assertFalse(currentHTD.hasFamily(CF4));
   assertEquals(currentHTD.getFamiliesKeys().size(), snapshotHTD.getFamiliesKeys().size());
   SnapshotTestingUtils.verifyRowCount(UTIL, snapshotTableName, rowCountCF1 + rowCountCF2);
  } finally {
   UTIL.getAdmin().disableTable(snapshotTableName);
  }
 }
}
origin: apache/hbase

SnapshotTestingUtils.verifyRowCount(UTIL, snapshotTableName, rowCountCF1 + rowCountCF2);
assertTrue(currentHTD.hasFamily(CF4));
assertNotEquals(currentHTD.getFamiliesKeys().size(), snapshotHTD.getFamiliesKeys().size());
SnapshotTestingUtils.verifyRowCount(
 UTIL, snapshotTableName, rowCountCF1 + rowCountCF3 + rowCountCF4 + rowCountCF1addition);
admin.disableTable(snapshotTableName);
origin: org.apache.hbase/hbase-server

protected void verifyRowCount(final HBaseTestingUtility util, final TableName tableName,
  long expectedRows) throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: org.apache.hbase/hbase-server

protected void verifyRowCount(final HBaseTestingUtility util, final TableName tableName,
  long expectedRows) throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: org.apache.hbase/hbase-server

protected void verifyRowCount(HBaseTestingUtility util, TableName tableName, long expectedRows)
  throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: org.apache.hbase/hbase-server

protected void verifyRowCount(final HBaseTestingUtility util, final TableName tableName,
  long expectedRows) throws IOException {
 SnapshotTestingUtils.verifyRowCount(util, tableName, expectedRows);
}
origin: org.apache.hbase/hbase-server

SnapshotTestingUtils.verifyRowCount(UTIL, snapshotTableName, rowCountCF1 + rowCountCF2);
assertTrue(currentHTD.hasFamily(CF4));
assertNotEquals(currentHTD.getFamiliesKeys().size(), snapshotHTD.getFamiliesKeys().size());
SnapshotTestingUtils.verifyRowCount(
 UTIL, snapshotTableName, rowCountCF1 + rowCountCF3 + rowCountCF4 + rowCountCF1addition);
admin.disableTable(snapshotTableName);
origin: org.apache.hbase/hbase-server

 private void validateSnapshotRestore() throws IOException {
  try {
   UTIL.getAdmin().enableTable(snapshotTableName);

   HTableDescriptor currentHTD = UTIL.getAdmin().getTableDescriptor(snapshotTableName);
   assertTrue(currentHTD.hasFamily(CF1));
   assertTrue(currentHTD.hasFamily(CF2));
   assertFalse(currentHTD.hasFamily(CF3));
   assertFalse(currentHTD.hasFamily(CF4));
   assertEquals(currentHTD.getFamiliesKeys().size(), snapshotHTD.getFamiliesKeys().size());
   SnapshotTestingUtils.verifyRowCount(UTIL, snapshotTableName, rowCountCF1 + rowCountCF2);
  } finally {
   UTIL.getAdmin().disableTable(snapshotTableName);
  }
 }
}
org.apache.hadoop.hbase.snapshotSnapshotTestingUtilsverifyRowCount

Popular methods of SnapshotTestingUtils

  • deleteAllSnapshots
  • deleteArchiveDirectory
  • loadData
  • createSnapshotAndValidate
    Take a snapshot of the specified table and verify the given families. Note that this will leave the
  • createPreSplitTable
  • waitForTableToBeOnline
  • assertExistsMatchingSnapshot
    Make sure that there is only one snapshot returned from the master and its name and table match the
  • assertNoSnapshots
    Assert that we don't have any snapshots lists
  • assertOneSnapshotThatMatches
    Make sure that there is only one snapshot returned from the master and its name and table match the
  • cleanupSnapshot
  • confirmSnapshotValid
    Confirm that the snapshot contains references to all the files that should be in the snapshot.
  • corruptSnapshot
    Corrupt the specified snapshot by deleting some files.
  • confirmSnapshotValid,
  • corruptSnapshot,
  • createPut,
  • createTable,
  • expectSnapshotDoneException,
  • getSplitKeys,
  • listHFileNames,
  • snapshot,
  • verifyReplicasCameOnline

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • JFrame (javax.swing)
  • Top plugins for WebStorm
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