writer null check if not initialized yet during syncrunner run (#2201)
Signed-off-by: Ramkrishna <ramkrishna@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: AnoopSamJohn<anoopsamjohn@apache.org>
This commit is contained in:
parent
8979202c7a
commit
b0863c5832
|
@ -329,7 +329,7 @@ public class FSHLog extends AbstractFSWAL<Writer> {
|
||||||
SyncFuture syncFuture = null;
|
SyncFuture syncFuture = null;
|
||||||
SafePointZigZagLatch zigzagLatch = null;
|
SafePointZigZagLatch zigzagLatch = null;
|
||||||
long sequence = -1L;
|
long sequence = -1L;
|
||||||
if (this.ringBufferEventHandler != null) {
|
if (this.writer != null && this.ringBufferEventHandler != null) {
|
||||||
// Get sequence first to avoid dead lock when ring buffer is full
|
// Get sequence first to avoid dead lock when ring buffer is full
|
||||||
// Considering below sequence
|
// Considering below sequence
|
||||||
// 1. replaceWriter is called and zigzagLatch is initialized
|
// 1. replaceWriter is called and zigzagLatch is initialized
|
||||||
|
|
Loading…
Reference in New Issue