mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-12-04 00:15:29 +00:00
* fix(mito2): decouple table compaction upload and Arrow budgets Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * test(mito2): prune redundant table compaction checks Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * fix(mito2): cap GCS compaction objects at 5 TiB Apply the GCS service limit even when the operator omits its object limit. Keep stricter advertised limits and the multipart part-count limit, and cover all three with geometry tests that perform no uploads. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * test(mito2): require an SST part before its final input batch Gate the payload of the last source row group on the first Parquet part from its target. A writer that buffers until close can no longer pass the lossless multipart regression. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * refactor(mito2): isolate enterprise buffered uploads Move the bounded SST and Puffin upload adapter and its regression test behind one gated module declaration. Leave the shared chunk transfer in the Apache-licensed parent and register the new enterprise source in both license lists. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * docs(mito2): describe ObjectStoreWriter bytes as accepted for upload Bounded uploads stage bytes in a local part buffer before they reach the object store, so output_bytes counts accepted bytes rather than bytes already submitted. The only reader takes the value after a successful close, when both counts agree. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * refactor(mito2): rename the compaction compute estimate MemoryLimits::compute_bytes returned the estimated working set that admit() compares against the compute budget, while UploadBudget::compute_bytes holds that budget. Rename the method to estimate_compute_bytes and name the admission local accordingly so the estimate and the budget are not read as the same quantity. The budget field keeps its visibility because source admission still bounds footer memory by it. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * test(mito2): rename the source-less table compaction fixture Rename `Fixture::empty` to `Fixture::without_source`. The constructor still creates the scheduler environment, access layer and config and only skips writing the input SST, so the old name suggested a state-less fixture. The new name mirrors `with_source`; both call sites are updated. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * fix(mito2): check the upload object limit inside the bounded writer Move the object-limit check from the Parquet SST writer into UploadBuffer::write so every caller of the bounded buffer is covered and the remaining-allowance subtraction cannot underflow. Make check_size private; the Puffin adapter keeps its own check and the limit error still surfaces as MultiRegionCompactionResource. Cover writes accepted up to the limit and the rejected next write. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> * docs(mito2): document index writer upload policies IndexWriteBuffer variants select different object-store writers: the default writer, exact-size parts, or a serial upload buffered through the enterprise adapter. Document each policy and explain that IndexObjectWriter boxes the bounded side because that adapter is returned as an opaque type. Signed-off-by: Lei, HUANG <ratuthomm@gmail.com> --------- Signed-off-by: Lei, HUANG <ratuthomm@gmail.com>
50 lines
2.2 KiB
TOML
50 lines
2.2 KiB
TOML
# License-header config for GreptimeDB Enterprise Edition source files.
|
|
#
|
|
# These files are commercially licensed under the GreptimeDB Enterprise License
|
|
# (see /LICENSE-ENTERPRISE), NOT Apache-2.0. They are kept out of the main
|
|
# Apache-2.0 header check in `licenserc.toml` (listed under its `excludes`) and
|
|
# are instead enforced here. Run with:
|
|
#
|
|
# hawkeye check --config licenserc-enterprise.toml
|
|
# hawkeye format --config licenserc-enterprise.toml # to apply/fix headers
|
|
|
|
headerPath = "licenses/enterprise-header.txt"
|
|
|
|
# Only the enterprise-gated sources: every file reachable solely through
|
|
# `#[cfg(feature = "enterprise")] mod ...;` belongs here. Keep this list in sync
|
|
# with the "# enterprise" block in `licenserc.toml`'s `excludes` — both are
|
|
# enforced by `make check-enterprise-license`.
|
|
includes = [
|
|
"src/datatypes/src/schema/sketch.rs",
|
|
"src/common/meta/src/rpc/ddl/trigger.rs",
|
|
"src/operator/src/expr_helper/trigger.rs",
|
|
"src/sql/src/statements/alter/trigger.rs",
|
|
"src/sql/src/statements/create/trigger.rs",
|
|
"src/sql/src/statements/show/trigger.rs",
|
|
"src/sql/src/statements/drop/trigger.rs",
|
|
"src/sql/src/parsers/alter_parser/trigger.rs",
|
|
"src/sql/src/parsers/create_parser/trigger.rs",
|
|
"src/sql/src/parsers/show_parser/trigger.rs",
|
|
"src/mito2/src/extension.rs",
|
|
"src/mito2/src/engine/table_compaction.rs",
|
|
"src/mito2/src/engine/table_compaction/output.rs",
|
|
"src/mito2/src/engine/table_compaction/tests.rs",
|
|
"src/mito2/src/worker/handle_table_compaction.rs",
|
|
"src/mito2/src/compaction/multi_region.rs",
|
|
"src/mito2/src/compaction/multi_region/source.rs",
|
|
"src/mito2/src/compaction/multi_region/memory.rs",
|
|
"src/mito2/src/compaction/multi_region/worker.rs",
|
|
"src/mito2/src/compaction/multi_region/writer.rs",
|
|
"src/mito2/src/compaction/multi_region/tests.rs",
|
|
"src/mito2/src/sst/upload/buffered.rs",
|
|
"src/common/function/src/admin/purge_table.rs",
|
|
"src/catalog/src/system_schema/information_schema/recycle_bin.rs",
|
|
"src/common/meta/src/ddl/purge_dropped_table.rs",
|
|
"src/common/meta/src/ddl/undrop_table.rs",
|
|
"src/catalog/src/system_schema/information_schema/recycle_bin_test.rs",
|
|
]
|
|
|
|
[properties]
|
|
inceptionYear = 2023
|
|
copyrightOwner = "GrepTime Inc."
|