Commit c3a684fd by Sharmadha Sainath Committed by Madhan Neethiraj

ATLAS-2452: updated HBase hook to fix incorrect value assigned to hbase_table.isReadOnly attribute

parent 8a57e657
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment