I’m trying to build a new Dremio installation in our DEV environment on OpenShift and it is failing to pass the dremio upgrade step…
I started a dremio-admin pod and I’m seeing the following errors:
dremio@dremio-admin:/opt/dremio/bin$ ./dremio-admin clean
Lock file to RocksDB is currently held by another process. Stop other process before retrying.
Failed to complete cleanup.
org.rocksdb.RocksDBException: While lock file: /opt/dremio/data/db/catalog/LOCK: No locks available
Suppressed: java.lang.IllegalStateException: #start was not invoked, so metadataManager is not available
Digging deeper I’m seeing RocksDB issues:
dremio@dremio-admin:/opt/dremio/bin$ cat /opt/dremio/data/db/catalog/LOG
2020/09/24-21:44:55.014406 7fc7dfddb700 RocksDB version: 5.14.2
2020/09/24-21:44:55.014470 7fc7dfddb700 Git sha rocksdb_build_git_sha:
2020/09/24-21:44:55.014475 7fc7dfddb700 Compile date Jul 6 2018
2020/09/24-21:44:55.014483 7fc7dfddb700 DB SUMMARY
2020/09/24-21:44:55.014958 7fc7dfddb700 SST files in /opt/dremio/data/db/catalog dir, Total Num: 0, files:
2020/09/24-21:44:55.014968 7fc7dfddb700 Write Ahead Log file in /opt/dremio/data/db/catalog:
2020/09/24-21:44:55.014972 7fc7dfddb700 Options.error_if_exists: 0
2020/09/24-21:44:55.014977 7fc7dfddb700 Options.create_if_missing: 1
2020/09/24-21:44:55.014979 7fc7dfddb700 Options.paranoid_checks: 1
2020/09/24-21:44:55.014981 7fc7dfddb700 Options.env: 0x7fc7c37fb060
2020/09/24-21:44:55.014983 7fc7dfddb700 Options.info_log: 0x7fc7da110ab0
2020/09/24-21:44:55.014984 7fc7dfddb700 Options.max_file_opening_threads: 16
2020/09/24-21:44:55.014986 7fc7dfddb700 Options.statistics: (nil)
2020/09/24-21:44:55.014988 7fc7dfddb700 Options.use_fsync: 0
2020/09/24-21:44:55.014989 7fc7dfddb700 Options.max_log_file_size: 0
2020/09/24-21:44:55.014991 7fc7dfddb700 Options.max_manifest_file_size: 18446744073709551615
2020/09/24-21:44:55.014992 7fc7dfddb700 Options.log_file_time_to_roll: 0
2020/09/24-21:44:55.014994 7fc7dfddb700 Options.keep_log_file_num: 1000
2020/09/24-21:44:55.014995 7fc7dfddb700 Options.recycle_log_file_num: 0
2020/09/24-21:44:55.014997 7fc7dfddb700 Options.allow_fallocate: 1
2020/09/24-21:44:55.014998 7fc7dfddb700 Options.allow_mmap_reads: 0
2020/09/24-21:44:55.015000 7fc7dfddb700 Options.allow_mmap_writes: 0
2020/09/24-21:44:55.015001 7fc7dfddb700 Options.use_direct_reads: 0
2020/09/24-21:44:55.015002 7fc7dfddb700 Options.use_direct_io_for_flush_and_compaction: 0
2020/09/24-21:44:55.015004 7fc7dfddb700 Options.create_missing_column_families: 0
2020/09/24-21:44:55.015005 7fc7dfddb700 Options.db_log_dir:
2020/09/24-21:44:55.015007 7fc7dfddb700 Options.wal_dir: /opt/dremio/data/db/catalog
2020/09/24-21:44:55.015008 7fc7dfddb700 Options.table_cache_numshardbits: 6
2020/09/24-21:44:55.015010 7fc7dfddb700 Options.max_subcompactions: 1
2020/09/24-21:44:55.015011 7fc7dfddb700 Options.max_background_flushes: -1
2020/09/24-21:44:55.015013 7fc7dfddb700 Options.WAL_ttl_seconds: 300
2020/09/24-21:44:55.015014 7fc7dfddb700 Options.WAL_size_limit_MB: 0
2020/09/24-21:44:55.015016 7fc7dfddb700 Options.manifest_preallocation_size: 4194304
2020/09/24-21:44:55.015017 7fc7dfddb700 Options.is_fd_close_on_exec: 1
2020/09/24-21:44:55.015019 7fc7dfddb700 Options.advise_random_on_open: 1
2020/09/24-21:44:55.015020 7fc7dfddb700 Options.db_write_buffer_size: 0
2020/09/24-21:44:55.015022 7fc7dfddb700 Options.write_buffer_manager: 0x7fc7da10fdc0
2020/09/24-21:44:55.015023 7fc7dfddb700 Options.access_hint_on_compaction_start: 1
2020/09/24-21:44:55.015025 7fc7dfddb700 Options.new_table_reader_for_compaction_inputs: 0
2020/09/24-21:44:55.015026 7fc7dfddb700 Options.random_access_max_buffer_size: 1048576
2020/09/24-21:44:55.015030 7fc7dfddb700 Options.use_adaptive_mutex: 0
2020/09/24-21:44:55.015032 7fc7dfddb700 Options.rate_limiter: (nil)
2020/09/24-21:44:55.015035 7fc7dfddb700 Options.sst_file_manager.rate_bytes_per_sec: 0
2020/09/24-21:44:55.015036 7fc7dfddb700 Options.wal_recovery_mode: 2
2020/09/24-21:44:55.015042 7fc7dfddb700 Options.enable_thread_tracking: 0
2020/09/24-21:44:55.015044 7fc7dfddb700 Options.enable_pipelined_write: 0
2020/09/24-21:44:55.015045 7fc7dfddb700 Options.allow_concurrent_memtable_write: 1
2020/09/24-21:44:55.015047 7fc7dfddb700 Options.enable_write_thread_adaptive_yield: 1
2020/09/24-21:44:55.015048 7fc7dfddb700 Options.write_thread_max_yield_usec: 100
2020/09/24-21:44:55.015050 7fc7dfddb700 Options.write_thread_slow_yield_usec: 3
2020/09/24-21:44:55.015051 7fc7dfddb700 Options.row_cache: None
2020/09/24-21:44:55.015053 7fc7dfddb700 Options.wal_filter: None
2020/09/24-21:44:55.015054 7fc7dfddb700 Options.avoid_flush_during_recovery: 0
2020/09/24-21:44:55.015056 7fc7dfddb700 Options.allow_ingest_behind: 0
2020/09/24-21:44:55.015058 7fc7dfddb700 Options.preserve_deletes: 0
2020/09/24-21:44:55.015059 7fc7dfddb700 Options.two_write_queues: 0
2020/09/24-21:44:55.015061 7fc7dfddb700 Options.manual_wal_flush: 0
2020/09/24-21:44:55.015063 7fc7dfddb700 Options.max_background_jobs: 2
2020/09/24-21:44:55.015065 7fc7dfddb700 Options.max_background_compactions: -1
2020/09/24-21:44:55.015066 7fc7dfddb700 Options.avoid_flush_during_shutdown: 0
2020/09/24-21:44:55.015068 7fc7dfddb700 Options.writable_file_max_buffer_size: 1048576
2020/09/24-21:44:55.015069 7fc7dfddb700 Options.delayed_write_rate : 16777216
2020/09/24-21:44:55.015071 7fc7dfddb700 Options.max_total_wal_size: 0
2020/09/24-21:44:55.015072 7fc7dfddb700 Options.delete_obsolete_files_period_micros: 21600000000
2020/09/24-21:44:55.015074 7fc7dfddb700 Options.stats_dump_period_sec: 600
2020/09/24-21:44:55.015075 7fc7dfddb700 Options.max_open_files: -1
2020/09/24-21:44:55.015077 7fc7dfddb700 Options.bytes_per_sync: 0
2020/09/24-21:44:55.015078 7fc7dfddb700 Options.wal_bytes_per_sync: 0
2020/09/24-21:44:55.015079 7fc7dfddb700 Options.compaction_readahead_size: 0
2020/09/24-21:44:55.015081 7fc7dfddb700 Compression algorithms supported:
2020/09/24-21:44:55.015083 7fc7dfddb700 kZSTDNotFinalCompression supported: 1
2020/09/24-21:44:55.015089 7fc7dfddb700 kZSTD supported: 1
2020/09/24-21:44:55.015091 7fc7dfddb700 kXpressCompression supported: 0
2020/09/24-21:44:55.015093 7fc7dfddb700 kLZ4HCCompression supported: 1
2020/09/24-21:44:55.015095 7fc7dfddb700 kLZ4Compression supported: 1
2020/09/24-21:44:55.015096 7fc7dfddb700 kBZip2Compression supported: 1
2020/09/24-21:44:55.015098 7fc7dfddb700 kZlibCompression supported: 1
2020/09/24-21:44:55.015100 7fc7dfddb700 kSnappyCompression supported: 1
2020/09/24-21:44:55.015106 7fc7dfddb700 Fast CRC32 supported: Not supported on x86
2020/09/24-21:44:55.049247 7fc7dfddb700 [db/db_impl.cc:252] Shutdown: canceling all background work
2020/09/24-21:44:55.049368 7fc7dfddb700 [db/db_impl.cc:398] Shutdown complete
dremio@dremio-admin:/opt/dremio/bin$
Seems like Fast CRS32 issue? I tried to manually delete the LOCK file, but dremio-admin just creates a new LOCK file and complains RocksDB is locked.