Repository: phoenix Updated Branches: refs/heads/master 3102d8edf -> 0cc8115a1
PHOENIX-1293 By default we should not disable wal for immutable indexes otherwise we end up in data loss on RS failure Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/0cc8115a Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/0cc8115a Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/0cc8115a Branch: refs/heads/master Commit: 0cc8115a13514c76871665bf8802d4ad9e014fc4 Parents: 3102d8e Author: Rajeshbabu Chintaguntla <[email protected]> Authored: Mon Sep 29 06:49:05 2014 +0530 Committer: Rajeshbabu Chintaguntla <[email protected]> Committed: Mon Sep 29 07:28:23 2014 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/phoenix/schema/MetaDataClient.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/0cc8115a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java index 5be8c3e..3b799bf 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java @@ -1060,9 +1060,7 @@ public class MetaDataClient { boolean disableWAL = false; Boolean disableWALProp = (Boolean) tableProps.remove(PhoenixDatabaseMetaData.DISABLE_WAL); - if (disableWALProp == null) { - disableWAL = isParentImmutableRows; // By default, disable WAL for immutable indexes - } else { + if (disableWALProp != null) { disableWAL = disableWALProp; } // Delay this check as it is supported to have IMMUTABLE_ROWS and SALT_BUCKETS defined on views
