rocksdb/java/org/rocksdb
fyrz e61f38e5a0 [RocksJava] Fix native library loader
Summary:
Prior to this the native library loader instance didn`t
care about a state. So if library loading was called multiple
times, multiple copies of the shared object were put into
the tmp folder and loaded into the JVM.

This changed within this commit to the following behavior:

- library loading is now synchronized
- library is loaded within the first call
- if loading was successful the library loaded sets a flag
- every subsequent call checks for a boolean flag indicating if there was
  already a successful attempt

Test Plan:
- Execute example and watch tmp folder while the example is running

- After this patch only one shared object will be in the tmp folder

Usual tests:
- make rocksdbjava jtest
- mvn -f rocksjni.pom package

Reviewers: adamretter, ankgup87, yhchiang

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D32133
2015-01-24 16:55:28 +01:00
..
benchmark Integrated changes from D29571 2014-12-02 19:56:45 +01:00
test [RocksJava] ReadOptions support in Iterators 2015-01-23 08:02:55 +01:00
util [RocksJava] Code-cleanup + Java7 warnings removed 2014-11-12 20:42:25 +01:00
AbstractComparator.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01:00
AbstractRocksIterator.java [RocksJava] JavaDoc errors in Java8 2015-01-15 21:56:46 +01:00
AbstractSlice.java suppress JDK8 errors for #385 2014-11-06 16:25:53 +08:00
AbstractWriteBatch.java Abstractions for common write batch behaviour 2015-01-14 21:16:05 +00:00
BackupableDB.java [RocksJava] Integrated changes from D29019. 2014-11-20 23:34:07 +01:00
BackupableDBOptions.java [RocksJava] Integrated changes from D29019. 2014-11-20 23:34:07 +01:00
BackupInfo.java [RocksJava] - BackupInfos & Restore-/BackupableDB enhancements 2014-10-28 18:42:05 +01:00
BlockBasedTableConfig.java Incorporated review comments 2015-01-22 23:47:31 +01:00
BloomFilter.java suppress JDK8 errors for #385 2014-11-06 16:25:53 +08:00
BuiltinComparator.java [RocksJava] Options Refactoring 3.6 2014-10-30 22:26:39 +01:00
Checkpoint.java [RocksJava] Addressed comments in D28971 2014-11-25 23:33:42 +01:00
ChecksumType.java [RocksJava] Integrate review comments from yhchiang 2014-10-30 20:54:35 +01:00
ColumnFamilyDescriptor.java [RocksJava] Incorporated changes for D30525 2015-01-10 20:54:50 +01:00
ColumnFamilyHandle.java RocksJava - FindBugs issues 2014-12-02 09:58:17 +01:00
ColumnFamilyOptions.java [RocksJava] Incoroporated changes for D29013 2014-11-25 22:26:03 +01:00
ColumnFamilyOptionsInterface.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01: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 [RocksJava] JavaDoc correction 2014-12-18 22:19:57 +01:00
DBOptions.java Exposed IncreasedParallelism option to Java API as 2014-12-16 14:15:41 +00:00
DBOptionsInterface.java [RocksJava] JavaDoc correction 2014-12-18 22:19:57 +01:00
DirectComparator.java Fix code review comments raised in https://reviews.facebook.net/D22779 2014-10-21 15:52:28 +01:00
DirectSlice.java Implement WBWIRocksIterator for WriteBatchWithIndex in the Java API 2015-01-14 21:16:06 +00:00
EncodingType.java [RocksJava] Integrate review comments from yhchiang 2014-10-30 20:54:35 +01:00
Filter.java [Java] Generalize dis-own native handle and refine dispose framework. 2014-05-28 18:16:29 -07:00
FlushOptions.java [RocksJava] Flush functionality 2014-11-11 07:47:38 +01: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] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01: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
IndexType.java [RocksJava] Integrate review comments from yhchiang 2014-10-30 20:54:35 +01:00
InfoLogLevel.java [RocksJava] Incorporated review comments D28947 2014-11-15 00:14:36 +01:00
MemTableConfig.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01:00
MergeOperator.java [RocksJava] Code-cleanup + Java7 warnings removed 2014-11-12 20:42:25 +01:00
NativeLibraryLoader.java [RocksJava] Fix native library loader 2015-01-24 16:55:28 +01:00
Options.java Exposed IncreasedParallelism option to Java API as 2014-12-16 14:15:41 +00:00
PlainTableConfig.java [RocksJava] Code-cleanup + Java7 warnings removed 2014-11-12 20:42:25 +01:00
RateLimiterConfig.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01:00
ReadOptions.java [RocksJava] Testcase improvements 2014-11-14 20:59:36 +01:00
RestoreBackupableDB.java [RocksJava] Integrated changes from D29019. 2014-11-20 23:34:07 +01:00
RestoreOptions.java Listing of changes 2014-10-03 11:59:54 +02:00
RocksDB.java [RocksJava] ReadOptions support in Iterators 2015-01-23 08:02:55 +01:00
RocksDBException.java [RocksJava] Code-cleanup + Java7 warnings removed 2014-11-12 20:42:25 +01:00
RocksEnv.java [RocksJava] Improved tests within RocksJava 2014-11-14 20:59:36 +01:00
RocksIterator.java Abstractions for common iterator behaviour 2015-01-14 21:16:06 +00:00
RocksIteratorInterface.java [RocksJava] JavaDoc errors in Java8 2015-01-15 21:56:46 +01:00
RocksObject.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01:00
SkipListMemTableConfig.java [RocksJava] Memtables update to 3.6 2014-10-23 21:10:17 +02:00
Slice.java [RocksJava] Slice / DirectSlice improvements 2014-12-18 22:05:07 +01:00
Snapshot.java [RocksJava] Support Snapshots 2014-10-25 11:10:19 +02:00
Statistics.java [RocksJava] Code-cleanup + Java7 warnings removed 2014-11-12 20:42:25 +01:00
StatisticsCollector.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01: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
StringAppendOperator.java Integrated feedback from ankgup87 2014-10-13 15:37:29 -07:00
TableFormatConfig.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01:00
TickerType.java Fix white spaces 2014-04-16 21:55:15 -07:00
TtlDB.java [RocksJava] Integrated changes from D31449 2015-01-17 23:52:43 +01:00
VectorMemTableConfig.java [RocksJava] Memtables update to 3.6 2014-10-23 21:10:17 +02:00
WBWIRocksIterator.java Implement WBWIRocksIterator for WriteBatchWithIndex in the Java API 2015-01-14 21:16:06 +00:00
WriteBatch.java Abstractions for common write batch behaviour 2015-01-14 21:16:05 +00:00
WriteBatchInterface.java Extract the interface for a WriteBatch 2015-01-14 21:16:05 +00:00
WriteBatchWithIndex.java Implement WBWIRocksIterator for WriteBatchWithIndex in the Java API 2015-01-14 21:16:06 +00:00
WriteOptions.java [RocksJava] JavaDoc cleanup warnings with Java8 2014-11-12 20:51:04 +01:00