oceanbase / odc

OceanBase Developer Center(ODC), An open-source, enterprise-grade database tool for collaborative development
https://github.com/oceanbase/odc
Apache License 2.0
527 stars 49 forks source link

[Bug]: Anonymous blocks can not be redebugged #124

Closed runzi389205 closed 1 year ago

runzi389205 commented 1 year ago

ODC version

4.2.1

OB version

4.1.0

What happened?

while anonymous blocks redebugged, image

Error:BadRequest exception, type=NullPointerException, message=AnonymousBlock can not be null for StartPLDebugReq

response info:

{
    "code": "BadRequest",
    "durationMillis": 27,
    "error": {
        "code": "BadRequest",
        "details": [
            {
                "code": "BadRequest",
                "message": "BadRequest exception, type=NullPointerException, message=AnonymousBlock can not be null for StartPLDebugReq",
                "target": null
            },
            {
                "code": "NullPointerException",
                "message": "AnonymousBlock can not be null for StartPLDebugReq",
                "target": null
            }
        ],
        "message": "错误的请求,详情:BadRequest exception, type=NullPointerException, message=AnonymousBlock can not be null for StartPLDebugReq"
    },
    "httpStatus": "BAD_REQUEST",
    "message": "错误的请求,详情:BadRequest exception, type=NullPointerException, message=AnonymousBlock can not be null for StartPLDebugReq",
    "requestId": "ITJPP3PSTE8HWEULR68S4V",
    "server": "sqaappecsv62s2011162217057.sa128",
    "successful": false,
    "timestamp": 1693793366.954000000,
    "traceId": "2ff5a9d4ca1b4304"
}

What did you expect to happen?

re-enter the pl debug state

How can we reproduce it (as minimally and precisely as possible)?

Anything else we need to know?

Cloud

smallsheeeep commented 1 year ago

The parameter is missing anonymousBlock field, so the issue may should be fixed by frontend.

image image
HSunboy commented 1 year ago

Fixed In Commit cbdee53be86e7702447bb38c18ae3066308ea4c4

        晓康
        Wed Sep 6 15:46:29 2023 +0800
runzi389205 commented 12 months ago

PASS

Image

Image