This repository was archived by the owner on Aug 1, 2023. It is now read-only.
File tree 3 files changed +21
-10
lines changed
src/main/java/com/algolia/search/saas
3 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 1
1
language : java
2
2
jdk :
3
- - oraclejdk7
3
+ - openjdk7 # oraclejdk7 is not available on trusty because it's EOL
4
4
- oraclejdk8
5
+
5
6
after_success :
6
7
- mvn -e -X clean test jacoco:report coveralls:jacoco
8
+
7
9
env :
8
10
global :
9
11
- VERBOSE=1
10
12
11
- # force non-container build
12
- sudo : required
13
- # workaround for https://github.com/travis-ci/travis-ci/issues/5227
14
- before_install :
15
- - cat /etc/hosts # optionally check the content *before*
16
- - sudo hostname "$(hostname | cut -c1-63)"
17
- - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
18
- - cat /etc/hosts # optionally check the content *after*
13
+ # # force non-container build
14
+ # sudo: required
15
+ # # workaround for https://github.com/travis-ci/travis-ci/issues/5227
16
+ # before_install:
17
+ # - cat /etc/hosts # optionally check the content *before*
18
+ # - sudo hostname "$(hostname | cut -c1-63)"
19
+ # - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
20
+ # - cat /etc/hosts # optionally check the content *after*
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ 1.12.1 (2017-10-09)
5
+ -------------------
6
+ - Fix retry strategy when all hosts are down
7
+
4
8
1.12.0 (2017-08-22)
5
9
-------------------
6
10
- Rename Key to ApiKey
Original file line number Diff line number Diff line change @@ -1157,7 +1157,12 @@ private List<String> hostsThatAreUp(List<String> hosts) {
1157
1157
result .add (host );
1158
1158
}
1159
1159
}
1160
- return result ;
1160
+
1161
+ if (result .isEmpty ()) {
1162
+ return hosts ;
1163
+ } else {
1164
+ return result ;
1165
+ }
1161
1166
}
1162
1167
1163
1168
private boolean isHostUpOrCouldBeRetried (String host ) {
You can’t perform that action at this time.
0 commit comments