Skip to content

Commit

Permalink
CNDB-12215 Replace [On|Off]HeapTrieMemtableIndexTest classes withTrie…
Browse files Browse the repository at this point in the history
…MemtableIndexTest and TrieMemtableIndexAllocationsHeapBuffersTest from main branch.
  • Loading branch information
djatnieks committed Dec 19, 2024
1 parent 7fdd10d commit 0272b19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 120 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@

package org.apache.cassandra.index.sai.memory;

import org.apache.cassandra.cql3.CQLTester;
import org.junit.BeforeClass;

import org.apache.cassandra.config.Config;
import org.apache.cassandra.db.memtable.TrieMemtable;
import org.apache.cassandra.io.compress.BufferType;
import org.junit.BeforeClass;

import org.junit.Ignore;

import static org.apache.cassandra.config.CassandraRelevantProperties.MEMTABLE_SHARD_COUNT;
import static org.junit.Assert.assertEquals;

public class AbstractTrieMemtableIndexTest extends TrieMemtableIndexTestBase
@Ignore
public abstract class TrieMemtableIndexTest extends TrieMemtableIndexTestBase
{
@BeforeClass
public static void setUpClass()
public static void setShardCount()
{
MEMTABLE_SHARD_COUNT.setInt(8);
CQLTester.setUpClass();
setup(Config.MemtableAllocationType.offheap_buffers);
assertEquals(TrieMemtable.BUFFER_TYPE, BufferType.OFF_HEAP);
}
Expand Down

0 comments on commit 0272b19

Please sign in to comment.