public static void createIfNeededAndNotExists(Configuration conf, MasterServices masterServices)
    throws IOException {
    boolean replicationSinkTrackerEnabled = conf.getBoolean(REPLICATION_SINK_TRACKER_ENABLED_KEY,
      REPLICATION_SINK_TRACKER_ENABLED_DEFAULT);
    if (!replicationSinkTrackerEnabled) {
      LOG.info("replication sink tracker requests logging to table {} is disabled." + " Quitting.",
        REPLICATION_SINK_TRACKER_TABLE_NAME_STR);
      return;
    }
    if (!masterServices.getTableDescriptors().exists(REPLICATION_SINK_TRACKER_TABLE_NAME)) {
      LOG.info("{} table not found. Creating.", REPLICATION_SINK_TRACKER_TABLE_NAME_STR);
      masterServices.createTable(TABLE_DESCRIPTOR_BUILDER.build(), null, 0L, NO_NONCE);
    }
  }
{@link #REPLICATION_SINK_TRACKER_TABLE_NAME_STR} table name - can be enabled with config -
hbase.regionserver.replication.sink.tracker.enabled
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/master/ReplicationSinkTrackerTableCreator.java