Application crashing again and again at read
- Dominant language
- C++
- Stars
- 32.1k
- Forks
- 6.9k
- Avg merge
- 32m
- Merged PRs (30d)
- 1
Description
Application is crashing again and again on below frame:
```
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 7874 org.rocksdb.RocksDB.get(JJ[BII)[B (0 bytes) @ 0x00007f6a528b3a53 [0x00007f6a528b3a00+0x53]
J 8223 C2 org.colombia.jcache.LocalCache.put(Ljava/lang/Object;Ljava/lang/Object;)V (435 bytes) @ 0x00007f6a52abd90c [0x00007f6a52abc5a0+0x136c]
J 8223 C2 org.colombia.jcache.LocalCache.put(Ljava/lang/Object;Ljava/lang/Object;)V (435 bytes) @ 0x00007f6a52abcb48 [0x00007f6a52abc5a0+0x5a8]
```
I have approx. 1 billion records in Rocks DB.
Maven config:
```xml
org.rocksdb
rocksdbjni
5.11.3
```
### Expected behavior
need to return value
### Actual behavior
application crashing
### Steps to reproduce the behavior
insert near about 1 billion records. i am having Map Db for `Map>`. After insertion while reading code its crashing.
Code:
```java
final Options options = new Options();
final Filter bloomFilter = new BloomFilter(10);
readOptions = new ReadOptions().setFillCache(false);
final RateLimiter rateLimiter = new RateLimiter(10000000, 10000, 10);
options.setCreateIfMissing(true).setWriteBufferSize(WRITE_BUFFER_SIZE)
.setMaxWriteBufferNumber(MAX_WRITE_BUFFERS).setMaxBackgroundCompactions(10)
.setCompressionType(CompressionType.NO_COMPRESSION).setCompactionStyle(CompactionStyle.LEVEL);
options.setIncreaseParallelism((int) (Runtime.getRuntime().availableProcessors() * 0.75d));
options.setCompactionPriority(CompactionPriority.MinOverlappingRatio);
options.setNumLevels(20);
options.setMemTableConfig(new SkipListMemTableConfig());
options.setAllowConcurrentMemtableWrite(true);
options.setAllowMmapReads(true);
options.setRateLimiter(rateLimiter);
final BlockBasedTableConfig table_options = new BlockBasedTableConfig();
table_options.setBlockCacheSize(BLOCK_CACHE_SIZE).setBlockSize(BLOCK_SIZE).setFilter(bloomFilter)
.setCacheNumShardBits(6).setBlockSizeDeviation(5).setBlockRestartInterval(10)
.setCacheIndexAndFilterBlocks(true).setHashIndexAllowCollision(false)
.setBlockCacheCompressedSize(64 * SizeUnit.KB).setBlockCacheCompressedNumShardBits(10);
options.setTableFormatConfig(table_options);
db = RocksDB.open(options, configuration.getDirPath() + "/" + cacheName);
wOptions = new WriteOptions();
wOptions.setSync(Boolean.TRUE);
//wOptions.setDisableWAL(true);
fOptions = new FlushOptions();
fOptions.setWaitForFlush(true);
```
Contributor guide
Assessment
This issue has not been assessed yet.