openworld-maker opened a new pull request, #4216:
URL: https://github.com/apache/solr/pull/4216

   ## Description
   This PR addresses SOLR-18124 by adding tracing spans around UpdateLog 
replay/recovery.
   
   ### What changed
   - Added an overall replay span: `updatelog.replay`.
   - Added a per-log child span: `updatelog.replay.log`.
   - Added lightweight replay metadata on spans where already available:
     - replay context (`state`, `active_log`, `in_sorted_order`)
     - core name and db instance
     - total/replayed log counts and replayed op counts
     - per-log file name, size, replayed op count, error count, success flag
     - URP chain summary
   - Added error reporting to spans for replay exceptions.
   - Added `UpdateLogReplayTracingTest` to verify:
     - parent replay span exists
     - per-log child span exists
     - parent/child relationship is correct
     - key replay metadata attributes are present
   
   ### Notes
   - No intended functional change to UpdateLog replay behavior.
   - Instrumentation follows existing Solr tracing conventions via `TraceUtils`.
   
   ### Testing
   - Attempted: `./gradlew :solr:core:test --tests 
org.apache.solr.update.UpdateLogReplayTracingTest`
   - This environment does not have a Java runtime installed, so the test 
command could not execute here.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to