Solr
  1. Solr
  2. SOLR-3933

Distributed commits are not guaranteed to be ordered within a request.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1, 6.0
    • Component/s: SolrCloud
    • Labels:

      Description

      Update requests that also include a commit may do adds or deletes after the commit - it's a race.

      This would most likely affect concurrent update server or bulk add methods - but it's still a race for a single doc update or delete that includes a commit as well.

      1. SOLR-3933.patch
        10 kB
        Mark Miller

        Activity

        Hide
        Mark Miller added a comment -

        Here is patch with a fixed test and fix. Also includes fix for SOLR-3932.

        Show
        Mark Miller added a comment - Here is patch with a fixed test and fix. Also includes fix for SOLR-3932 .
        Hide
        Mark Miller added a comment -

        Fix committed to 4X and 5X

        Show
        Mark Miller added a comment - Fix committed to 4X and 5X
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1402362

        SOLR-3933: Distributed commits are not guaranteed to be ordered within a request.

        SOLR-3939: An empty or just replicated index cannot become the leader of a shard after a leader goes down.

        SOLR-3971: A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards.

        SOLR-3932: SolrCmdDistributorTest either takes 3 seconds or 3 minutes.

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1402362 SOLR-3933 : Distributed commits are not guaranteed to be ordered within a request. SOLR-3939 : An empty or just replicated index cannot become the leader of a shard after a leader goes down. SOLR-3971 : A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards. SOLR-3932 : SolrCmdDistributorTest either takes 3 seconds or 3 minutes.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1402361

        SOLR-3933: Distributed commits are not guaranteed to be ordered within a request.

        SOLR-3939: An empty or just replicated index cannot become the leader of a shard after a leader goes down.

        SOLR-3971: A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards.

        SOLR-3932: SolrCmdDistributorTest either takes 3 seconds or 3 minutes.

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1402361 SOLR-3933 : Distributed commits are not guaranteed to be ordered within a request. SOLR-3939 : An empty or just replicated index cannot become the leader of a shard after a leader goes down. SOLR-3971 : A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards. SOLR-3932 : SolrCmdDistributorTest either takes 3 seconds or 3 minutes.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1402362

        SOLR-3933: Distributed commits are not guaranteed to be ordered within a request.

        SOLR-3939: An empty or just replicated index cannot become the leader of a shard after a leader goes down.

        SOLR-3971: A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards.

        SOLR-3932: SolrCmdDistributorTest either takes 3 seconds or 3 minutes.

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1402362 SOLR-3933 : Distributed commits are not guaranteed to be ordered within a request. SOLR-3939 : An empty or just replicated index cannot become the leader of a shard after a leader goes down. SOLR-3971 : A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards. SOLR-3932 : SolrCmdDistributorTest either takes 3 seconds or 3 minutes.
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Mark Robert Miller
        http://svn.apache.org/viewvc?view=revision&revision=1402361

        SOLR-3933: Distributed commits are not guaranteed to be ordered within a request.

        SOLR-3939: An empty or just replicated index cannot become the leader of a shard after a leader goes down.

        SOLR-3971: A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards.

        SOLR-3932: SolrCmdDistributorTest either takes 3 seconds or 3 minutes.

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Mark Robert Miller http://svn.apache.org/viewvc?view=revision&revision=1402361 SOLR-3933 : Distributed commits are not guaranteed to be ordered within a request. SOLR-3939 : An empty or just replicated index cannot become the leader of a shard after a leader goes down. SOLR-3971 : A collection that is created with numShards=1 turns into a numShards=2 collection after starting up a second core and not specifying numShards. SOLR-3932 : SolrCmdDistributorTest either takes 3 seconds or 3 minutes.

          People

          • Assignee:
            Mark Miller
            Reporter:
            Mark Miller
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development