rocksdb/java/org/rocksdb
fyrz 56ef2caaa5 [RocksJava] - Hardening RocksIterator
RocksIterator will sometimes Sigsegv on dispose. Mainly thats related
to dispose order. If the related RocksDB instance is freed beforehand
RocksIterator.dispose() will fail.

Within this commit there is a major change to RocksIterator. RocksIterator
will hold a private reference to the RocksDB instance which created the
RocksIterator. So even if RocksDB is freed in the same GC cycle the
RocksIterator instances will be freed prior to related RocksDB instances.

Another aspect targets the dispose logic if the RocksDB is freed previously
and already gc`ed. On dispose of a RocksIterator the dispose logic will check
if the RocksDB instance points to an initialized DB. If not the dispose logic
will not perform any further action.

The crash can be reproduced by using the related test provided within this
commit.

Related information: This relates to @adamretter`s facebook rocksdb-dev group
post about SigSegv on RocksIterator.dispose().
2014-10-27 23:20:12 +01:00
..
benchmark 32-Bit RocksJava resolution for jlong overflows 2014-10-12 22:42:18 +02:00
test [RocksJava] - Hardening RocksIterator 2014-10-27 23:20:12 +01:00
util fix mis-named jar in JNI loader 2014-09-29 10:42:00 -07:00
AbstractComparator.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
AbstractSlice.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
BackupableDB.java Merge pull request #334 from fyrz/JavaDoc-Cleanup 2014-10-03 14:47:30 -07:00
BackupableDBOptions.java Listing of changes 2014-10-03 11:59:54 +02:00
BlockBasedTableConfig.java Listing of changes 2014-10-03 11:59:54 +02:00
BloomFilter.java Improved JavaDoc 2014-10-07 22:21:34 +02:00
ColumnFamilyHandle.java [RocksJava] Column family support 2014-10-13 10:34:52 +02:00
CompactionStyle.java JavaDoc improvements on RocksJava 2014-10-12 22:41:59 +02:00
Comparator.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
ComparatorOptions.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
CompressionType.java JavaDoc improvements on RocksJava 2014-10-12 22:41:59 +02:00
DirectComparator.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
DirectSlice.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
Filter.java [Java] Generalize dis-own native handle and refine dispose framework. 2014-05-28 18:16:29 -07:00
GenericRateLimiterConfig.java Lint changes 2014-10-03 21:43:47 +02:00
HashLinkedListMemTableConfig.java [RocksJava] Memtables update to 3.6 2014-10-23 21:10:17 +02:00
HashSkipListMemTableConfig.java [RocksJava] Memtables update to 3.6 2014-10-23 21:10:17 +02:00
HistogramData.java Fix white spaces 2014-04-16 21:55:15 -07:00
HistogramType.java Fix white spaces 2014-04-16 21:55:15 -07:00
MemTableConfig.java 32-Bit RocksJava resolution for jlong overflows 2014-10-12 22:42:18 +02:00
NativeLibraryLoader.java fix mis-named jar in JNI loader 2014-09-29 10:42:00 -07:00
Options.java Feature - Implement Java API for Comparator and Slice. Allows use of 2014-10-21 15:52:27 +01:00
PlainTableConfig.java [Java] Add Java bindings for memtables and sst format. 2014-04-21 15:40:46 -07:00
RateLimiterConfig.java Listing of changes 2014-10-03 11:59:54 +02:00
ReadOptions.java Integrated changes due to review bei ankgup87 2014-10-26 13:27:43 +01:00
RestoreBackupableDB.java Listing of changes 2014-10-03 11:59:54 +02:00
RestoreOptions.java Listing of changes 2014-10-03 11:59:54 +02:00
RocksDB.java [RocksJava] - Hardening RocksIterator 2014-10-27 23:20:12 +01:00
RocksDBException.java Add statistics object 2014-04-14 21:06:13 -07:00
RocksEnv.java Minor adjustment to prevent two warnings 2014-10-12 22:41:59 +02:00
RocksIterator.java [RocksJava] - Hardening RocksIterator 2014-10-27 23:20:12 +01:00
RocksObject.java Listing of changes 2014-10-03 11:59:54 +02:00
SkipListMemTableConfig.java [RocksJava] Memtables update to 3.6 2014-10-23 21:10:17 +02:00
Slice.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
Snapshot.java [RocksJava] Support Snapshots 2014-10-25 11:10:19 +02:00
Statistics.java Fix formatting issues 2014-04-18 10:48:48 -07:00
StatisticsCollector.java JavaDoc improvements on RocksJava 2014-10-12 22:41:59 +02:00
StatisticsCollectorCallback.java JavaDoc improvements on RocksJava 2014-10-12 22:41:59 +02:00
StatsCollectorInput.java Lint changes 2014-10-03 21:43:47 +02:00
TableFormatConfig.java [Java] Add Java bindings for memtables and sst format. 2014-04-21 15:40:46 -07:00
TickerType.java Fix white spaces 2014-04-16 21:55:15 -07:00
VectorMemTableConfig.java [RocksJava] Memtables update to 3.6 2014-10-23 21:10:17 +02:00
WriteBatch.java [RocksJava] Column family support 2014-10-13 10:34:52 +02:00
WriteBatchTest.java Fixed Findbugs issues 2014-10-03 12:20:40 +02:00
WriteOptions.java [Java] Generalize dis-own native handle and refine dispose framework. 2014-05-28 18:16:29 -07:00