[OP-237] Opush accepts to boot even when it cannot reach the database Created: 07/Apr/16  Updated: 11/May/16  Resolved: 11/Apr/16

Status: Closed
Project: Opush
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.0

Type: Bug Priority: Normal
Reporter: Thomas HILAIRE Assignee: Thomas HILAIRE
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 1
Rank: 6990
Sprint: 2016#01

 Description   

Pre-conditions

Reproduction steps

  1. As an admin, I set a wrong db information in /etc/opush/opush.ini or /etc/obm/obm_conf.ini
  2. I restart opush

Current behavior

  1. NOK it listens on the port 8082
  2. NOK I can administrate opush using crash

Expected behavior

  1. OK it doesn't listen on the port 8082
  2. OK I can't administrate opush using crash
  3. OK I have some logs in opush.log telling that opush won't start

Additional informations



 Comments   
Comment by Thomas HILAIRE [ 08/Apr/16 ]

Impacts: The opush startup
QA: I've tested on a debian that:

  • opush won't start at all if the DB cannot be reached (bad ip, bad password, ...)
  • opush will start as "admin mode" if the DB can be reached, but "cassandra schema version" is not as expected
  • opush starts and serve requests if the DB can be reached, and the "cassandra schema version" is as expected
Comment by Jenkins Continuous Integration Server [ 08/Apr/16 ]

UNSTABLE: Integrated in opush-master-3.1 #44
OP-237 Exit with a message if the db isn't reachable (thilaire: 47dfa665e5a6c5c2d6e04841238b3bfcbd22542c)

  • push-server/src/main/java/org/obm/push/ServerFactoryModule.java
  • integration-testing/opush/src/main/java/org/obm/opush/env/DaoModule.java
  • push-server/src/test/java/org/obm/push/ServerFactoryModuleTest.java
  • push-server/src/main/java/org/obm/push/OpushServerLauncher.java
Comment by Stephane COLSON [ 26/Apr/16 ]

OK on CentOS and Debian

Comment by Jenkins Continuous Integration Server [ 11/May/16 ]

ABORTED: Integrated in opush-master #262
OP-237 Exit with a message if the db isn't reachable (thilaire: b6c6bbcacbc8476a31f54cddfe1925a5308df87e)

  • push-server/src/test/java/org/obm/push/ServerFactoryModuleTest.java
  • integration-testing/opush/src/main/java/org/obm/opush/env/DaoModule.java
  • push-server/src/main/java/org/obm/push/OpushServerLauncher.java
  • push-server/src/main/java/org/obm/push/ServerFactoryModule.java
Generated at Tue Oct 15 11:00:39 CEST 2019 using JIRA 6.1.1#6155-sha1:7188aeec9a6b57d61ea04c52f235f15f55c105e2.