Thanks Josh, are you using IntelliJ or Eclipse? This is one of those things that has annoyed me for a while but I never really bothered to look at it in detail, your comment made me do it.
I think IntelliJ by default always suspends all threads when it hits a breakpoint but you can manually switch it to suspend a thread only as I just found out. That should help. I'll try. On Thu, Aug 16, 2018 at 4:05 PM, Josh Elser <els...@apache.org> wrote: > I'd guess this depends on where you're setting the breakpoints -- I > haven't run into the same problem you're describing. > > Most of the time I have to do this, it's either in an RPC handler thread > or in a daemon thread we spawned off for some specific purpose. These would > naturally not preclude the RS from continuing to talk to ZK or the Master. > > > On 8/15/18 11:46 PM, Lars Francke wrote: > >> Hi everyone, >> >> this might sound like a stupid question but how do you go about debugging >> HBase? (With the Java debugger I mean) >> >> I use IntelliJ to attach to the running Master or RegionServer as needed, >> set breakpoints etc. >> >> But every time I do so the connection to ZK times out and Master or RS are >> declared dead. I _always_ forget to set the timeout high enough. >> >> I'm using IntelliJ. >> >> Are you doing anything differently? Is there a way to not pause all >> threads >> when debugging so the heartbeats to ZK keep on going? >> >> Thanks, >> Larss >> >>