Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3890

Replication: NPE for startSlave of encrypted database

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.4.1.3, 10.4.2.0
    • Fix Version/s: 10.5.1.1
    • Component/s: Replication
    • Labels:
      None

      Description

      If slave replication mode is started on an encrypted database, derby fails with a NPE and then hangs. The reason for the hang is that LogToFile#initializeSlaveReplicationMode needs to scan the log to find the end. For encrypted databases, this scan uses RawStoreFactory#decrypt. At this stage, LTF#rawStoreFactory variable has not been set.

      A solution may be to set this variable in LTF before scanning the log.

        Attachments

        1. derby-3890-1.diff
          6 kB
          Jørgen Løland
        2. derby-3890-1.stat
          0.3 kB
          Jørgen Løland

          Issue Links

            Activity

              People

              • Assignee:
                jorgenlo Jørgen Løland
                Reporter:
                jorgenlo Jørgen Løland
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: