|
|
package com.yoho.search.comsumer.mq;
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.rabbitmq.client.Channel;
|
|
|
import com.yoho.consumer.dal.service.*;
|
|
|
import com.yoho.error.event.SearchEvent;
|
|
|
import com.yoho.search.comsumer.common.CostStatistics;
|
|
|
import com.yoho.search.comsumer.index.IYohoIndexService;
|
|
|
import com.yoho.search.core.es.utils.IgnoreSomeException;
|
|
|
import com.yoho.search.dal.service.*;
|
|
|
import com.yoho.search.model.Storage;
|
|
|
import com.yoho.search.service.utils.ConvertUtils;
|
|
|
import com.yoho.search.service.utils.EventReportEnum;
|
|
|
import com.yoho.core.dal.service.*;
|
|
|
import com.yoho.error.event.SearchEvent;
|
|
|
import com.yoho.search.service.utils.ISearchConstans;
|
|
|
import com.yoho.search.model.Storage;
|
|
|
import com.yoho.search.core.es.utils.IgnoreSomeException;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
...
|
...
|
@@ -61,7 +60,7 @@ public class StorageMqListener extends AbstractMqListener implements ChannelAwar |
|
|
} catch (Exception e) {
|
|
|
publisher.publishEvent(new SearchEvent(EventReportEnum.STORAGEMQLISTENER_ONMESSAGE.getEventName(),
|
|
|
EventReportEnum.STORAGEMQLISTENER_ONMESSAGE.getFunctionName(),
|
|
|
EventReportEnum.STORAGEMQLISTENER_ONMESSAGE.getMoudleName(),"exception",IgnoreSomeException.filterSomeException(e),null));
|
|
|
EventReportEnum.STORAGEMQLISTENER_ONMESSAGE.getMoudleName(),"exception", IgnoreSomeException.filterSomeException(e),null));
|
|
|
Thread.sleep(1000);
|
|
|
throw e;
|
|
|
}
|
...
|
...
|
|