private int getTableWrapperSizeWithoutMaps() {
      Class<?> clazz = TableWrapper.class;
      Field[] fields = clazz.getDeclaredFields();
      int size = 0;
      for (Field field : fields) {
        if (field.getType().equals(ConcurrentHashMap.class)) {
          continue;
        }
        if (field.getType().equals(SharedCache.class)) {
          continue;
        }
        try {
          field.setAccessible(true);
          Object val = field.get(this);
          ObjectEstimator oe = getMemorySizeEstimator(field.getType());
          if (oe != null) {
            size += oe.estimate(val, sizeEstimators);
          }
        } catch (Exception ex) {
          LOG.error("Not able to estimate size.", ex);
        }
      }

      return size;
    }
this flag is used to validate/invalidate cached constraints snapshot.
All table constraints are update successfully either via updater thread or
while create_table_with_constraint api then it is set to true else
false and redirect all the call to raw metastore.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/cache/SharedCache.java