You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2020/04/08 20:15:04 UTC
[GitHub] [lucene-solr] s1monw opened a new pull request #1418: LUCENE-9309:
Wait for #addIndexes merges when aborting merges
s1monw opened a new pull request #1418: LUCENE-9309: Wait for #addIndexes merges when aborting merges
URL: https://github.com/apache/lucene-solr/pull/1418
The SegmentMerger usage in IW#addIndexes(CodecReader...) might make changes
to the Directory while the IW tries to clean-up files on rollback. This
causes issues like FileNotFoundExceptions when IDF tries to remove temp files.
This changes adds a waiting mechanism to the abortMerges method that, in addition
to the running merges, also waits for merges in addIndices(CodecReader...)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] mikemccand commented on a change in pull request
#1418: LUCENE-9309: Wait for #addIndexes merges when aborting merges
Posted by GitBox <gi...@apache.org>.
mikemccand commented on a change in pull request #1418: LUCENE-9309: Wait for #addIndexes merges when aborting merges
URL: https://github.com/apache/lucene-solr/pull/1418#discussion_r406464525
##########
File path: lucene/core/src/java/org/apache/lucene/index/IndexWriter.java
##########
@@ -397,11 +393,12 @@ int availablePermits() {
HashSet<SegmentCommitInfo> mergingSegments = new HashSet<>();
private final MergeScheduler mergeScheduler;
+ private Set<SegmentMerger> runningAddIndexesMerges = new HashSet<>();
private LinkedList<MergePolicy.OneMerge> pendingMerges = new LinkedList<>();
private Set<MergePolicy.OneMerge> runningMerges = new HashSet<>();
private List<MergePolicy.OneMerge> mergeExceptions = new ArrayList<>();
private long mergeGen;
- private boolean stopMerges;
+ private boolean stopMerges; // TODOD make sure this is only changed once and never set back to false
Review comment:
Remove extra `D`?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] s1monw merged pull request #1418: LUCENE-9309: Wait
for #addIndexes merges when aborting merges
Posted by GitBox <gi...@apache.org>.
s1monw merged pull request #1418: LUCENE-9309: Wait for #addIndexes merges when aborting merges
URL: https://github.com/apache/lucene-solr/pull/1418
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org
[GitHub] [lucene-solr] s1monw commented on issue #1418: LUCENE-9309: Wait
for #addIndexes merges when aborting merges
Posted by GitBox <gi...@apache.org>.
s1monw commented on issue #1418: LUCENE-9309: Wait for #addIndexes merges when aborting merges
URL: https://github.com/apache/lucene-solr/pull/1418#issuecomment-611728116
@dnhatn @mikemccand can you take a look?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org