Skip to content

Pipe: use session context in legacy receiver loaders#18111

Open
Caideyipi wants to merge 2 commits into
apache:masterfrom
Caideyipi:fix/legacy-pipe-session-context
Open

Pipe: use session context in legacy receiver loaders#18111
Caideyipi wants to merge 2 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

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