Skip to content

Pipe: use session context in legacy receiver loaders#18111

Merged
jt2594838 merged 3 commits into
apache:masterfrom
Caideyipi:fix/legacy-pipe-session-context
Jul 10, 2026
Merged

Pipe: use session context in legacy receiver loaders#18111
jt2594838 merged 3 commits into
apache:masterfrom
Caideyipi:fix/legacy-pipe-session-context

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

Legacy receiver session context

Legacy pipe receiver loading now uses the session context supplied by the RPC request path. The loader API accepts this context explicitly so deletion and tsfile loading follow the same request context.

Loader behavior

TsFile loading now follows the configured auto-create setting. The legacy receiver no longer performs database registration during handshake.

Tests

  • git diff --check

This PR has:

  • been self-reviewed.
  • added integration tests.

Key changed/added classes (or packages if there are too many classes) in this PR
  • Legacy pipe receiver agent and loaders.
  • Client RPC pipe data transport path.
  • Legacy pipe receiver integration test coverage.

private SessionInfo getCurrentSessionInfo() {
final SessionManager sessionManager = SessionManager.getInstance();
if (!sessionManager.checkLogin(sessionManager.getCurrSession())) {
throw new PipeException("Legacy pipe receiver requires a logged-in session.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i18n

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks. Moved the message into DataNodePipeMessages for both en and zh locales.

@jt2594838 jt2594838 merged commit 7ccdaa5 into apache:master Jul 10, 2026
47 of 51 checks passed
@jt2594838 jt2594838 deleted the fix/legacy-pipe-session-context branch July 10, 2026 02:22
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.

2 participants