Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
portal-backend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
portal-backend
Commits
0069e8ca
Commit
0069e8ca
authored
6 years ago
by
Ludovic Claude
Browse files
Options
Downloads
Patches
Plain Diff
Rename to wokenCluster, conflict in Spring bean names
parent
efca4218
No related branches found
Branches containing commit
Tags
2.7.6
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/eu/hbp/mip/akka/AkkaClusterHealthCheck.java
+3
-3
3 additions, 3 deletions
src/main/java/eu/hbp/mip/akka/AkkaClusterHealthCheck.java
src/main/java/eu/hbp/mip/configuration/AkkaConfiguration.java
+1
-1
1 addition, 1 deletion
...main/java/eu/hbp/mip/configuration/AkkaConfiguration.java
with
4 additions
and
4 deletions
src/main/java/eu/hbp/mip/akka/AkkaClusterHealthCheck.java
+
3
−
3
View file @
0069e8ca
...
...
@@ -15,13 +15,13 @@ public class AkkaClusterHealthCheck implements HealthIndicator {
private
ActorRef
wokenMediator
;
@Autowired
private
Cluster
c
luster
;
private
Cluster
wokenC
luster
;
@Override
public
Health
health
()
{
if
(
c
luster
.
state
().
getLeader
()
==
null
)
{
if
(
wokenC
luster
.
state
().
getLeader
()
==
null
)
{
return
Health
.
down
().
withDetail
(
"Error"
,
"No leader in the cluster"
).
build
();
}
else
if
(!
c
luster
.
state
().
allRoles
().
contains
(
"woken"
))
{
}
else
if
(!
wokenC
luster
.
state
().
allRoles
().
contains
(
"woken"
))
{
return
Health
.
down
().
withDetail
(
"Error"
,
"Woken server cannot be seen in the cluster"
).
build
();
}
return
Health
.
up
().
build
();
...
...
This diff is collapsed.
Click to expand it.
src/main/java/eu/hbp/mip/configuration/AkkaConfiguration.java
+
1
−
1
View file @
0069e8ca
...
...
@@ -49,7 +49,7 @@ class AkkaConfiguration {
}
@Bean
public
Cluster
c
luster
()
{
public
Cluster
wokenC
luster
()
{
return
new
Cluster
(
actorSystem
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment