Files
greptimedb/licenserc.toml
T
Lei, HUANG 9ecd84f622 fix(mito2): decouple table compaction upload and Arrow budgets (#10607)
* 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>
2026-11-24 15:33:23 +00:00

67 lines
2.6 KiB
TOML

# Copyright 2023 Greptime Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
headerPath = "Apache-2.0.txt"
includes = [
"*.rs",
"*.py",
"*.ts",
]
excludes = [
# copied sources
"src/common/base/src/readable_size.rs",
"src/common/base/src/secrets.rs",
"src/servers/src/repeated_field.rs",
"src/servers/src/http/test_helpers.rs",
# enterprise: Apache-2.0 header is NOT applied to these. They are governed by
# the GreptimeDB Enterprise License and checked via `licenserc-enterprise.toml`.
# Keep this list in sync with that file's `includes`; enforced by
# `make check-enterprise-license`.
# enterprise:start
"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",
# enterprise:end
]
[properties]
inceptionYear = 2023
copyrightOwner = "Greptime Team"