NamesSpace properties

Hi,

  1. Is it possible to update existing Namespace properties like Retention period?

  2. Is it possible to delete Namespace?Is possible to

  3. What is min and max retention period is allowed?
    When i try to keep for a hour I am getting below error

    INVALID_ARGUMENT: A valid retention period is not set on request.

    RegisterNamespaceRequest.newBuilder().setNamespace(TEMPORAL_NS)
    .setWorkflowExecutionRetentionPeriod(Durations.fromHours(1))
    .setHistoryArchivalState(ArchivalState.ARCHIVAL_STATE_ENABLED)
    .setVisibilityArchivalState(ArchivalState.ARCHIVAL_STATE_ENABLED)
    .setHistoryArchivalUri(“file:///tmp/temporal_archival”)
    .setVisibilityArchivalUri(“file:///tmp/temporal_vis_archival”).build();

Q: Is it possible to update existing Namespace properties like Retention period?
A: yes, use update namespace API

Q: Is it possible to delete Namespace
A: this feature is not supported

Q: What is min and max retention period is allowed
A: min 1 day, max 30 days

Wenquan,
Has the max retention period been changed? We used to put 90 days but for a new namespace, perhaps after an upgrade, it’s not letting me.
Also, can you please improve this error message? “A valid retention period is not set on request.” should tell us what the constraints are.
Thank you.

the max 30 days retention is always there

there was however a bug in update namespace API which omits the retention check, which is fixed here: Add missing retention days check on update namespace API by wxing1292 · Pull Request #1407 · temporalio/temporal · GitHub