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

11.4 JSON functions not interuptable

    XMLWordPrintable

Details

    Description

      11.4 json functions need to be killable/timeout.

      Functions added in 11.4:

      • JSON_ARRAY_INTERSECT
      • JSON_OBJECT_FILTER_KEYS
      • JSON_OBJECT_TO_ARRAY
      • JSON_KEY_VALUE
      • JSON_SCHEMA_VALIDE

      Like MDEV-28404 they need:

      • je.killed_ptr assignment after json_scan_start where the is a function to json_scan_next used within the Item
      • Remove check_killed() if present - handled by report_json_error.
      • JSON_DO_PAUSE_EXECUTION(thd, 0.0002); in Item_function::val*
      • json library functions to end up in report_json_error(js, &je, 0); immediately after error, and return null.
      • add to func_json_notembedded.test - ensure result file is the timeout error.

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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