Rebuild the index is no longer working as expected. Restarting the JWP helps to update the Lucene so that recently created updates are included, but new updates following the process restarting are no longer taken into account
Logs JWP with IDX role
==================================================
20240312/083303.202 - 94 U00045014 Exception 'org.apache.lucene.index.IndexNotFoundException: "no segments\* file found in NIOFSDirectory@/SERVER1/uc4/<ROOT>/server/bin_21.0.8/indexCache/21_a lockFactory=org.apache.lucene.store.NativeFSLockFactory@3a6d4441: files: \[write.lock\]"' at 'org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run():715'.
20240312/083304.921 - 84 U00003524 UCUDB: ===> Time critical DB call\! OPC: 'SLCT' time: '1069ms'
20240312/083304.922 - 84 U00003525 UCUDB: ===> 'WITH changedObjects (oh_idnr, lev, ofs_moddate) AS (SELECT DISTINCT ofs_oh_idnr_o, 0 AS lev, ofs_moddate FROM ofs WHERE OFS_OH_Idnr_F <> OFS_OH_Idnr_O AND OFS_OH_Idnr_F IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?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,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) UNION ALL SELECT f.ofs_oh_idnr_o, lev + 1, o.ofs_moddate FROM ofs f, changedObjects o WHERE f.OFS_OH_Idnr_F <> f.OFS_OH_Idnr_O and o.oh_idnr = f.ofs_oh_idnr_f) SELECT changedObjects.oh_idnr, oh_client, max(ofs_moddate) AS oh_moddate, oh_otype FROM changedObjects INNER JOIN oh on changedObjects.oh_idnr = oh.oh_idnr GROUP BY changed objects.oh_idnr, oh_client, oh_otype'
==================================================
AE 21.0.8
This is a defect of the Automation Engine, especially on a very active business critical AE instance.
Workaround:
Stop and restart all JWPs node by node after importing a huge transport case.
Solution:
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Automation Engine
Automation.Engine 21.0.10 - Available
Automation Engine 24.1.0 - Available
This affects big systems with a lot of objects in particular, there are a lot of objects that change, so the whole "re-indexing" takes a while.
The process is busy, but since the objects are already indexed, a trace shows:
===============================
Search index trace: Object with: oh-idnr: 1515543, oh-client: 8400, oh-type: JOBP, is already indexed -> not re-indexing
===============================
Bug ID: AE-36627
Bug Title: Search index on productive system not updating after AAI config
Public Description: A problem has been fixed where a JWP caught up to many object changes for the search after it got the IDX role. This happened after a transport case loading only.