Repository: atlas Updated Branches: refs/heads/master 8a57e6571 -> 745b520b2
ATLAS-2452: updated HBase hook to fix incorrect value assigned to hbase_table.isReadOnly attribute Signed-off-by: Madhan Neethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/c3a684fd Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/c3a684fd Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/c3a684fd Branch: refs/heads/master Commit: c3a684fd5f5486772ad918e5896a2e27fc8cffb2 Parents: 8a57e65 Author: Sharmadha Sainath <[email protected]> Authored: Fri Feb 16 19:02:22 2018 +0530 Committer: Madhan Neethiraj <[email protected]> Committed: Fri Feb 16 08:22:49 2018 -0800 ---------------------------------------------------------------------- .../main/java/org/apache/atlas/hbase/bridge/HBaseAtlasHook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/c3a684fd/addons/hbase-bridge/src/main/java/org/apache/atlas/hbase/bridge/HBaseAtlasHook.java ---------------------------------------------------------------------- diff --git a/addons/hbase-bridge/src/main/java/org/apache/atlas/hbase/bridge/HBaseAtlasHook.java b/addons/hbase-bridge/src/main/java/org/apache/atlas/hbase/bridge/HBaseAtlasHook.java index 2074684..11f24a7 100644 --- a/addons/hbase-bridge/src/main/java/org/apache/atlas/hbase/bridge/HBaseAtlasHook.java +++ b/addons/hbase-bridge/src/main/java/org/apache/atlas/hbase/bridge/HBaseAtlasHook.java @@ -450,7 +450,7 @@ public class HBaseAtlasHook extends AtlasHook { if (htableDescriptor != null) { table.setAttribute(ATTR_TABLE_MAX_FILESIZE, htableDescriptor.getMaxFileSize()); table.setAttribute(ATTR_TABLE_REPLICATION_PER_REGION, htableDescriptor.getRegionReplication()); - table.setAttribute(ATTR_TABLE_ISREADONLY, htableDescriptor.getMaxFileSize()); + table.setAttribute(ATTR_TABLE_ISREADONLY, htableDescriptor.isReadOnly()); table.setAttribute(ATTR_TABLE_ISCOMPACTION_ENABLED, htableDescriptor.isCompactionEnabled()); table.setAttribute(ATTR_TABLE_DURABLILITY, (htableDescriptor.getDurability() != null ? htableDescriptor.getDurability().name() : null)); }
