Skip to content

Commit

Permalink
Merge pull request #4965 from inception-project/bugfix/4964-Flash-mes…
Browse files Browse the repository at this point in the history
…sage-shown-when-trying-to-query-during-index-rebuild-shows-wrong-progress

#4964 - Flash message shown when trying to query during index rebuild shows wrong progress
  • Loading branch information
reckart authored Jul 28, 2024
2 parents 0a667ff + d79be0f commit 42c5a3a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ public boolean isCancelled()
@Deprecated
public synchronized Progress toProgress()
{
return new Progress(maxProgress, progress);
return new Progress(progress, maxProgress);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private synchronized IndexWriter getIndexWriter() throws IOException
_indexWriter = createIndexWriter();
return _indexWriter;
}
catch (IOException e) {
catch (IOException | IllegalArgumentException e) {
if (LOG.isDebugEnabled()) {
LOG.warn("Unable to read MTAS index: {}. Deleting index so it can be rebuilt.",
e.getMessage(), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ private void executeSearchResultsGroupedQuery(AjaxRequestTarget aTarget)
return;
}
catch (Exception e) {
error("Error in the query: " + e.getMessage());
error("Query error: " + e.getMessage());
aTarget.addChildren(getPage(), IFeedback.class);
resultsProvider.emptyQuery();
return;
Expand Down

0 comments on commit 42c5a3a

Please sign in to comment.