Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18935

Fix nodetool enable/disablebinary to correctly set rpc

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

       

              if ((nativeFlag != null && Boolean.parseBoolean(nativeFlag)) || (nativeFlag == null && DatabaseDescriptor.startNativeTransport()))
              {
                  startNativeTransport();
                  StorageService.instance.setRpcReady(true);
              } 

      The startup code here only sets RpcReady if native transport is enabled. If you call 

      nodetool enablebinary

      then this flag doesn't get set.

      But with the change from CASSANDRA-13043 it requires RpcReady set to true in order to get a leader for the counter update.

      Not sure what the correct fix is here, seems to only really use this flag for counters. So thinking perhaps the fix is to just move this outside the if condition.

       

      Attachments

        1. 18935-3.11.patch
          1.0 kB
          Cameron Zemek
        2. image-2023-11-16-10-56-16-693.png
          72 kB
          Runtian Liu
        3. signature.asc
          0.5 kB
          miklosovic

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            smiklosovic Stefan Miklosovic Assign to me
            cam1982 Cameron Zemek
            Stefan Miklosovic
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m

                Slack

                  Issue deployment