149
150
// ClusterConfiguredForArchival returns true if cluster is configured to handle archival, false otherwise
152
>
return a.GetClusterState() == ArchivalEnabled
153
>
}
154
156
>
// Only check dynamic config when archival is enabled in static config.
157
>
// If archival is disabled in static config, there will be no provider section in the static config
158
>
// and the archiver provider can not create any archiver. Therefore, in that case,
159
>
// even dynamic config says archival is enabled, we should ignore that.
160
>
// Only when archival is enabled in static config, should we check if there's any difference between static config and dynamic config.
161
>
if a.staticClusterState != ArchivalEnabled {
162
return a.staticClusterState
163
}