@Override protected void doRun() throws Exception { // if we have no pending merges and we are supposed to flush once merges have finished // we try to renew a sync commit which is the case when we are having a big merge after we // are inactive. If that didn't work we go and do a real flush which is ok since it only doesn't work // if we either have records in the translog or if we don't have a sync ID at all... // maybe even more important, we flush after all merges finish and we are inactive indexing-wise to // free up transient disk usage of the (presumably biggish) segments that were just merged if (tryRenewSyncCommit() == false) { flush(); } } });
if (tryRenewSyncCommit() == false) { flush(false, true);
@Override protected void doRun() throws Exception { // if we have no pending merges and we are supposed to flush once merges have finished // we try to renew a sync commit which is the case when we are having a big merge after we // are inactive. If that didn't work we go and do a real flush which is ok since it only doesn't work // if we either have records in the translog or if we don't have a sync ID at all... // maybe even more important, we flush after all merges finish and we are inactive indexing-wise to // free up transient disk usage of the (presumably biggish) segments that were just merged if (tryRenewSyncCommit() == false) { flush(); } } });
@Override protected void doRun() throws Exception { // if we have no pending merges and we are supposed to flush once merges have finished // we try to renew a sync commit which is the case when we are having a big merge after we // are inactive. If that didn't work we go and do a real flush which is ok since it only doesn't work // if we either have records in the translog or if we don't have a sync ID at all... // maybe even more important, we flush after all merges finish and we are inactive indexing-wise to // free up transient disk usage of the (presumably biggish) segments that were just merged if (tryRenewSyncCommit() == false) { flush(); } } });
@Override protected void doRun() throws Exception { // if we have no pending merges and we are supposed to flush once merges have finished // we try to renew a sync commit which is the case when we are having a big merge after we // are inactive. If that didn't work we go and do a real flush which is ok since it only doesn't work // if we either have records in the translog or if we don't have a sync ID at all... // maybe even more important, we flush after all merges finish and we are inactive indexing-wise to // free up transient disk usage of the (presumably biggish) segments that were just merged if (tryRenewSyncCommit() == false) { flush(); } } });
if (tryRenewSyncCommit() == false) { flush(false, true);
if (tryRenewSyncCommit() == false) { flush(false, true);
if (tryRenewSyncCommit() == false) { flush(false, true);
if (tryRenewSyncCommit() == false) { flush(false, true);