mirror of https://github.com/apache/druid.git
Try to improve CI reliability. (#4787)
* Try to improve CI reliability. Unset _JAVA_OPTIONS just in case it is causing us to use more memory than expected. * Replace for loop with foreach.
This commit is contained in:
parent
c3a1ce6933
commit
587f1807c2
|
@ -20,11 +20,15 @@ matrix:
|
|||
# processing module test
|
||||
- sudo: false
|
||||
install: echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn install -q -ff -DskipTests -B
|
||||
before_script:
|
||||
- unset _JAVA_OPTIONS
|
||||
script: echo "MAVEN_OPTS='-Xmx512m'" > ~/.mavenrc && mvn test -B -Pparallel-test -Dmaven.fork.count=2 -pl processing
|
||||
|
||||
# non-processing modules test
|
||||
- sudo: false
|
||||
install: echo "MAVEN_OPTS='-Xmx3000m'" > ~/.mavenrc && mvn install -q -ff -DskipTests -B
|
||||
before_script:
|
||||
- unset _JAVA_OPTIONS
|
||||
script: echo "MAVEN_OPTS='-Xmx512m'" > ~/.mavenrc && mvn test -B -Pparallel-test -Dmaven.fork.count=2 -pl '!processing'
|
||||
|
||||
# run integration tests
|
||||
|
|
|
@ -195,8 +195,7 @@ public class JSONPathParser implements Parser<String, Object>
|
|||
|
||||
if (val.isArray()) {
|
||||
List<Object> newList = new ArrayList<>();
|
||||
for (Iterator<JsonNode> it = val.iterator(); it.hasNext(); ) {
|
||||
JsonNode entry = it.next();
|
||||
for (JsonNode entry : val) {
|
||||
newList.add(valueConversionFunction(entry));
|
||||
}
|
||||
return newList;
|
||||
|
|
Loading…
Reference in New Issue