Skip to content

Add testInsert API for Java table sessions - #19286

Open
hongzhi-gao wants to merge 1 commit into
apache:masterfrom
hongzhi-gao:feat/table-session-test-insert
Open

hongzhi-gao wants to merge 1 commit into
apache:masterfrom
hongzhi-gao:feat/table-session-test-insert

Conversation

@hongzhi-gao

@hongzhi-gao hongzhi-gao commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Description

Add ITableSession.testInsert(Tablet) for direct and pooled Java table sessions to measure client processing and RPC time without writing data.

Reuse the existing Tablet request builder, set writeToTable=true, and call the existing testInsertTablet RPC. The server returns without validating schema or inserting data. No server or protocol changes are needed.

For an empty table and a two-row Tablet:

session.testInsert(tablet); // Query still returns zero rows.
session.insert(tablet);     // Query returns both rows.

Testing

  • Added one IT covering empty and unordered Tablets, direct and pooled sessions, no writes after testInsert, and exact results after normal insertion. Passed with 1 ConfigNode + 1 DataNode: 1 test, 0 failures, 0 skipped.
  • Full reactor compilation passed for both English and Chinese locales.
  • Formatting, IT selection, and git diff --check passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant