Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5040

SnapShooter doesn't create a lock as it runs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • replication (java)
    • None

    Description

      Hi there,

      While messing around with the replication handler recently, I noticed that the snapshooter didn't seem to be writing a lock file. I had a look at the SnapShooter.java code, and to my untrained eye it seemed like it was creating a Lock object but never actually taking a lock.

      I modified my local installation to use lock.obtain() instead of lock.isLocked() and verified that I'm now seeing lock files. I've attached a very small patch just in case this is a genuine bug.

      Cheers,

      Mark

      Attachments

        1. snapshooter-locking.diff
          0.7 kB
          Mark Triggs

        Activity

          People

            Unassigned Unassigned
            marktriggs Mark Triggs
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: