Updated on 2022-06-14 GMT+08:00

Debugging Streams

After creating a DIS stream, you can perform upload and download operations on the DIS console to verify the stream availability.

When the stream partition status is ACTIVE, both upload and download are supported.

If the partition status is DELETED, only download is supported.

  1. Use the account to log in to the DIS console.
  2. Click in the upper left corner of the page and select a region and project.
  3. In the navigation tree on the left, choose Stream Management.
  4. Click a stream that you want to view.
  5. Click Stream Debugging, and select Upload or Download in the Operation column of the target partition to upload or download data.

    Figure 1 Stream debugging page

  6. Click Upload, enter the content to be uploaded in the Upload text box, and click OK.

    The system displays a message indicating that the data is uploaded successfully and displays the sequence number of the data upload success record.
    Figure 2 Uploading data

  7. Click Download, select a cursor type, enter a sequence number, and click OK. After the download is successful, you can obtain the response body in text format.

    The entered sequence number must be within the valid range of the partition data. The valid range of the partition data can be obtained by calling the describeStream API. sequenceNumberRange indicates the data validity range. The first value is the sequence number of the earliest data, the last value is the sequence number of the next uploaded data, and the sequence number of the latest data is one less than the last value.

    Figure 3 Downloading data