Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9951

Add an InfoStream to ReplicationService to facilitate debugging

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • modules/replicator
    • None
    • New, Patch Available

    Description

      At the moment, when an exception occurs during replication, the ReplicationService tries to serialize it and send it to the client, which then reports it.

      This does not work when the exception occurs after the first part of the response has already been sent, or if there was a network error. In these cases, the exception is silently ignored (on the server side), and the client side will report a TruncatedChunkException, making it hard to find the exact cause of the problem.

      I propose to add an InfoStream to the ReplicationService (analogous to the ReplicationClient) which will log requests and errors that are sent back to the client.

      I will provide a PR for this issue.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              christophk Christoph Kaser
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m