Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1143

[scala] Repository init throws "illegal cyclic reference involving class ChangeDispatcher"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.11
    • core

    Description

      I've been playing with Oak on Scala a bit and it looks like the latest changes introduced a problem that makes Oak unusable.

      Basically trying to setup a repo throws the following error:

      OakRepository.scala:65: error: illegal cyclic reference involving class ChangeDispatcher
      [ERROR]     new Oak(new SegmentNodeStore(new FileStore(new File(fname), 268435456, true)))
      [ERROR]                 ^
      [ERROR] one error found
      

      I've simplified the code down to the most basic barebone repo init to make it easier to digest [0].

      This is a Scala bug, but my point is that this used to work prior to the changedispacher changes, so I'm thinking we could move some bits around to get it working from Scala again.

      [0] https://github.com/alexparvulescu/soak/blob/master/src/main/scala/com/pfalabs/soak/OakRepository.scala#L65

      Attachments

        Activity

          People

            Unassigned Unassigned
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: