Skip to content

[ISSUE-4315][Bug] Fix multiline dynamic properties parsing#4359

Open
hutiefang76 wants to merge 1 commit into
apache:devfrom
hutiefang76:codex/fix-dynamic-properties-multiline
Open

[ISSUE-4315][Bug] Fix multiline dynamic properties parsing#4359
hutiefang76 wants to merge 1 commit into
apache:devfrom
hutiefang76:codex/fix-dynamic-properties-multiline

Conversation

@hutiefang76

Copy link
Copy Markdown

What's changed

Close #4315.

This fixes dynamic properties parsing when a long option value is split across multiple lines in the textarea, for example yarn.ship-files. Lines that do not start with -D are now treated as continuations of the previous dynamic property before the existing parser runs.

The existing single-line and quoted value cases continue to use the same parsing path.

Verification

  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl streampark-common -Dtest=org.apache.streampark.common.util.PropertiesUtilsTestCase test
  • JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl streampark-common test
  • git diff --check

Note: the local default JDK is newer than the Scala 2.12 compiler bridge supports cleanly, so the verification commands above explicitly use JDK 17.

@sonarqubecloud

Copy link
Copy Markdown

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] multiple lines in dynamic properties not taken effect

1 participant