Skip to content

Commit

Permalink
size of commit reduced to limit the cloing operation duration
Browse files Browse the repository at this point in the history
  • Loading branch information
disk91 committed May 1, 2023
1 parent c5ec145 commit b7100b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/disk91/etl/service/HotspotCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ public synchronized void updateHotspot(Hotspot o) {
) {
modifications = 0;
lastModification = now;
long updated = heliumHotspotCache.commit(true,etlConfig.getCacheHotspotCommit()); // async commit to quit immediately
long updated = heliumHotspotCache.commit(true,20_000); // async commit to quit immediately, limit to 100 object every time
// avoid to have a parallel request to start as the async process can take a few mx to start and another pending updateHotspot takes
// the opportunity to run a concurrent request and consume memory we need
long s = Now.NowUtcMs() ; while ( !hotspotCacheAsync.isRunning() && ((Now.NowUtcMs()-s) < 10_000) );
Expand Down

0 comments on commit b7100b4

Please sign in to comment.