Skip to content

Fix the issue of the "patching" status: #170#173

Merged
obrienben merged 31 commits into
masterfrom
fix/issue-170
Nov 12, 2025
Merged

Fix the issue of the "patching" status: #170#173
obrienben merged 31 commits into
masterfrom
fix/issue-170

Conversation

@leefrank9527
Copy link
Copy Markdown
Contributor

Fix the issue of the "patching" status:

  1. Refactored the process of indexer: using the CompleteFuture to execute the multiple indexer threads, and simplified the class of the indexers.
  2. Skip the duplicated indexing request for the same harvest result.
  3. Simplified the process of visualization indexing and patching process.
  4. Execute the screenshot subprocess in a new thread so the main process will not be blocked.
  5. Extand the "Indexing Result" for the finalizeIndex API. The status of the harvest results will be updataed only if the indexing is finished successfully. The status of the target instances will be updated to "Harvested" if the indexing is finished, succeed or failed.
  6. Added the "Abort" and "Restart Indexing" buttons on UI for the patching harvest results. So the users could try to retry or discard the failed patching harvest results.

leefrank9527 and others added 25 commits September 11, 2024 14:11
…zing the indexing after all the indexers completed
 | 
<a href="#" onclick="javascript: return clickReIndex(<c:out value="${hr.oid}"/>);">Restart Indexing</a>
</c:when>
<c:when test="${instance.state eq 'Patching' && wct:xHoursElapsed(6,hr.creationDate)}">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this time-out value of 6 (hours) be configurable or at least be defined as a constant somewhere?

@leefrank9527
Copy link
Copy Markdown
Contributor Author

@hannakoppelaar @obrienben : Have updated the PR to made the elapsed hours configurable. Very appreciate if you could have a review of the updates.

Copy link
Copy Markdown
Collaborator

@hannakoppelaar hannakoppelaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good! The newly added lines of logging (target-instance-results.jsp and Functions.java) may be more useful at debug level than at info level, but I leave that to your judgement.

@leefrank9527
Copy link
Copy Markdown
Contributor Author

@hannakoppelaar Have changed the log level of the newly added lines to debug.

@obrienben obrienben merged commit f483c18 into master Nov 12, 2025
@obrienben obrienben deleted the fix/issue-170 branch January 22, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants