{
  "series": "Apache Paimon 存储内核解析",
  "generated_at": "2026-12-05",
  "environment": {
    "paimon_core_version": "1.2.0 (apache/paimon release-1.2.0)",
    "object_storage": "RustFS 1.0.0 (S3-compatible, s3.path.style.access=true, Longhorn 50Gi PVC)",
    "catalog_metastore": "MySQL 8.4 JdbcCatalog (paimon_tables + paimon_distributed_locks)",
    "query_engine": "paimon-gateway-mvp / pekko-query-server 1.0.0 (Scala 2.13.12, Pekko 1.1.3, Calcite 1.39.0)",
    "jdk": "OpenJDK 21",
    "isolation_namespace": {
      "catalog_key": "lab-storage-kernel",
      "warehouse_jdbc": "s3://warehouse/paimon-storage-kernel",
      "warehouse_nolock": "s3://warehouse/paimon-storage-kernel-nolock",
      "databases": ["lab_storage_kernel", "lab_storage_kernel_p35"]
    },
    "cluster_version_note": "bigdata-lab resident flink-paimon-120 runs Flink 1.20.1 with Paimon 1.0.0; all series experiments run isolated Paimon 1.2.0 probes matching pekko-query-server."
  },
  "experiments": {
    "EXP-1A": {
      "title": "Uncommitted Data Isolation & Bottom-Up Object Publication Order",
      "objects_before_commit": 3,
      "pekko_rows_before_commit": 0,
      "objects_after_commit": 9,
      "pekko_rows_after_commit": 10
    },
    "EXP-1B": {
      "title": "Concurrent S3 Commit Race: filesystem Lock.empty() vs JdbcCatalogLock",
      "workload": "5 rounds x 2 concurrent writers x 5 rows = 50 expected rows",
      "filesystem_catalog_nolock": {
        "exceptions_thrown": 0,
        "latest_snapshot_id": 5,
        "surviving_rows": 25,
        "silent_lost_rows": 25
      },
      "jdbc_catalog_lock": {
        "exceptions_thrown": 0,
        "latest_snapshot_id": 10,
        "surviving_rows": 50,
        "pekko_verified_rows": 50
      }
    },
    "EXP-2": {
      "title": "LSM 6-Run Merge-on-Read vs Deletion Vectors on RustFS",
      "workload": "200 inserts + 4x25 overlapping updates + 20 deletes = 180 live rows",
      "orders_mor": {
        "snapshots": 6,
        "split_data_files": 6,
        "levels": ["L0", "L0", "L0", "L0", "L0", "L0"],
        "raw_convertible": false,
        "reader_class": "org.apache.paimon.table.source.KeyValueTableRead$1",
        "pekko_verified_rows": 180,
        "field_diffs": 0
      },
      "orders_dv": {
        "snapshots": 12,
        "split_data_files": 1,
        "levels": ["L5"],
        "raw_convertible": true,
        "reader_class": "org.apache.paimon.deletionvectors.ApplyDeletionVectorReader",
        "deletion_file": {
          "base_rows": 200,
          "offset_bytes": 1,
          "length_bytes": 19,
          "cardinality": 20,
          "verified_bits": 20
        },
        "pekko_verified_rows": 180,
        "field_diffs": 0
      }
    },
    "EXP-3A": {
      "title": "Changelog Producer Divergence (none vs input vs lookup)",
      "none": {
        "latest_snapshot": 2,
        "changelog_manifest_list": false,
        "changelog_files": 0,
        "stream_events_from_snap2": ["+U(id=1,amt=150,st=PAID)", "+U(id=2,amt=200,st=CREATED)"],
        "pekko_batch_rows": 2
      },
      "input": {
        "latest_snapshot": 2,
        "changelog_manifest_list": true,
        "changelog_files": 2,
        "stream_events_from_snap2": ["+U(id=1,amt=150,st=PAID)", "+U(id=2,amt=200,st=CREATED)"],
        "pekko_batch_rows": 2
      },
      "lookup": {
        "latest_snapshot": 4,
        "changelog_manifest_list": true,
        "changelog_files": 2,
        "stream_events_from_snap2": [
          "+I(id=1,amt=100,st=CREATED)",
          "+I(id=2,amt=200,st=CREATED)",
          "-U(id=1,amt=100,st=CREATED)",
          "+U(id=1,amt=150,st=PAID)",
          "-U(id=2,amt=200,st=CREATED)",
          "+U(id=2,amt=200,st=CREATED)"
        ],
        "pekko_batch_rows": 2
      }
    },
    "EXP-3B": {
      "title": "partial-update Out-of-Order Replay (v2 SHIPPED followed by delayed v1 PENDING)",
      "without_sequence_field": [10, 500, "PENDING", 1],
      "with_sequence_field_event_ver": [10, 500, "SHIPPED", 2]
    },
    "EXP-4": {
      "title": "FileStoreCommitImpl 4-Scenario OCC Conflict Matrix",
      "4A_concurrent_l0_append": {
        "outcome": "SUCCESS",
        "latest_snapshot": 2
      },
      "4B_stream_append_vs_stale_base_compaction": {
        "outcome": "SUCCESS (REBASED)",
        "stream_snapshot": "4 (APPEND)",
        "compactor_snapshots": ["5 (APPEND)", "6 (COMPACT)"],
        "surviving_rows": "4/4"
      },
      "4C_overlapping_double_compaction": {
        "outcome": "REJECTED",
        "exception": "java.lang.RuntimeException: File deletion conflicts detected! Give up committing.",
        "root_cause": "java.lang.IllegalStateException: Trying to delete file data-944d5298-b59b-4fbf-838e-e28c2277c656-0.parquet for table occ_4c_double_compact which is not previously added."
      },
      "4D_concurrent_dv_updates_disjoint_l0": {
        "outcome": "COMMITTED",
        "snapshots": "seed(1,2) -> dv1(3,4) -> dv2(5,6)"
      }
    },
    "EXP-5A": {
      "title": "Slow Pekko Split Read vs expire_snapshots",
      "unprotected": {
        "expired_snapshots": 9,
        "snapshot_1_exists_after_expire": false,
        "pekko_late_read_error": "com.company.paimon.queryserver.runtime.EngineExecutionException: Paimon split reader could not be opened"
      },
      "consumer_and_tag_protected": {
        "expired_while_consumer_pinned": 0,
        "pekko_late_read_rows_while_pinned": 2,
        "expired_after_consumer_deleted": 9,
        "snapshot_1_exists_after_consumer_deleted": false,
        "audit_tag_s2_exists": true
      }
    },
    "EXP-5B": {
      "title": "LocalOrphanFilesClean Safety Window (Crashed Pod vs Active In-Flight Commit)",
      "deleted_orphan_files": 1,
      "deleted_bytes": 1908,
      "active_inflight_commit_after_clean": "SUCCESS",
      "pekko_verified_rows": [[101, "LIVE_IN_FLIGHT"]]
    }
  }
}
