Skip to content

[Bug] Plugins are always used to archive WAL files if they have the capability #797

@kruton

Description

@kruton

isWALArchiver is ignored and plugins are always used to archive WAL files if they have the capability to do it.

Given the following plugins stanza:

  plugins:
    - name: barman-cloud.cloudnative-pg.io
      enabled: true
      isWALArchiver: false
      parameters:
        serverName: cnpg-default
        barmanObjectName: cnpg-default-barman

You would expect WAL not to be archived using this plugin. However, there is no filtering in the archiveWALViaPlugins. It always archives with plugins that support WAL archiving.

The only cases where it won't archive WAL are:

  1. if you specify a plugin as the WAL archiver and it doesn't have that capability.
  2. you don't specify any plugins

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