feat(REQ-3004) - 优化 ES 同步的逻辑
This commit is contained in:
parent
f926bf02dd
commit
de8da186a9
@ -75,9 +75,9 @@ public class ElasticSearchBatchSyncListener {
|
|||||||
if (support(event)) {
|
if (support(event)) {
|
||||||
String processInstanceId = event.normalizedData(String.class);
|
String processInstanceId = event.normalizedData(String.class);
|
||||||
idSet.add(processInstanceId);
|
idSet.add(processInstanceId);
|
||||||
log.info("batch sync es processIds: {}", processInstanceId);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.warn("deduplication ids size: {}", idSet.size());
|
||||||
idSet.forEach(this::sync);
|
idSet.forEach(this::sync);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return ConsumeConcurrentlyStatus.RECONSUME_LATER;
|
return ConsumeConcurrentlyStatus.RECONSUME_LATER;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user