{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/523","labels_url":"https://api.github.com/repos/facebook/rocksdb/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/facebook/rocksdb/issues/523/comments","events_url":"https://api.github.com/repos/facebook/rocksdb/issues/523/events","html_url":"https://github.com/facebook/rocksdb/issues/523","id":59415949,"number":523,"title":"Run jtest fails on Mac OSX 10.9.5 (RocksDB 3.9.1)","user":{"login":"VladRodionov","id":5613274,"avatar_url":"https://avatars.githubusercontent.com/u/5613274?v=3","gravatar_id":"","url":"https://api.github.com/users/VladRodionov","html_url":"https://github.com/VladRodionov","followers_url":"https://api.github.com/users/VladRodionov/followers","following_url":"https://api.github.com/users/VladRodionov/following{/other_user}","gists_url":"https://api.github.com/users/VladRodionov/gists{/gist_id}","starred_url":"https://api.github.com/users/VladRodionov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladRodionov/subscriptions","organizations_url":"https://api.github.com/users/VladRodionov/orgs","repos_url":"https://api.github.com/users/VladRodionov/repos","events_url":"https://api.github.com/users/VladRodionov/events{/privacy}","received_events_url":"https://api.github.com/users/VladRodionov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-01T20:32:27Z","updated_at":"2015-03-04T17:28:26Z","closed_at":null,"body":"When I run make jtest (after make rocksdbjni) I get the assertion error. \r\n\r\nVladimirs-MacBook-Pro:rocksdb-rocksdb-3.9.1 vrodionov$ make jtest\r\ncd java;/Library/Developer/CommandLineTools/usr/bin/make sample;/Library/Developer/CommandLineTools/usr/bin/make test;\r\nmkdir -p \"./test-libs/\"\r\ntest -s \"./test-libs/junit-4.12-beta-2.jar\" || curl -k -L -o ./test-libs/junit-4.12-beta-2.jar http://search.maven.org/remotecontent?filepath=junit/junit/4.12-beta-2/junit-4.12-beta-2.jar\r\ntest -s \"./test-libs/hamcrest-core-1.3.jar\" || curl -k -L -o ./test-libs/hamcrest-core-1.3.jar http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar\r\ntest -s \"./test-libs/mockito-all-1.9.5.jar\" || curl -k -L -o \"./test-libs/mockito-all-1.9.5.jar\" http://search.maven.org/remotecontent?filepath=org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar\r\ntest -s \"./test-libs/cglib-2.2.2.jar\" || curl -k -L -o \"./test-libs/cglib-2.2.2.jar\" http://search.maven.org/remotecontent?filepath=cglib/cglib/2.2.2/cglib-2.2.2.jar\r\ntest -s \"./test-libs/assertj-core-1.7.0.jar\" || curl -k -L -o \"./test-libs/assertj-core-1.7.0.jar\" http://central.maven.org/maven2/org/assertj/assertj-core/1.7.0/assertj-core-1.7.0.jar\r\njavac org/rocksdb/util/*.java org/rocksdb/*.java\r\njavac -cp rocksdbjni-3.9.1-osx.jar:./test-libs/junit-4.12-beta-2.jar:./test-libs/hamcrest-core-1.3.jar:./test-libs/mockito-all-1.9.5.jar:./test-libs/cglib-2.2.2.jar:./test-libs/assertj-core-1.7.0.jar:.:./* org/rocksdb/test/*.java\r\njavah -d ./include -jni org.rocksdb.AbstractComparator org.rocksdb.AbstractSlice org.rocksdb.BackupableDB org.rocksdb.BackupableDBOptions org.rocksdb.BlockBasedTableConfig org.rocksdb.BloomFilter org.rocksdb.Checkpoint org.rocksdb.ColumnFamilyHandle org.rocksdb.ColumnFamilyOptions org.rocksdb.Comparator org.rocksdb.ComparatorOptions org.rocksdb.DBOptions org.rocksdb.DirectComparator org.rocksdb.DirectSlice org.rocksdb.FlushOptions org.rocksdb.Filter org.rocksdb.GenericRateLimiterConfig org.rocksdb.HashLinkedListMemTableConfig org.rocksdb.HashSkipListMemTableConfig org.rocksdb.MergeOperator org.rocksdb.Options org.rocksdb.PlainTableConfig org.rocksdb.ReadOptions org.rocksdb.RestoreBackupableDB org.rocksdb.RestoreOptions org.rocksdb.RocksDB org.rocksdb.RocksEnv org.rocksdb.RocksIterator org.rocksdb.SkipListMemTableConfig org.rocksdb.Slice org.rocksdb.Statistics org.rocksdb.VectorMemTableConfig org.rocksdb.StringAppendOperator org.rocksdb.WriteBatch org.rocksdb.WriteBatch.Handler org.rocksdb.test.WriteBatchInternal org.rocksdb.test.WriteBatchTest org.rocksdb.WriteOptions \r\njavac -cp rocksdbjni-3.9.1-osx.jar RocksDBSample.java\r\njava -ea -Djava.library.path=.:../ -cp \".:./*\" -Xcheck:jni RocksDBSample /tmp/rocksdbjni\r\nRocksDBSample\r\ncaught the expceted exception -- org.rocksdb.RocksDBException: Invalid argument: /tmp/rocksdbjni_not_found: does not exist (create_if_missing is false)\r\nGet('hello') = world\r\n1 2 3 4 5 6 7 8 9 \r\n2 4 6 8 10 12 14 16 18 \r\n3 6 9 12 15 18 21 24 27 \r\n4 8 12 16 20 24 28 32 36 \r\n5 10 15 20 25 30 35 40 45 \r\n6 12 18 24 30 36 42 48 54 \r\n7 14 21 28 35 42 49 56 63 \r\n8 16 24 32 40 48 56 64 72 \r\n9 18 27 36 45 54 63 72 81 \r\n100 110 120 130 140 150 160 170 180 190 \r\n110 121 132 143 154 165 176 187 198 209 \r\n120 132 144 156 168 180 192 204 216 228 \r\n130 143 156 169 182 195 208 221 234 247 \r\n140 154 168 182 196 210 224 238 252 266 \r\n150 165 180 195 210 225 240 255 270 285 \r\n160 176 192 208 224 240 256 272 288 304 \r\n170 187 204 221 238 255 272 289 306 323 \r\n180 198 216 234 252 270 288 306 324 342 \r\n190 209 228 247 266 285 304 323 342 361 \r\ngetTickerCount() passed.\r\ngeHistogramData() passed.\r\niterator seekToFirst tests passed.\r\niterator seekToLastPassed tests passed.\r\niterator seek test passed.\r\niterator tests passed.\r\nmkdir -p \"./test-libs/\"\r\ntest -s \"./test-libs/junit-4.12-beta-2.jar\" || curl -k -L -o ./test-libs/junit-4.12-beta-2.jar http://search.maven.org/remotecontent?filepath=junit/junit/4.12-beta-2/junit-4.12-beta-2.jar\r\ntest -s \"./test-libs/hamcrest-core-1.3.jar\" || curl -k -L -o ./test-libs/hamcrest-core-1.3.jar http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar\r\ntest -s \"./test-libs/mockito-all-1.9.5.jar\" || curl -k -L -o \"./test-libs/mockito-all-1.9.5.jar\" http://search.maven.org/remotecontent?filepath=org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar\r\ntest -s \"./test-libs/cglib-2.2.2.jar\" || curl -k -L -o \"./test-libs/cglib-2.2.2.jar\" http://search.maven.org/remotecontent?filepath=cglib/cglib/2.2.2/cglib-2.2.2.jar\r\ntest -s \"./test-libs/assertj-core-1.7.0.jar\" || curl -k -L -o \"./test-libs/assertj-core-1.7.0.jar\" http://central.maven.org/maven2/org/assertj/assertj-core/1.7.0/assertj-core-1.7.0.jar\r\njavac org/rocksdb/util/*.java org/rocksdb/*.java\r\njavac -cp rocksdbjni-3.9.1-osx.jar:./test-libs/junit-4.12-beta-2.jar:./test-libs/hamcrest-core-1.3.jar:./test-libs/mockito-all-1.9.5.jar:./test-libs/cglib-2.2.2.jar:./test-libs/assertj-core-1.7.0.jar:.:./* org/rocksdb/test/*.java\r\njavah -d ./include -jni org.rocksdb.AbstractComparator org.rocksdb.AbstractSlice org.rocksdb.BackupableDB org.rocksdb.BackupableDBOptions org.rocksdb.BlockBasedTableConfig org.rocksdb.BloomFilter org.rocksdb.Checkpoint org.rocksdb.ColumnFamilyHandle org.rocksdb.ColumnFamilyOptions org.rocksdb.Comparator org.rocksdb.ComparatorOptions org.rocksdb.DBOptions org.rocksdb.DirectComparator org.rocksdb.DirectSlice org.rocksdb.FlushOptions org.rocksdb.Filter org.rocksdb.GenericRateLimiterConfig org.rocksdb.HashLinkedListMemTableConfig org.rocksdb.HashSkipListMemTableConfig org.rocksdb.MergeOperator org.rocksdb.Options org.rocksdb.PlainTableConfig org.rocksdb.ReadOptions org.rocksdb.RestoreBackupableDB org.rocksdb.RestoreOptions org.rocksdb.RocksDB org.rocksdb.RocksEnv org.rocksdb.RocksIterator org.rocksdb.SkipListMemTableConfig org.rocksdb.Slice org.rocksdb.Statistics org.rocksdb.VectorMemTableConfig org.rocksdb.StringAppendOperator org.rocksdb.WriteBatch org.rocksdb.WriteBatch.Handler org.rocksdb.test.WriteBatchInternal org.rocksdb.test.WriteBatchTest org.rocksdb.WriteOptions \r\njava -ea -Xcheck:jni -Djava.library.path=.:../ -cp \"rocksdbjni-3.9.1-osx.jar:./test-libs/junit-4.12-beta-2.jar:./test-libs/hamcrest-core-1.3.jar:./test-libs/mockito-all-1.9.5.jar:./test-libs/cglib-2.2.2.jar:./test-libs/assertj-core-1.7.0.jar:.:./*\" org.rocksdb.test.RocksJunitRunner org.rocksdb.test.BackupableDBOptionsTest org.rocksdb.test.BackupableDBTest org.rocksdb.test.BlockBasedTableConfigTest org.rocksdb.test.CheckPointTest org.rocksdb.test.ColumnFamilyOptionsTest org.rocksdb.test.ColumnFamilyTest org.rocksdb.test.ComparatorOptionsTest org.rocksdb.test.ComparatorTest org.rocksdb.test.DBOptionsTest org.rocksdb.test.DirectComparatorTest org.rocksdb.test.EnvironmentTest org.rocksdb.test.FilterTest org.rocksdb.test.FlushTest org.rocksdb.test.InfoLogLevelTest org.rocksdb.test.KeyMayExistTest org.rocksdb.test.MemTableTest org.rocksdb.test.MergeTest org.rocksdb.test.MixedOptionsTest org.rocksdb.test.OptionsTest org.rocksdb.test.PlainTableConfigTest org.rocksdb.test.ReadOnlyTest org.rocksdb.test.ReadOptionsTest org.rocksdb.test.RocksDBTest org.rocksdb.test.RocksEnvTest org.rocksdb.test.RocksIteratorTest org.rocksdb.test.SizeUnitTest org.rocksdb.test.SnapshotTest org.rocksdb.test.StatisticsCollectorTest org.rocksdb.test.WriteBatchHandlerTest org.rocksdb.test.WriteBatchTest org.rocksdb.test.WriteOptionsTest \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetSyncIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> shareTableFiles \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failBackupRateLimitIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failBackupDirIsNull \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> backupRateLimit \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failBackupDirIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> restoreRateLimit \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSyncIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failRestoreRateLimitIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failShareTableFilesIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> sync \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failDestroyOldDataIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> backupLogFiles \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failBackupLogFilesIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetRestoreRateLimitIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetDestroyOldDataIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> shareFilesWithChecksum \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetBackupLogFilesIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetBackupRateLimitIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> backupDir \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failShareFilesWithChecksumIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetShareTableFilesIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> failSetShareFilesWithChecksumIfDisposed \r\nRun: org.rocksdb.test.BackupableDBOptionsTest testing now -> destroyOldData \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> deleteBackup \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> purgeOldBackupsWithRestoreBackupableDb \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> restoreFromBackup \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> deleteBackupWithRestoreBackupableDB \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> restoreLatestBackup \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> purgeOldBackups \r\nRun: org.rocksdb.test.BackupableDBTest testing now -> backupDb \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockBasedTableWithFilter \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockSizeDeviation \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> noBlockCache \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockBasedTableWithoutFilter \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockCacheCompressedSize \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> cacheNumShardBits \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> indexType \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> hashIndexAllowCollision \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> cacheIndexAndFilterBlocks \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> checksumType \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockRestartInterval \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockSize \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> wholeKeyFiltering \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockCacheSize \r\nRun: org.rocksdb.test.BlockBasedTableConfigTest testing now -> blockCacheCompressedNumShardBits \r\nRun: org.rocksdb.test.CheckPointTest testing now -> checkPoint \r\nRun: org.rocksdb.test.CheckPointTest testing now -> failIfDbNotInitialized \r\nRun: org.rocksdb.test.CheckPointTest testing now -> failWithIllegalPath \r\nRun: org.rocksdb.test.CheckPointTest testing now -> failIfDbIsNull \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> compressionTypes \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> linkageOfPrepMethods \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> targetFileSizeMultiplier \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> expandedCompactionFactor \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> purgeRedundantKvsWhileFlush \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxBytesForLevelBase \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> bloomLocality \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> disableAutoCompactions \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> failColumnFamilyOptionsFromPropsWithIllegalValue \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> rateLimitDelayMaxMilliseconds \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxBytesForLevelMultiplier \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> minWriteBufferNumberToMerge \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> comparator \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> shouldSetTestPrefixExtractor \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxSequentialSkipInIterations \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> memTable \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> getColumnFamilyOptionsFromProps \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> failColumnFamilyOptionsFromPropsWithEmptyProps \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> verifyChecksumsInCompaction \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> sourceCompactionFactor \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> levelZeroFileNumCompactionTrigger \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> softRateLimit \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> arenaBlockSize \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> hardRateLimit \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> compactionStyles \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> inplaceUpdateSupport \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> minPartialMergeOperands \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> filterDeletes \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> numLevels \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxMemCompactionLevel \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> levelZeroSlowdownWritesTrigger \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> writeBufferSize \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> memtablePrefixBloomBits \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> targetFileSizeBase \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> failColumnFamilyOptionsFromPropsWithNullValue \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> inplaceUpdateNumLocks \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxWriteBufferNumber \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxSuccessiveMerges \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> memtablePrefixBloomProbes \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> maxGrandparentOverlapFactor \r\nRun: org.rocksdb.test.ColumnFamilyOptionsTest testing now -> levelZeroStopWritesTrigger \r\nRun: org.rocksdb.test.ColumnFamilyTest testing now -> iterators \r\nAssertion failed: (refs_ == 0), function ~ColumnFamilyData, file db/column_family.cc, line 299.\r\nmake[1]: *** [test] Abort trap: 6\r\nmake: *** [jtest] Error 2"},"comment":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/comments/77203856","html_url":"https://github.com/facebook/rocksdb/issues/523#issuecomment-77203856","issue_url":"https://api.github.com/repos/facebook/rocksdb/issues/523","id":77203856,"user":{"login":"VladRodionov","id":5613274,"avatar_url":"https://avatars.githubusercontent.com/u/5613274?v=3","gravatar_id":"","url":"https://api.github.com/users/VladRodionov","html_url":"https://github.com/VladRodionov","followers_url":"https://api.github.com/users/VladRodionov/followers","following_url":"https://api.github.com/users/VladRodionov/following{/other_user}","gists_url":"https://api.github.com/users/VladRodionov/gists{/gist_id}","starred_url":"https://api.github.com/users/VladRodionov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladRodionov/subscriptions","organizations_url":"https://api.github.com/users/VladRodionov/orgs","repos_url":"https://api.github.com/users/VladRodionov/repos","events_url":"https://api.github.com/users/VladRodionov/events{/privacy}","received_events_url":"https://api.github.com/users/VladRodionov/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T17:28:26Z","updated_at":"2015-03-04T17:28:26Z","body":"its a build issue, I suppose. On Mac OSX default build (make all, than make rocksdjava) enables assertions somehow. You should try building on Linux in DEBUG mode. \r\n\r\nI have pulled your changes but they did not fix all the issues with Java unit tests - there are more tests failing besides those you had fixed. "}}