Repository navigation
Conversation
|
Initial self-review summary for candidate
|
|
major Only the extractor attributes are normalized (L173-176); checkAndEnrichSinkAuthentication still receives the raw connector map. With Fix: Normalize before the check, e.g. setConnectorAttributes(normalizeSinkParameters(new PipeParameters(createPipeRequest.getConnectorAttributes())).getAttribute()) next to the extractor normalization at L173. |
|
minor checkSource/checkSink are computed with hasAnyAttributes on the raw request maps; checkAndUpdateRequestBeforeAlterPipe (L138) normalizes them only afterwards. So Fix: Normalize the request's extractor/connector attributes (normalizeSourceParameters / normalizeSinkParameters) before computing checkSource and checkSink, mirroring the fix in CreatePipeProcedureV2. |
|
Thanks for catching this. |
|
Thanks for catching this. |
|
Review round for PR head
|
|
Review round for PR head
|
|
CI failure follow-up for PR head
|
|
Review round update for PR #19523:
|
|
Review follow-up for PR #19523 (starting head
|
| PipeSinkConstant.CONNECTOR_IOTDB_PASSWORD_KEY, | ||
| PipeSinkConstant.SINK_IOTDB_PASSWORD_KEY); | ||
|
|
||
| pipeTaskInfo.get().checkAndUpdateRequestBeforeAlterPipe(alterPipeRequest); |
There was a problem hiding this comment.
major iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/impl/pipe/task/AlterPipeProcedureV2.java:138 — ALTER PIPE REPLACE mode still skips credential hashing for trimmed/case-variant keys
With ALTER PIPE ... REPLACE SOURCE/SINK (' SOURCE.PASSWORD '='p'), checkAndUpdateRequestBeforeAlterPipe (L138) skips normalization when isReplaceAll*Attributes is true, so L141/L146 get padded/mixed-case keys. getStringOrDefault/hasAttribute are exact-key lookups, so authentication is skipped and PipeStaticMeta persists the plaintext password, breaking the WriteBackSink login (useEncryptedPassword). The new AlterPipeProcedureV2Test mocks normalization away.
Fix: Normalize the request maps (normalizeSourceParameters/normalizeSinkParameters) before L138 instead of relying on checkAndUpdateRequestBeforeAlterPipe, and test the isReplaceAll*=true path without mocking normalization.
|
|
||
| public static boolean validateStatement(Statement statement) { | ||
| return !(statement instanceof QueryStatement) | ||
| && !(statement instanceof ShowDeleteTimeSeriesProgressStatement) |
There was a problem hiding this comment.
major external-service-impl/rest/src/main/java/org/apache/iotdb/rest/protocol/v1/handler/ExecuteStatementHandler.java:37 — REST v1 still cannot return SHOW DELETE TIMESERIES PROGRESS results
ShowDeleteTimeSeriesProgressStatement extends Statement, not ShowStatement, and QueryDataSetHandler.fillQueryDataSet (L61-83) only special-cases ShowStatement, ShowModelsStatement, ShowAIDevicesStatement, ShowLoadedModelsStatement, AuthorStatement and GetRegionIdStatement. So /rest/v1/query answers QUERY_PROCESS_ERROR "unsupported query data type", and /rest/v1/executeStatement now errors where it previously returned SUCCESS.
Fix: Add a ShowDeleteTimeSeriesProgressStatement branch to QueryDataSetHandler.fillQueryDataSet (same fillShowPlanDataSet path as AuthorStatement) and cover it with a fillQueryDataSet test, not only validateStatement.
(cherry picked from commit a8c53cf)
Cherry-picked Pipe-only changes from commit 2bdf566 in apache#19523. (cherry picked from commit 2bdf566)
(cherry picked from commit 2d616be)
(cherry picked from commit 0634a64)
(cherry picked from commit 47e45c7)
(cherry picked from commit 74f0216)
(cherry picked from commit c78604a)
(cherry picked from commit 7e08fd3)
(cherry picked from commit 5773071)
(cherry picked from commit cca161f)
cca161f to
1a4dde6
Compare
Summary
Fix Pipe attribute normalization, credential handling, and task-startup edge cases, and improve LOAD fallback diagnostics. REST v1 delete-progress handling and CLI server-status output are split into #19538 and #19539.
Pipe changes
ALTER PIPErequests, and applynowto normalized source time keys.source.loose-range=false.LOAD example
For a point-count mismatch in
x.tsfileatroot.sg.d1.s1, LOAD reports expected and actual counts instead of a generic iteration failure.Other split changes