Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32238

Add a switch to disable spider group by handler

Details

    Description

      This serves as a workaround for many bugs caused by the spider group
      by handler (GBH) (labeled with spider-gbh). There is a system
      variable spider_use_handler that could disable the group by
      handler if it is set to 1*, but it was deprecated, and then deleted
      in 10.10+ (MDEV-27256). So we could add
      spider_disable_group_by_handler to 10.10+.

      For context, see a comment in MDEV-26247[1]:

      Here's a little demo showing disabling the spider GBH "fixes" the
      issue. It could be a fallback / workaround, and it would be
      interesting to see which other gbh bugs can also be mitigated by
      this workaround.

      637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue

      update on [2023-09-22 Fri]: I confirm that all other bugs current
      labeled with spider-gbh can be mitigated by this workaround:

      So it makes sense to add a system variable e.g.
      spider_disable_group_by_handler.

      [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982

      *: When spider_use_handler is set to 1, it skips creating
      conn_holder on spider fields which causes the return of a NULL
      pointer in spider_create_group_by_hander().

      Attachments

        Issue Links

          Activity

            ycp Yuchen Pei created issue -
            ycp Yuchen Pei made changes -
            Field Original Value New Value
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            Description This serves as a workaround for many bugs caused by the spider group by handler (GBH). There used to be a system variable {{spider_use_handler}}, but it was deprecated, and then deleted in 10.10+ (MDEV-27256). So we could add spider_disable_group_by_handler to 10.10+.

            For context, see a comment in MDEV-26247[1]:

            {quote}
              Here's a little demo showing disabling the spider GBH "fixes" the
              issue. It could be a fallback / workaround, and it would be
              interesting to see which other gbh bugs can also be mitigated by
              this workaround.
              
                637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                
              update on [2023-09-22 Fri]: I confirm that all other bugs current
              labeled with spider-gbh can be mitigated by this workaround:

              - MDEV-31645
              - MDEV-30392
              - MDEV-29163
              - MDEV-28998

              So it makes sense to add a system variable e.g.
              spider_disable_group_by_handler.
            {quote}

            [1]
            This serves as a workaround for many bugs caused by the spider group by handler (GBH). There used to be a system variable {{spider_use_handler}}, but it was deprecated, and then deleted in 10.10+ (MDEV-27256). So we could add spider_disable_group_by_handler to 10.10+.

            For context, see a comment in MDEV-26247[1]:

            {quote}
              Here's a little demo showing disabling the spider GBH "fixes" the
              issue. It could be a fallback / workaround, and it would be
              interesting to see which other gbh bugs can also be mitigated by
              this workaround.
              
                637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                
              update on [2023-09-22 Fri]: I confirm that all other bugs current
              labeled with spider-gbh can be mitigated by this workaround:

              - MDEV-31645
              - MDEV-30392
              - MDEV-29163
              - MDEV-28998

              So it makes sense to add a system variable e.g.
              spider_disable_group_by_handler.
            {quote}

            [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
            ycp Yuchen Pei made changes -
            Description This serves as a workaround for many bugs caused by the spider group by handler (GBH). There used to be a system variable {{spider_use_handler}}, but it was deprecated, and then deleted in 10.10+ (MDEV-27256). So we could add spider_disable_group_by_handler to 10.10+.

            For context, see a comment in MDEV-26247[1]:

            {quote}
              Here's a little demo showing disabling the spider GBH "fixes" the
              issue. It could be a fallback / workaround, and it would be
              interesting to see which other gbh bugs can also be mitigated by
              this workaround.
              
                637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                
              update on [2023-09-22 Fri]: I confirm that all other bugs current
              labeled with spider-gbh can be mitigated by this workaround:

              - MDEV-31645
              - MDEV-30392
              - MDEV-29163
              - MDEV-28998

              So it makes sense to add a system variable e.g.
              spider_disable_group_by_handler.
            {quote}

            [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
            This serves as a workaround for many bugs caused by the spider group by handler (GBH) (labeled with spider-gbh). There used to be a system variable {{spider_use_handler}}, but it was deprecated, and then deleted in 10.10+ (MDEV-27256). So we could add spider_disable_group_by_handler to 10.10+.

            For context, see a comment in MDEV-26247[1]:

            {quote}
              Here's a little demo showing disabling the spider GBH "fixes" the
              issue. It could be a fallback / workaround, and it would be
              interesting to see which other gbh bugs can also be mitigated by
              this workaround.
              
                637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                
              update on [2023-09-22 Fri]: I confirm that all other bugs current
              labeled with spider-gbh can be mitigated by this workaround:

              - MDEV-31645
              - MDEV-30392
              - MDEV-29163
              - MDEV-28998

              So it makes sense to add a system variable e.g.
              spider_disable_group_by_handler.
            {quote}

            [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
            ycp Yuchen Pei made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ycp Yuchen Pei made changes -
            Assignee Yuchen Pei [ JIRAUSER52627 ] Alexey Botchkov [ holyfoot ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            ycp Yuchen Pei made changes -
            Description This serves as a workaround for many bugs caused by the spider group by handler (GBH) (labeled with spider-gbh). There used to be a system variable {{spider_use_handler}}, but it was deprecated, and then deleted in 10.10+ (MDEV-27256). So we could add spider_disable_group_by_handler to 10.10+.

            For context, see a comment in MDEV-26247[1]:

            {quote}
              Here's a little demo showing disabling the spider GBH "fixes" the
              issue. It could be a fallback / workaround, and it would be
              interesting to see which other gbh bugs can also be mitigated by
              this workaround.
              
                637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                
              update on [2023-09-22 Fri]: I confirm that all other bugs current
              labeled with spider-gbh can be mitigated by this workaround:

              - MDEV-31645
              - MDEV-30392
              - MDEV-29163
              - MDEV-28998

              So it makes sense to add a system variable e.g.
              spider_disable_group_by_handler.
            {quote}

            [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
              This serves as a workaround for many bugs caused by the spider group
              by handler (GBH) (labeled with spider-gbh). There is a system
              variable {{spider_use_handler}} that could disable the group by
              handler if it is set to 1, but it was deprecated, and then deleted
              in 10.10+ (MDEV-27256). So we could add
              spider_disable_group_by_handler to 10.10+.
              
              For context, see a comment in MDEV-26247[1]:
              
              {quote}
                Here's a little demo showing disabling the spider GBH "fixes" the
                issue. It could be a fallback / workaround, and it would be
                interesting to see which other gbh bugs can also be mitigated by
                this workaround.
                
                  637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                  
                update on [2023-09-22 Fri]: I confirm that all other bugs current
                labeled with spider-gbh can be mitigated by this workaround:
              
                - MDEV-31645
                - MDEV-30392
                - MDEV-29163
                - MDEV-28998
              
                So it makes sense to add a system variable e.g.
                spider_disable_group_by_handler.
              {quote}
              
              [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
            ycp Yuchen Pei made changes -
            Description   This serves as a workaround for many bugs caused by the spider group
              by handler (GBH) (labeled with spider-gbh). There is a system
              variable {{spider_use_handler}} that could disable the group by
              handler if it is set to 1, but it was deprecated, and then deleted
              in 10.10+ (MDEV-27256). So we could add
              spider_disable_group_by_handler to 10.10+.
              
              For context, see a comment in MDEV-26247[1]:
              
              {quote}
                Here's a little demo showing disabling the spider GBH "fixes" the
                issue. It could be a fallback / workaround, and it would be
                interesting to see which other gbh bugs can also be mitigated by
                this workaround.
                
                  637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                  
                update on [2023-09-22 Fri]: I confirm that all other bugs current
                labeled with spider-gbh can be mitigated by this workaround:
              
                - MDEV-31645
                - MDEV-30392
                - MDEV-29163
                - MDEV-28998
              
                So it makes sense to add a system variable e.g.
                spider_disable_group_by_handler.
              {quote}
              
              [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
              This serves as a workaround for many bugs caused by the spider group
              by handler (GBH) (labeled with spider-gbh). There is a system
              variable {{spider_use_handler}} that could disable the group by
              handler if it is set to 1*, but it was deprecated, and then deleted
              in 10.10+ (MDEV-27256). So we could add
              spider_disable_group_by_handler to 10.10+.
              
              For context, see a comment in MDEV-26247[1]:
              
              {quote}
                Here's a little demo showing disabling the spider GBH "fixes" the
                issue. It could be a fallback / workaround, and it would be
                interesting to see which other gbh bugs can also be mitigated by
                this workaround.
                
                  637c1a3c315 upstream/bb-11.0-ycp-mdev-26247-disable-gbh MDEV-26247 [demo] disabling the spider gbh fixes the issue
                  
                update on [2023-09-22 Fri]: I confirm that all other bugs current
                labeled with spider-gbh can be mitigated by this workaround:
              
                - MDEV-31645
                - MDEV-30392
                - MDEV-29163
                - MDEV-28998
              
                So it makes sense to add a system variable e.g.
                spider_disable_group_by_handler.
              {quote}
              
              [1] https://jira.mariadb.org/browse/MDEV-26247?focusedCommentId=269982&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-269982
              
              *: When {{spider_use_handler}} is set to 1, it skips creating
               conn_holder on spider fields which causes the return of a NULL
               pointer in spider_create_group_by_hander().
            ycp Yuchen Pei made changes -
            ycp Yuchen Pei made changes -
            holyfoot Alexey Botchkov made changes -
            Assignee Alexey Botchkov [ holyfoot ] Yuchen Pei [ JIRAUSER52627 ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            ycp Yuchen Pei made changes -
            Fix Version/s 10.10.7 [ 29018 ]
            Fix Version/s 10.10 [ 27530 ]
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 11.0 [ 28320 ]
            Fix Version/s 11.1 [ 28549 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            ycp Yuchen Pei made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Stalled [ 10000 ]
            ycp Yuchen Pei made changes -
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            ycp Yuchen Pei made changes -
            Fix Version/s 10.11.6 [ 29020 ]
            Fix Version/s 11.0.4 [ 29021 ]
            Fix Version/s 11.1.3 [ 29023 ]
            Roel Roel Van de Paar made changes -

            People

              ycp Yuchen Pei
              ycp Yuchen Pei
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.