Joseph Pallas
|
Posted: June 13, 2011 22:26 by Joseph Pallas
|
My instrumentation of normal RETURN seems to work fine, but when I instrument ERROR returns in the same fashion, I'm getting this exception at runtime:Exception in thread "main" java.lang.VerifyError: (class: org/apache/hadoop/hbase/client/HTable, method: getWriteBuffer signature: ()Ljava/util/ArrayList;) Expecting to find long on stack at org.apache.hadoop.hbase.client.MetaScanner.metaScan(MetaScanner.java:132) I have a wildcard method probe on HTable, like so: @OnMethod(clazz="org.apache.hadoop.hbase.client.HTable", method="/.*/", location=@Location(Kind.ERROR)) public static void error(@ProbeMethodName String probeMethod, @Duration long duration) This is the code for HTable.getWriteBuffer:
public ArrayList<Put> getWriteBuffer() {
return writeBuffer;
}
Any clues? joe |
Any known bugs in location Kind.ERROR instrumentation?
Replies: 3 - Last Post: June 15, 2011 09:49
by: Jaroslav Bachorik
by: Jaroslav Bachorik
showing 1 - 4 of 4
Jaroslav Bachorik
|
Posted: June 14, 2011 09:26 by Jaroslav Bachorik
|
|
Sounds odd. Plz, open a new issue for this problem, set following system properties: com.sun.btrace.dumpClasses=true com.sun.btrace.dumpDir=<dir to dump modified classes> by eg. modifying the "btrace" shell script and run your tracing session. Then locate the org/apache/hadoop/hbase/client/HTable class file and attach it to the issue. Then I will be able to analyze the problem caused by instrumentation. Thanks, -JB- |
Joseph Pallas
|
Posted: June 14, 2011 17:23 by Joseph Pallas
|
| I took a quick look at the instrumented code and it appears that the combination of @Duration and ERROR just doesn't work. See BTRACE-68 for specifics. |
Jaroslav Bachorik
|
Posted: June 15, 2011 09:49 by Jaroslav Bachorik
|
| Thanks! |
Replies: 3 - Last Post: June 15, 2011 09:49
by: Jaroslav Bachorik
by: Jaroslav Bachorik







