lucasfang opened a new pull request, #47:
URL: https://github.com/apache/paimon-cpp/pull/47
### Purpose
Linked issue: No linked issue
This change adds shared runtime utility implementations and test coverage
under `src/paimon/common`.
Included changes:
- Executor Future helpers:
- Adds `src/paimon/common/executor/future.h` for submitting callables
through an `Executor` and returning `std::future` results.
- Adds helpers to collect typed future results and wait for `void` futures.
- Adds `DefaultExecutorTest` coverage for async submission, result
collection, exception propagation, immediate shutdown, and ignored submissions
after shutdown.
- Factory and IO hook tests:
- Adds `FactoryCreatorTest` coverage for factory creator registration and
lookup behavior.
- Adds `IOHookTest` coverage for IO hook registration behavior.
- Metrics utilities:
- Adds histogram and histogram windowing implementations.
- Adds metrics implementation helpers.
- Adds unit coverage for histogram, histogram windowing, and metrics
implementation behavior.
### Tests
Not run. Local compile, CMake, and gtest environment checks are not part of
this PR description.
Test coverage included in this change:
- `DefaultExecutorTest`
- `FactoryCreatorTest`
- `IOHookTest`
- `HistogramTest`
- `HistogramWindowingTest`
- `MetricsImplTest`
### API and Format
No public API, storage format, or protocol changes.
### Documentation
No documentation changes required.
### Generative AI tooling
Generated-by: Aone Copilot
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]