Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-49196

XDCR - panic in toy build component test for combineTask

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.0
    • 7.1.0
    • XDCR
    • None
    • Untriaged
    • 1
    • Yes

    Description

      I gave a toy bulid for something else to Pavithra building on top of the master.
      It has a panic stack trace on "combinetask"

      2021-10-27T15:00:24.299-07:00 INFO GOXDCR.StatsMgr: backfill_146614206c700811ff82ddc2258e0ebd/bucket1/bucket1 total_docs=3069913, docs_processed=0, changes_left=3069913
      2021-10-27T15:00:24.307-07:00 INFO GOXDCR.BackfillMgr: Replication 146614206c700811ff82ddc2258e0ebd/bucket2/bucket2- These collections need to append backfill map[scope-2.coll7:|Scope: scope-2 Collection: coll7|  scope-2.coll6:|Scope: scope-2 Collection: coll6|  scope-2.coll2:|Scope: scope-2 Collection: coll2|  scope-2.coll3:|Scope: scope-2 Collection: coll3|  scope-2.coll1:|Scope: scope-2 Collection: coll1|  scope-2.coll0:|Scope: scope-2 Collection: coll0|  scope-2.coll4:|Scope: scope-2 Collection: coll4|  scope-2.coll9:|Scope: scope-2 Collection: coll9|  scope-2.coll8:|Scope: scope-2 Collection: coll8|  scope-2.coll5:|Scope: scope-2 Collection: coll5|  scope-5.coll0:|Scope: scope-5 Collection: coll0|  scope-5.coll4:|Scope: scope-5 Collection: coll4|  scope-5.coll3:|Scope: scope-5 Collection: coll3|  scope-5.coll1:|Scope: scope-5 Collection: coll1|  scope-5.coll9:|Scope: scope-5 Collection: coll9|  scope-5.coll8:|Scope: scope-5 Collection: coll8|  scope-5.coll5:|Scope: scope-5 Collection: coll5|  scope-5.coll7:|Scope: scope-5 Collection: coll7|  scope-5.coll6:|Scope: scope-5 Collection: coll6|  scope-5.coll2:|Scope: scope-5 Collection: coll2| ] for vb->seqnos map[615:54904 616:61701 617:59043 618:57150 619:61256 620:59433 621:61393 622:63010 623:61560 624:63787 625:56075 626:64379 627:64533 628:62407 629:58753 630:56968 631:56577 632:58076 633:55067 634:58378 635:62439 636:57415 637:65468 638:64483 639:56112 640:61632 641:62549 642:56148 643:61617 644:58566 645:60726 646:60250 647:62964 648:62875 649:60492 650:58742 651:59934 652:54281 653:62344 654:61473 655:55306 656:55119 657:59066 658:56919 659:61757 660:59522 661:65436 662:58435 663:58161 664:61986 665:54543 666:62125 667:65973 668:59291 669:60242 670:60982 671:58898 672:56066 673:58997 674:62428 675:59064 676:65137 677:58016 678:56702 679:64772 680:57328 681:63936 682:63657 683:56152 684:50932 685:55137 686:50119 687:50092 688:51933 689:54755 690:53448 691:48743 692:52590 693:51154 694:53280 695:54798 696:52764 697:57780 698:49475 699:51883 700:51652 701:50149 702:49077 703:56134 704:49209 705:59605 706:53560 707:50102 708:50604 709:49646 710:51681 711:56338 712:53667 713:52164 714:49397 715:52411 716:53429 717:50263 718:53372 719:56438 720:48816 721:53211 722:51819 723:55526 724:54099 725:53082 726:47523 727:54533 728:50258 729:53776 730:55481 731:50235 732:54391 733:54545 734:49793 735:51551 736:52949 737:54897 738:54352 739:54598 740:53275 741:54695 742:53504 743:50198 744:53456 745:48440 746:49318 747:57475 748:54560 749:59398 750:51515 751:52267 752:57635 753:54640 754:54167 755:55670 756:51592 757:50183 758:53968 759:51928 760:51268 761:53443 762:48748 763:52721 764:46489 765:57660 766:57199 767:56378 768:53225 769:49779 770:49410 771:59222 772:52106 773:56177 774:50094 775:49028 776:49391 777:52312 778:54294 779:52844 780:53686 781:57037 782:53405 783:50587 784:52289 785:54964 786:48860 787:53134 788:47528 789:53958 790:54247 791:53131 792:55739 793:50232 794:50752 795:54041 796:50021 797:51301 798:54996 799:54285 800:53563 801:54349 802:52737 803:53909 804:53689 805:49941 806:53466 807:54339 808:49710 809:56829 810:53739 811:48486 812:51515 813:52357 814:54864 815:58918 816:53778 817:56034 818:57881 819:54327]
      panic: runtime error: invalid memory address or nil pointer dereference
      [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x826b8c]
       
      goroutine 1435991 [running]:
      github.com/couchbase/goxdcr/metadata.(*BackfillTask).combineTask(0xc0047e6140, 0x0, 0xc013519500)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/metadata/backfill_replication.go:1179 +0x6c
      github.com/couchbase/goxdcr/metadata.(*BackfillTasks).addTask(0xc00561bb40, 0x0, 0xc013519501)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/metadata/backfill_replication.go:1057 +0x65
      github.com/couchbase/goxdcr/metadata.(*BackfillReplicationSpec).MergeNewTasks(0xc00178de00, 0xc017e50c60, 0xc017483001)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/metadata/backfill_replication.go:159 +0x1aa
      github.com/couchbase/goxdcr/backfill_manager.(*BackfillRequestHandler).updateBackfillSpec(0xc003f02900, 0xc0030bd920, 0xc017e50c60, 0xc00c2026c0, 0xc0174830e0, 0xc017e50c00, 0x0, 0x0)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/backfill_manager/backfill_request_handler.go:511 +0x19b
      github.com/couchbase/goxdcr/backfill_manager.(*BackfillRequestHandler).handleBackfillRequestInternal(0xc003f02900, 0xee7000, 0xc00c29f040, 0xc0030bd980, 0xc0030bd920, 0x0, 0x3, 0x1)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/backfill_manager/backfill_request_handler.go:458 +0x11b
      github.com/couchbase/goxdcr/backfill_manager.(*BackfillRequestHandler).run(0xc003f02900)
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/backfill_manager/backfill_request_handler.go:269 +0x101d
      created by github.com/couchbase/goxdcr/backfill_manager.(*BackfillRequestHandler).Start.func1
              /home/couchbase/jenkins/workspace/toy-unix-simple/goproj/src/github.com/couchbase/goxdcr/backfill_manager/backfill_request_handler.go:174 +0x2cd
      

      Which is newly checked in per MB-49101.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              lilei.chen Lilei Chen (Inactive)
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty