Authored by 胡古飞

revert tbl job

... ... @@ -88,13 +88,13 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware {
logger.info("indexRebuildJob rebuildSuggestIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
}
// @Scheduled(cron = "0 50 * * * ?")
// public void rebuildTblProductIndex() {
// long begin = System.currentTimeMillis();
// logger.info("indexRebuildJob rebuildTblProductIndex start----[begin={}]", begin);
// this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_TBLPRODUCT);
// logger.info("indexRebuildJob rebuildTblProductIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
// }
@Scheduled(cron = "0 50 * * * ?")
public void rebuildTblProductIndex() {
long begin = System.currentTimeMillis();
logger.info("indexRebuildJob rebuildTblProductIndex start----[begin={}]", begin);
this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_TBLPRODUCT);
logger.info("indexRebuildJob rebuildTblProductIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
}
private void rebuildIndexWithlog(String indexName) {
try {
... ...
... ... @@ -190,7 +190,7 @@ public class IndexController implements ApplicationEventPublisherAware {
if (rebuildFlagService.isRebuilding()) {
return getResultMap(400, "current has index rebuilding,please wait......");
}
//indexRebuildJob.rebuildTblProductIndex();
indexRebuildJob.rebuildTblProductIndex();
indexRebuildJob.execute();
suggestionDiscoveryJob.execute();
suggestionCounterJob.execute();
... ...