show partitions from table里的DataSize为0

Viewed 47

进一步看replica的LocalDataSize、RemoteDataSize、RowCount都是0,但实际是有数据的。
doris版本:2.1.5
image.png
image.png

rowset meta细节:


[
  {
    "rowset_id": 0,
    "partition_id": 166988683,
    "tablet_id": 166988686,
    "tablet_schema_hash": 1421980930,
    "rowset_type": "BETA_ROWSET",
    "rowset_state": "VISIBLE",
    "start_version": 0,
    "end_version": 1,
    "num_rows": 0,
    "total_disk_size": 0,
    "data_disk_size": 0,
    "index_disk_size": 0,
    "empty": true,
    "creation_time": 1762486121,
    "tablet_uid": {
      "hi": 7657920841568301000,
      "lo": -6455331500367607000
    },
    "num_segments": 0,
    "rowset_id_v2": "020000000d6e48ccf94259fad76570e667488c45da4c3184",
    "newest_write_timestamp": 1762486121,
    "tablet_schema": {
      "keys_type": "UNIQUE_KEYS",
      "column": [
        {
          "unique_id": 0,
          "name": "id",
          "type": "INT",
          "is_key": true,
          "aggregation": "NONE",
          "is_nullable": false,
          "precision": 0,
          "frac": 0,
          "length": 4,
          "index_length": 4,
          "visible": true,
          "result_is_nullable": false
        },
        {
          "unique_id": 1,
          "name": "uid",
          "type": "INT",
          "is_key": false,
          "aggregation": "NONE",
          "is_nullable": false,
          "precision": 0,
          "frac": 0,
          "length": 4,
          "index_length": 4,
          "visible": true,
          "result_is_nullable": false
        },
        {
          "unique_id": 2,
          "name": "__DORIS_DELETE_SIGN__",
          "type": "TINYINT",
          "is_key": false,
          "aggregation": "NONE",
          "is_nullable": false,
          "default_value": "0",
          "precision": 0,
          "frac": 0,
          "length": 1,
          "index_length": 1,
          "visible": true,
          "result_is_nullable": false
        },
        {
          "unique_id": 3,
          "name": "__DORIS_VERSION_COL__",
          "type": "BIGINT",
          "is_key": false,
          "aggregation": "NONE",
          "is_nullable": false,
          "default_value": "0",
          "precision": 0,
          "frac": 0,
          "length": 8,
          "index_length": 8,
          "visible": true,
          "result_is_nullable": false
        }
      ],
      "num_short_key_columns": 1,
      "num_rows_per_row_block": 1024,
      "compress_kind": "COMPRESS_LZ4",
      "next_column_unique_id": 4,
      "is_in_memory": false,
      "delete_sign_idx": 2,
      "sequence_col_idx": -1,
      "sort_type": "LEXICAL",
      "sort_col_num": 1,
      "compression_type": "LZ4F",
      "schema_version": 0,
      "disable_auto_compaction": false,
      "version_col_idx": -1,
      "store_row_column": false,
      "enable_single_replica_compaction": false,
      "skip_write_index_on_load": false,
      "inverted_index_storage_format": "V1"
    },
    "segments_overlap_pb": "OVERLAP_UNKNOWN"
  },
  {
    "rowset_id": 0,
    "partition_id": 166988683,
    "tablet_id": 166988686,
    "tablet_schema_hash": 1421980930,
    "rowset_type": "BETA_ROWSET",
    "rowset_state": "VISIBLE",
    "start_version": 2,
    "end_version": 7,
    "num_rows": 8,
    "total_disk_size": 929,
    "data_disk_size": 929,
    "index_disk_size": 295,
    "empty": false,
    "creation_time": 1762496237,
    "tablet_uid": {
      "hi": 7657920841568301000,
      "lo": -6455331500367607000
    },
    "num_segments": 1,
    "rowset_id_v2": "020000000d790827f94259fad76570e667488c45da4c3184",
    "newest_write_timestamp": 1762496185,
    "segments_key_bounds": [
      {
        "min_key": "\u0002�\u0000\u0000\u0001",
        "max_key": "\u0002�\u0000\u0000\b"
      }
    ],
    "tablet_schema": {
      "keys_type": "UNIQUE_KEYS",
      "column": [
        {
          "unique_id": 0,
          "name": "id",
          "type": "INT",
          "is_key": true,
          "aggregation": "NONE",
          "is_nullable": false,
          "precision": 0,
          "frac": 0,
          "length": 4,
          "index_length": 4,
          "visible": true,
          "result_is_nullable": false
        },
        {
          "unique_id": 1,
          "name": "uid",
          "type": "INT",
          "is_key": false,
          "aggregation": "NONE",
          "is_nullable": false,
          "precision": 0,
          "frac": 0,
          "length": 4,
          "index_length": 4,
          "visible": true,
          "result_is_nullable": false
        },
        {
          "unique_id": 2,
          "name": "__DORIS_DELETE_SIGN__",
          "type": "TINYINT",
          "is_key": false,
          "aggregation": "NONE",
          "is_nullable": false,
          "default_value": "0",
          "precision": 0,
          "frac": 0,
          "length": 1,
          "index_length": 1,
          "visible": true,
          "result_is_nullable": false
        },
        {
          "unique_id": 3,
          "name": "__DORIS_VERSION_COL__",
          "type": "BIGINT",
          "is_key": false,
          "aggregation": "NONE",
          "is_nullable": false,
          "default_value": "0",
          "precision": 0,
          "frac": 0,
          "length": 8,
          "index_length": 8,
          "visible": true,
          "result_is_nullable": false
        }
      ],
      "num_short_key_columns": 1,
      "num_rows_per_row_block": 1024,
      "compress_kind": "COMPRESS_LZ4",
      "next_column_unique_id": 4,
      "is_in_memory": false,
      "delete_sign_idx": 2,
      "sequence_col_idx": -1,
      "sort_type": "LEXICAL",
      "sort_col_num": 1,
      "compression_type": "LZ4F",
      "schema_version": 0,
      "disable_auto_compaction": false,
      "version_col_idx": 3,
      "store_row_column": false,
      "enable_single_replica_compaction": false,
      "skip_write_index_on_load": false,
      "inverted_index_storage_format": "V1"
    },
    "segments_overlap_pb": "NONOVERLAPPING"
  }
]
1 Answers

jstack发现线程卡住,看着像:https://github.com/apache/doris/pull/46959