[ 
https://issues.apache.org/jira/browse/SOLR-11278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150247#comment-16150247
 ] 

Amrit Sarkar commented on SOLR-11278:
-------------------------------------

Root cause of the assertion error ::

In bootstrap process, in bootstrap callable process,

{code}
        Future<UpdateLog.RecoveryInfo> future = ulog.applyBufferedUpdates();
          ....................
        }
        return success;
      } finally {
        if (closed || !success) {
          ...................
          boolean dropped = ulog.dropBufferedUpdates();
          log.info("boostrap callable dropped :: " + dropped);
          assert dropped;
        }
      }
{code}

{{ulog.dropBufferedUpdates()}} is getting calculated as {{false}} at ::

UpdateLog::dropBufferedUpdates::

{code}
  /** Returns true if we were able to drop buffered updates and return to the 
ACTIVE state */
  public boolean dropBufferedUpdates() {
    versionInfo.blockUpdates();
    try {
      log.info("dropBufferedUpdates :: state :: start " + state);
      if (state != State.BUFFERING){
        return false;
      }
...............
{code}

This state is assigned *{{ACTIVE}}* instead of buffering and it returns 
*{{false}}* and returns..

in UpdateLog, I cannot figure out where exactly {{state}} is getting assigned 
as *ACTIVE* b/w {{applybufferedupdates}} and {{dropbufferedupdates}} and 
running test to detect the same. Ideally the initial value of {{state}} is 
assigned {{ACTIVE}}.

> CdcrBootstrapTest failing in branch_6_6
> ---------------------------------------
>
>                 Key: SOLR-11278
>                 URL: https://issues.apache.org/jira/browse/SOLR-11278
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: CDCR
>            Reporter: Amrit Sarkar
>            Assignee: Varun Thacker
>         Attachments: SOLR-11278-cancel-bootstrap-on-stop.patch, 
> SOLR-11278.patch, test_results
>
>
> I ran beast for 10 rounds:
> ant beast -Dtestcase=CdcrBootstrapTest -Dtests.multiplier=2 -Dtests.slow=true 
> -Dtests.locale=vi -Dtests.timezone=Asia/Yekaterinburg -Dtests.asserts=true 
> -Dtests.file.encoding=US-ASCII -Dbeast.iters=10
> and seeing following failure:
> {code}
>   [beaster] [01:37:16.282] FAILURE  153s | 
> CdcrBootstrapTest.testBootstrapWithSourceCluster <<<
>   [beaster]    > Throwable #1: java.lang.AssertionError: Document mismatch on 
> target after sync expected:<2000> but was:<1000>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to