From 344da145cf6574013935429bd185f0f2565fac63 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Wed, 29 Jul 2009 00:58:40 +0000 Subject: [PATCH] HBASE-1718 Reuse of KeyValue during log replay could cause the wrong data to be used git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@798740 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 2 ++ src/java/org/apache/hadoop/hbase/regionserver/Store.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index f7f37f178eb..f06da5bd0d4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -300,6 +300,8 @@ Release 0.20.0 - Unreleased using copies HBASE-1647 Filter#filterRow is called too often, filters rows it shouldn't have (Doğacan Güney via Ryan Rawson and Stack) + HBASE-1718 Reuse of KeyValue during log replay could cause the wrong + data to be used IMPROVEMENTS HBASE-1089 Add count of regions on filesystem to master UI; add percentage diff --git a/src/java/org/apache/hadoop/hbase/regionserver/Store.java b/src/java/org/apache/hadoop/hbase/regionserver/Store.java index a0c4bff5bbd..b3b0c2de79f 100644 --- a/src/java/org/apache/hadoop/hbase/regionserver/Store.java +++ b/src/java/org/apache/hadoop/hbase/regionserver/Store.java @@ -329,6 +329,8 @@ public class Store implements HConstants, HeapSize { if (reporter != null && (editsCount % reportInterval) == 0) { reporter.progress(); } + // Instantiate a new KeyValue to perform Writable on + val = new KeyValue(); } if (LOG.isDebugEnabled()) { LOG.debug("Applied " + editsCount + ", skipped " + skippedEdits +