Skip to content

Some feature flags not working when set via environment variables in ECS task #3255

@davidweimapbox

Description

@davidweimapbox

Describe the bug

Polaris feature flags work when defined in application.properties inside the Docker image, but do not take effect when provided as environment variables in an ECS task definition.

The following environment variables were added to the container:
POLARIS_FEATURES_ALLOW_OPTIMIZED_SIBLING_CHECK: 'true',
POLARIS_FEATURES_OPTIMIZED_SIBLING_CHECK: 'true',
POLARIS_FEATURES_REALM_OVERRIDES_POLARIS_ALLOW_TABLE_LOCATION_OVERLAP: 'true'

However, none of these were picked up by Polaris at runtime.

When the equivalent flags were added directly to application.properties, they worked as expected:

polaris.features.ALLOW_OPTIMIZED_SIBLING_CHECK=true
polaris.features.OPTIMIZED_SIBLING_CHECK=true
polaris.features.realm-overrides.POLARIS.ALLOW_TABLE_LOCATION_OVERLAP=true

To Reproduce

No response

Actual Behavior

No response

Expected Behavior

No response

Additional context

No response

System information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions