You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Noble Paul (Jira)" <ji...@apache.org> on 2022/02/16 00:22:00 UTC
[jira] [Assigned] (SOLR-5040) SnapShooter doesn't create a lock as it runs
[ https://issues.apache.org/jira/browse/SOLR-5040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul reassigned SOLR-5040:
--------------------------------
Assignee: (was: Noble Paul)
> SnapShooter doesn't create a lock as it runs
> --------------------------------------------
>
> Key: SOLR-5040
> URL: https://issues.apache.org/jira/browse/SOLR-5040
> Project: Solr
> Issue Type: Bug
> Components: replication (java)
> Reporter: Mark Triggs
> Priority: Trivial
> Attachments: snapshooter-locking.diff
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org