asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murtadha Hubail (Code Review)" <>
Subject Change in asterixdb[master]: ASTERIXDB-1425 & ASTERIXDB-1450: Fix LogReader random reads
Date Fri, 20 May 2016 20:39:19 GMT
Murtadha Hubail has posted comments on this change.

Change subject: ASTERIXDB-1425 & ASTERIXDB-1450: Fix LogReader random reads

Patch Set 5:

File asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/logging/

Line 563:         untouchLogFile(logFileRef.getLogFileId());
> Why the split between close and untouch?
I moved the close to the logManager. However, I'm passing the file channel from the TxnLogFile
because I don't want to provide public access to it.

Line 583:                 }
> Is it the case that if the readercount is 0, we don't close the channel unt
I'm not sure I understand what you meant by this, but a channel is closed per closeLogFile(.)
call since each reader has its own channel. However, the log file is not deleted until the
readerCount is 0.
File asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/logging/

Line 271:                     continue;
> Didn't it use to be that truncated would do what LARGE_RECORD does now? How
No, this used to throw an exception in the truncated case. A truncated log could either be
too big or we ran out of bytes to read. However, the log header information is guaranteed
to fit in the regular size buffer. After reading the header information, based on the log
size, we decide whether it is too big (LARGE_RECORD) or we just ran out of bytes to read and
need to refill the buffer.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I1c75ca4a7c8fe197451126392389d4baecbd7e45
Gerrit-PatchSet: 5
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Murtadha Hubail <>
Gerrit-Reviewer: Ian Maxon <>
Gerrit-Reviewer: Jenkins <>
Gerrit-Reviewer: Murtadha Hubail <>
Gerrit-Reviewer: Young-Seok Kim <>
Gerrit-HasComments: Yes

View raw message