} else {
byte[] tenantIdBytes = attributes.get(PhoenixRuntime.TENANT_ID_ATTRIB);
ImmutableBytesWritable tenantId =
tenantIdBytes == null ? null : new ImmutableBytesWritable(tenantIdBytes);
TenantCache cache = GlobalCache.getTenantCache(env, tenantId);
IndexMetaDataCache indexCache =
(IndexMetaDataCache) cache.getServerCache(new ImmutableBytesPtr(uuid));
if (indexCache == null) {
String msg = "key="+ServerCacheClient.idToString(uuid) + " region=" + env.getRegion();
SQLException e = new SQLExceptionInfo.Builder(SQLExceptionCode.INDEX_METADATA_NOT_FOUND)
.setMessage(msg).build().buildException();
ServerUtil.throwIOException("Index update failed", e); // will not return
}
indexMaintainers = indexCache.getIndexMaintainers();
}
return indexMaintainers;
}