You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Prateek Maheshwari (JIRA)" <ji...@apache.org> on 2018/07/20 19:12:00 UTC

[jira] [Created] (SAMZA-1778) SIGSEGV when reading properties (metrics) on a closed RocksDB store

Prateek Maheshwari created SAMZA-1778:
-----------------------------------------

             Summary: SIGSEGV when reading properties (metrics) on a closed RocksDB store
                 Key: SAMZA-1778
                 URL: https://issues.apache.org/jira/browse/SAMZA-1778
             Project: Samza
          Issue Type: Bug
            Reporter: Prateek Maheshwari


Trying to read RocksDB store properties from the background metrics reporter thread on a closed store (e.g., during shutdown) can cause a SIGSEGV:

{code}
PasteIn
New
Help
Paste # 443701
reply raw paste details
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Stack: [0x00007fedede87000,0x00007fededf88000],  sp=0x00007fededf86420,  free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [librocksdbjni714355461034085572.so+0x27e37c]  Java_org_rocksdb_RocksDB_getProperty0__JLjava_lang_String_2I+0x5c
J 21051  org.rocksdb.RocksDB.getProperty0(JLjava/lang/String;I)Ljava/lang/String; (0 bytes) @ 0x00007fee1169f1c2 [0x00007fee1169f100+0xc2]
J 24648 C2 org.apache.samza.storage.kv.RocksDbKeyValueStore$$anonfun$openDB$4$$anonfun$apply$1.apply()Ljava/lang/Object; (5 bytes) @ 0x00007fee154bbcf0 [0x00007fee154bbca0+0x50]
J 24243 C2 org.apache.samza.metrics.MetricGroup$1.getValue()Ljava/lang/Object; (10 bytes) @ 0x00007fee13c45334 [0x00007fee13c452e0+0x54]
J 21889 C2 com.linkedin.samza.metrics.reporter.AmfReporter$$anonfun$run$2$$anonfun$apply$1$$anonfun$apply$2.apply(Lscala/Tuple2;)Lscala/Option; (489 bytes) @ 0x00007fee13dae2d8 [0x00007fee13daca20+0x18b8]
J 21898 C2 com.linkedin.samza.metrics.reporter.AmfReporter$$anonfun$run$2$$anonfun$apply$1$$anonfun$apply$2.apply(Ljava/lang/Object;)Ljava/lang/Object; (9 bytes) @ 0x00007fee12e03920 [0x00007fee12e038e0+0x40]
J 6244 C2 scala.collection.TraversableLike$$anonfun$map$1.apply(Ljava/lang/Object;)Ljava/lang/Object; (6 bytes) @ 0x00007fee113a0828 [0x00007fee113a07e0+0x48]
J 7257 C2 scala.collection.AbstractIterator.foreach(Lscala/Function1;)V (6 bytes) @ 0x00007fee12722d1c [0x00007fee12722ca0+0x7c]
J 25728 C2 scala.collection.TraversableLike$$anonfun$flatMap$1.apply(Ljava/lang/Object;)Ljava/lang/Object; (6 bytes) @ 0x00007fee15231bfc [0x00007fee15230920+0x12dc]
J 29441 C2 scala.collection.AbstractTraversable.flatMap(Lscala/Function1;Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object; (7 bytes) @ 0x00007fee152727dc [0x00007fee152723a0+0x43c]
J 30016 C2 com.linkedin.samza.metrics.reporter.AmfReporter$$anonfun$run$2.apply(Ljava/lang/Object;)Ljava/lang/Object; (12 bytes) @ 0x00007fee16105fe0 [0x00007fee16105de0+0x200]
J 25515 C2 scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(Ljava/lang/Object;)Ljava/lang/Object; (36 bytes) @ 0x00007fee155be6e4 [0x00007fee155be660+0x84]
J 8595 C2 scala.collection.immutable.List.foreach(Lscala/Function1;)V (32 bytes) @ 0x00007fee11f5bccc [0x00007fee11f5bbe0+0xec]
J 31030 C2 com.linkedin.samza.metrics.reporter.AmfReporter.run()V (130 bytes) @ 0x00007fee123deb78 [0x00007fee123de960+0x218]
J 23965% C2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (225 bytes) @ 0x00007fee1228f794 [0x00007fee1228f420+0x374]
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [libjvm.so+0x68c616]  JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x1056
V  [libjvm.so+0x68cb21]  JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x321
V  [libjvm.so+0x68cfc7]  JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*)+0x47
V  [libjvm.so+0x723d80]  thread_entry(JavaThread*, Thread*)+0xa0
V  [libjvm.so+0xa69dcf]  JavaThread::thread_main_inner()+0xdf
V  [libjvm.so+0xa69efc]  JavaThread::run()+0x11c
V  [libjvm.so+0x91d9d8]  java_start(Thread*)+0x108
C  [libpthread.so.0+0x7aa1]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 21051  org.rocksdb.RocksDB.getProperty0(JLjava/lang/String;I)Ljava/lang/String; (0 bytes) @ 0x00007fee1169f14c [0x00007fee1169f100+0x4c]
J 24648 C2 org.apache.samza.storage.kv.RocksDbKeyValueStore$$anonfun$openDB$4$$anonfun$apply$1.apply()Ljava/lang/Object; (5 bytes) @ 0x00007fee154bbcf0 [0x00007fee154bbca0+0x50]
J 24243 C2 org.apache.samza.metrics.MetricGroup$1.getValue()Ljava/lang/Object; (10 bytes) @ 0x00007fee13c45334 [0x00007fee13c452e0+0x54]
J 21889 C2 com.linkedin.samza.metrics.reporter.AmfReporter$$anonfun$run$2$$anonfun$apply$1$$anonfun$apply$2.apply(Lscala/Tuple2;)Lscala/Option; (489 bytes) @ 0x00007fee13dae2d8 [0x00007fee13daca20+0x18b8]
J 21898 C2 com.linkedin.samza.metrics.reporter.AmfReporter$$anonfun$run$2$$anonfun$apply$1$$anonfun$apply$2.apply(Ljava/lang/Object;)Ljava/lang/Object; (9 bytes) @ 0x00007fee12e03920 [0x00007fee12e038e0+0x40]
J 6244 C2 scala.collection.TraversableLike$$anonfun$map$1.apply(Ljava/lang/Object;)Ljava/lang/Object; (6 bytes) @ 0x00007fee113a0828 [0x00007fee113a07e0+0x48]
J 7257 C2 scala.collection.AbstractIterator.foreach(Lscala/Function1;)V (6 bytes) @ 0x00007fee12722d1c [0x00007fee12722ca0+0x7c]
J 25728 C2 scala.collection.TraversableLike$$anonfun$flatMap$1.apply(Ljava/lang/Object;)Ljava/lang/Object; (6 bytes) @ 0x00007fee15231bfc [0x00007fee15230920+0x12dc]
J 29441 C2 scala.collection.AbstractTraversable.flatMap(Lscala/Function1;Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object; (7 bytes) @ 0x00007fee152727dc [0x00007fee152723a0+0x43c]
J 30016 C2 com.linkedin.samza.metrics.reporter.AmfReporter$$anonfun$run$2.apply(Ljava/lang/Object;)Ljava/lang/Object; (12 bytes) @ 0x00007fee16105fe0 [0x00007fee16105de0+0x200]
J 25515 C2 scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(Ljava/lang/Object;)Ljava/lang/Object; (36 bytes) @ 0x00007fee155be6e4 [0x00007fee155be660+0x84]
J 8595 C2 scala.collection.immutable.List.foreach(Lscala/Function1;)V (32 bytes) @ 0x00007fee11f5bccc [0x00007fee11f5bbe0+0xec]
J 31030 C2 com.linkedin.samza.metrics.reporter.AmfReporter.run()V (130 bytes) @ 0x00007fee123deb78 [0x00007fee123de960+0x218]
J 23965% C2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V (225 bytes) @ 0x00007fee1228f794 [0x00007fee1228f420+0x374]
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
This paste will expire on 2018 Sep 18
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)