public class SchemaAwareDatabaseClusterLockService
extends com.atlassian.beehive.db.DatabaseClusterLockService
Constructor and Description |
---|
SchemaAwareDatabaseClusterLockService(com.atlassian.beehive.db.spi.ClusterLockDao clusterLockDao,
com.atlassian.beehive.db.ClusterNodeHeartbeatService clusterNodeHeartbeatService,
SchemaUpToDateUtility schemaUpToDateUtility) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUpOrphanLocks()
This is necessary as this service will be instantiated before the upgrade phase, causing issues if the schema
does not contain the heartbeat table (this will trigger getting the node id, which will be performed for the first
time and will result in trying to write a heartbeat)
|
public SchemaAwareDatabaseClusterLockService(com.atlassian.beehive.db.spi.ClusterLockDao clusterLockDao, com.atlassian.beehive.db.ClusterNodeHeartbeatService clusterNodeHeartbeatService, SchemaUpToDateUtility schemaUpToDateUtility)
@PostConstruct public void cleanUpOrphanLocks()
cleanUpOrphanLocks
in class com.atlassian.beehive.db.DatabaseClusterLockService
Copyright © 2019 Atlassian. All rights reserved.