You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Pulsar RocksDB metadata driver causes JVM to crash in unit tests #19250
There's a crash in calling org.rocksdb.RocksDB.get
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f2848a874dc, pid=4771, tid=12583
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.5+8 (17.0.5+8) (build 17.0.5+8)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.5+8 (17.0.5+8, mixed mode, sharing, tiered, compressed class ptrs, z gc, linux-amd64)
# Problematic frame:
# C [librocksdbjni15077744768266540673.so+0x2944dc] rocksdb_get_helper(JNIEnv_*, rocksdb::DB*, rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*, _jbyteArray*, int, int)+0x1ac'.
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/runner/work/pulsar/pulsar/pulsar-metadata/core.4771)
#
# An error report file with more information is saved as:
# /home/runner/work/pulsar/pulsar/pulsar-metadata/hs_err_pid4771.log
#
# If you would like to submit a bug report, please visit:'.
# https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
In RocksDB, attempting to operate on a closed database instance leads to a crash. This behavior is documented in a related issue: facebook/rocksdb#5234
@Shawyeok yes, that's most likely the case. It's probably an issue in the shutdown sequence in tests. The scheduled jobs that might access the db should be closed before the db.
Activity
[improve][ci] Upload native crash dump files hs_err_*.log & core.* in CI
lhotari commentedon Feb 2, 2023
Here's another crash: https://gist.github.com/lhotari/00101de825a7858db17dc3f1d5d88291 .
This happened in https://github.com/apache/pulsar/actions/runs/4074068864/jobs/7018986238
github-actions commentedon Mar 5, 2023
The issue had no activity for 30 days, mark with Stale label.
lhotari commentedon Apr 4, 2023
Another one:
in https://github.com/apache/pulsar/actions/runs/4604751972/jobs/8136228746?pr=19945#step:11:1553
complete file https://gist.github.com/lhotari/b70ad90c74e3af27e44fc630ed4d6608
github-actions commentedon May 5, 2023
The issue had no activity for 30 days, mark with Stale label.
lhotari commentedon May 29, 2023
Another one:
full file: https://gist.github.com/lhotari/6f33d841b7aa41f0d602d6494ed585b6
in https://github.com/apache/pulsar/actions/runs/5113478831/jobs/9193024272#step:10:1941
github-actions commentedon Jun 29, 2023
The issue had no activity for 30 days, mark with Stale label.
lhotari commentedon Nov 1, 2023
Recent crash: https://gist.github.com/lhotari/6c66d0dc55a5104d4364cdbafe26d2e9
lhotari commentedon Nov 3, 2023
Another recent crash: https://gist.github.com/lhotari/9dc43fae65b12e9b812cdefc845ee96d
lhotari commentedon Dec 15, 2023
Yet another crash: https://gist.github.com/lhotari/177f186d9f73297fbfbce8b026824365
in https://github.com/apache/pulsar/actions/runs/7219125983/job/19669812711?pr=21723#step:11:295
lhotari commentedon Dec 20, 2023
Yet another crash: https://gist.github.com/lhotari/cb00532b4888acfda9053a5b4d47afee
(source: https://github.com/apache/pulsar/actions/runs/7272286944/job/19814369338#step:11:343)
lhotari commentedon Dec 20, 2023
@merlimat @hangc0276 Do we have any plans to update RocksDB version in Bookkeeper? We are currently on 7.9.2 and it seems that 7.10.2 is the newest 7.x: https://github.com/facebook/rocksdb/releases/tag/v7.10.2 . Newest release is 8.9.1: https://github.com/facebook/rocksdb/releases .
When do we usually upgrade the RocksDB version?
I'm a bit concerned about these crashes that are common in the pulsar-metadata tests. Are these a bug in Pulsar's metadata driver for RocksDB or is it a real bug in RocksDB itself?
lhotari commentedon Dec 22, 2023
Yet another crash, this time in broker tests.
full dump https://gist.github.com/lhotari/f35745b737e7107f13c8becea80f9da4
location: https://github.com/apache/pulsar/actions/runs/7299672614/job/19893235168#step:11:1590
lhotari commentedon Feb 13, 2024
A recent crash with Java 17.0.10 (it contains fix for JDK-8314024): https://gist.githubusercontent.com/lhotari/c21fbfdae7f3c59985480397570f9783/raw/7a73251dbd5864ebf6b5045ba1a76c5248f28033/hs_err_pid18047.log
lhotari commentedon Mar 19, 2024
Another recent crash:
https://gist.github.com/lhotari/c95a1bbf42880d49b0de508f7870f94a
Shawyeok commentedon Mar 20, 2024
@lhotari, thank you for your ongoing efforts in documenting this issue.
Unfortunately, the CI artifact has expired: https://github.com/apache/pulsar/actions/runs/7299672614
In RocksDB, attempting to operate on a closed database instance leads to a crash. This behavior is documented in a related issue: meta/rocksdb#5234
Below is a code snippet to demonstrate how to reproduce the crash:
lhotari commentedon Mar 20, 2024
@Shawyeok yes, that's most likely the case. It's probably an issue in the shutdown sequence in tests. The scheduled jobs that might access the db should be closed before the db.