8330702: Update failure handler to don't generate Error message if cores actions are empty
Reviewed-by: sspitsyn
This commit is contained in:
parent
dae0bda9d0
commit
548e95a689
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -104,8 +104,11 @@ public class ActionSet implements ProcessInfoGatherer, EnvironmentInfoGatherer,
|
|||||||
|
|
||||||
private String[] getTools(PrintWriter writer, Properties p, String key) {
|
private String[] getTools(PrintWriter writer, Properties p, String key) {
|
||||||
String value = p.getProperty(key);
|
String value = p.getProperty(key);
|
||||||
if (value == null || value.isEmpty()) {
|
if (value == null) {
|
||||||
writer.printf("ERROR: '%s' property is empty%n", key);
|
writer.printf("ERROR: '%s' property is not set%n", key);
|
||||||
|
return new String[]{};
|
||||||
|
}
|
||||||
|
if (value.isEmpty()) {
|
||||||
return new String[]{};
|
return new String[]{};
|
||||||
}
|
}
|
||||||
return value.split(" ");
|
return value.split(" ");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -59,6 +59,8 @@ native.stack.params.repeat=6
|
|||||||
native.core.app=cdb
|
native.core.app=cdb
|
||||||
native.core.args=-c ".dump /mA core.%p;qd" -p %p
|
native.core.args=-c ".dump /mA core.%p;qd" -p %p
|
||||||
native.core.params.timeout=600000
|
native.core.params.timeout=600000
|
||||||
|
|
||||||
|
cores=
|
||||||
################################################################################
|
################################################################################
|
||||||
# environment info to gather
|
# environment info to gather
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user