Ran make format
This commit is contained in:
parent
652d3580d4
commit
badf20081a
@ -45,7 +45,6 @@ public class MemoryUtilTest {
|
||||
new FlushOptions().setWaitForFlush(true);
|
||||
final RocksDB db =
|
||||
RocksDB.open(options, dbFolder1.getRoot().getAbsolutePath())) {
|
||||
|
||||
final List<RocksDB> dbs = new ArrayList<>(1);
|
||||
dbs.add(db);
|
||||
final Set<Cache> caches = new HashSet<>(1);
|
||||
@ -123,13 +122,14 @@ public class MemoryUtilTest {
|
||||
caches.add(cache1);
|
||||
caches.add(cache2);
|
||||
|
||||
for (final RocksDB db: dbs) {
|
||||
for (final RocksDB db : dbs) {
|
||||
db.put(key, value);
|
||||
db.flush(flushOptions);
|
||||
db.get(key);
|
||||
}
|
||||
|
||||
final Map<MemoryUsageType, Long> usage = MemoryUtil.getApproximateMemoryUsageByType(dbs, caches);
|
||||
final Map<MemoryUsageType, Long> usage =
|
||||
MemoryUtil.getApproximateMemoryUsageByType(dbs, caches);
|
||||
assertThat(usage.get(MemoryUsageType.kMemTableTotal)).isEqualTo(
|
||||
db1.getAggregatedLongProperty(MEMTABLE_SIZE) + db2.getAggregatedLongProperty(MEMTABLE_SIZE));
|
||||
assertThat(usage.get(MemoryUsageType.kMemTableUnFlushed)).isEqualTo(
|
||||
|
@ -79,8 +79,8 @@ public class TestUtil {
|
||||
*
|
||||
* @return the random int
|
||||
*/
|
||||
public static int intBetween(final Random random, final int minInclusive,
|
||||
final int maxInclusive) {
|
||||
public static int intBetween(
|
||||
final Random random, final int minInclusive, final int maxInclusive) {
|
||||
return random.nextInt((maxInclusive - minInclusive) + 1) + minInclusive;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user