Uh oh!
There was an error while loading. Please reload this page.
HBASE-22582 The Compaction writer may access the lastCell whose memor… - #341
Conversation
openinx
commented
Jun 26, 2019
Will try to add few UT to address this bug. |
Apache-HBase
commented
Jun 26, 2019
🎊 +1 overall
This message was automatically generated. |
the-sakthi
commented
Jun 26, 2019
@openinx , I see some syntax/style fixes along with the "beforeShipped()" fix. I can confirm that there are other places as well in these 3 files were such changes could be welcomed. Do you think that we should include those as well here? |
openinx
commented
Jun 27, 2019
@jatsakthi Yeah, I think we can fix the checksytle in this issue. |
| "Interrupted while control throughput of compacting " + compactionName); | ||
| } finally { | ||
| throughputController.finish(compactionName); | ||
| ((ShipperListener) writer).beforeShipped(); |
There was a problem hiding this comment.
Below in Compactor, call beforeShipped() before finishing the throughputController. Its ok for any order. Still we can maintain one order.
There was a problem hiding this comment.
Yeah, I will provide a UT to address this bug but am working on other things now... will update this patch later.
| + String.format(", rate=%.2f kB/sec", (bytesWrittenProgressForLog / 1024.0) | ||
| / ((now - lastMillis) / 1000.0)) + ", throughputController is " | ||
| + throughputController); | ||
| double rate = (bytesWrittenProgressForLog / 1024.0) / ((now - lastMillis) / 1000.0); |
There was a problem hiding this comment.
What abt the String formatting on the Double value which we were doing. Missing that in log now. Below one more place too.
There was a problem hiding this comment.
Emm... maybe I need to format the rate first before put it as a arg in LOG.debug, thanks .
Apache-HBase
commented
Jul 3, 2019
💔 -1 overall
This message was automatically generated. |
| + String.format(", rate=%.2f kB/sec", (bytesWrittenProgressForLog / 1024.0) | ||
| / ((now - lastMillis) / 1000.0)) + ", throughputController is " | ||
| + throughputController); | ||
| String rate = String.format("%.2f", |
There was a problem hiding this comment.
if (LOG.isDebugEnabled())? Then can skip to generate "rate" String in production environment.
There was a problem hiding this comment.
Have an existed isDebugEnabled before in line#312 :-)
| + String.format(", rate=%.2f kB/sec", (bytesWrittenProgressForLog / 1024.0) | ||
| / ((now - lastMillis) / 1000.0)) + ", throughputController is " | ||
| + throughputController); | ||
| String rate = String.format("%.2f", |
There was a problem hiding this comment.
Ditto. if (LOG.isDebugEnabled())?
| throw new InterruptedIOException( | ||
| "Interrupted while control throughput of compacting " + compactionName); | ||
| } finally { | ||
| ((ShipperListener) writer).beforeShipped(); |
…y has been released when appending fileInfo in the final
…y has been released when appending fileInfo in the final (#341)
…y has been released when appending fileInfo in the final (#341)
…y has been released when appending fileInfo in the final (#341)
…y has been released when appending fileInfo in the final (#341)
Apache-HBase
commented
Jul 4, 2019
💔 -1 overall
This message was automatically generated. |
…y has been released when appending fileInfo in the final (apache#341)
…y has been released when appending fileInfo in the final (apache#341) (cherry picked from commit 77e5e5c) Change-Id: Id64bb99efa1b9916189e7179fd316be932ece093
…y has been released when appending fileInfo in the final