Map<Integer, IndexRecord> indexMap = HandlerSocketConnectorImpl.this.hsClient
.getIndexMap();
if (!indexMap.isEmpty()) {
for (IndexRecord record : indexMap.values()) {
try {
Command cmd = commandFactory
.createOpenIndexCommand(String
.valueOf(record.id), record.db,
record.tableName, record.indexName,
record.fieldList, record.filterFieldList);
session.write(cmd);
cmd.await(3000, TimeUnit.MILLISECONDS);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
} catch (Exception e) {
log
.error(