Updates validation of replica_index and flush_enabled attributes