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

Memcached not terminating gracefully on babysitter kill/stdin closure

    XMLWordPrintable

Details

    • 0
    • Yes

    Description

      Steps:

      • 4 node KV cluster
      • Magma bucket with replica=2, load initially 100K docs
      • Start crud ops such that it won't target the active VBs on the node to be affected
      • Kill beam.smp process on one node. Here '172.23.108.69'

        $ kill -9 $(pgrep beam.smp)

      • Restart couchbase service immediately
      • Validate failover stats

      Observation:

      Seeing mismatch in failover stats on following vbs:

       

      600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 512 754 513 755 514 756 515 757 516 758 517 759 518 519 760 761 520 762 521 763 522 764 523 765 524 766 525 767 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
       
      Sample failover stat for vb:600
      root@sa1717-deb10:~# /opt/couchbase/bin/cbstats localhost:11210 -u Administrator -p password failovers 600
       vb_600:0:id:                         192218314420948
       vb_600:0:seq:                        216
       vb_600:1:id:                         9212734831484
       vb_600:1:seq:                        0
       vb_600:num_entries:                  2
       vb_600:num_erroneous_entries_erased: 0

       

      Logs:

      7.6.0-2017
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.6_fo_stats_updated/collectinfo-2024-01-17T105343-ns_1%40172.23.108.67.zip
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.6_fo_stats_updated/collectinfo-2024-01-17T105343-ns_1%40172.23.108.68.zip
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.6_fo_stats_updated/collectinfo-2024-01-17T105343-ns_1%40172.23.108.69.zip
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.6_fo_stats_updated/collectinfo-2024-01-17T105343-ns_1%40172.23.108.70.zip
       
      7.2.4-7059 (Test passing with no change in fo stats)

      Here 172.23.104.236 is the node where beam.smp was restarted

      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.2.4-fo_stats_stable/collectinfo-2024-01-17T105401-ns_1%40172.23.104.234.zip
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.2.4-fo_stats_stable/collectinfo-2024-01-17T105401-ns_1%40172.23.104.236.zip
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.2.4-fo_stats_stable/collectinfo-2024-01-17T105401-ns_1%40172.23.108.72.zip
      https://cb-jira.s3.us-east-2.amazonaws.com/logs/7.2.4-fo_stats_stable/collectinfo-2024-01-17T105401-ns_1%40172.23.108.74.zip
       
      Test case:

      epengine.durability_success.DurabilitySuccessTests:
          test_with_process_crash,sdk_timeout=30,simulate_error=kill_beam.smp,replicas=2,durability=MAJORITY,nodes_init=4,skip_cluster_reset=True,num_items=100000
      

      Attachments

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

        Activity

          People

            ashwin.govindarajulu Ashwin Govindarajulu
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty