mirror of https://github.com/apache/nifi.git
Merge remote-tracking branch 'upstream/develop' into nifi-solr-bundle
This commit is contained in:
commit
89b0de8572
|
@ -130,8 +130,14 @@ public class SocketClient implements SiteToSiteClient {
|
|||
return null;
|
||||
}
|
||||
|
||||
final Transaction transaction = connectionState.getSocketClientProtocol().startTransaction(
|
||||
final Transaction transaction;
|
||||
try {
|
||||
transaction = connectionState.getSocketClientProtocol().startTransaction(
|
||||
connectionState.getPeer(), connectionState.getCodec(), direction);
|
||||
} catch (final Throwable t) {
|
||||
pool.terminate(connectionState);
|
||||
throw t;
|
||||
}
|
||||
|
||||
// Wrap the transaction in a new one that will return the EndpointConnectionState back to the pool whenever
|
||||
// the transaction is either completed or canceled.
|
||||
|
|
|
@ -297,7 +297,9 @@ public final class StandardProcessScheduler implements ProcessScheduler {
|
|||
final Class<? extends ControllerService> serviceDefinition = descriptor.getControllerServiceDefinition();
|
||||
if ( serviceDefinition != null ) {
|
||||
final String serviceId = processContext.getProperty(descriptor).getValue();
|
||||
serviceIds.add(serviceId);
|
||||
if ( serviceId != null ) {
|
||||
serviceIds.add(serviceId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -337,8 +339,8 @@ public final class StandardProcessScheduler implements ProcessScheduler {
|
|||
final ProcessorLog procLog = new SimpleProcessLogger(procNode.getIdentifier(), procNode.getProcessor());
|
||||
|
||||
procLog.error("{} failed to invoke @OnScheduled method due to {}; processor will not be scheduled to run for {}",
|
||||
new Object[]{procNode.getProcessor(), cause.getCause(), administrativeYieldDuration}, cause.getCause());
|
||||
LOG.error("Failed to invoke @OnScheduled method due to {}", cause.getCause().toString(), cause.getCause());
|
||||
new Object[]{procNode.getProcessor(), cause, administrativeYieldDuration}, cause);
|
||||
LOG.error("Failed to invoke @OnScheduled method due to {}", cause.toString(), cause);
|
||||
|
||||
ReflectionUtils.quietlyInvokeMethodsWithAnnotation(OnUnscheduled.class, procNode.getProcessor(), processContext);
|
||||
ReflectionUtils.quietlyInvokeMethodsWithAnnotation(OnStopped.class, procNode.getProcessor(), processContext);
|
||||
|
|
|
@ -53,7 +53,7 @@ public class StandardControllerServiceNode extends AbstractConfiguredComponent i
|
|||
|
||||
public StandardControllerServiceNode(final ControllerService proxiedControllerService, final ControllerService implementation, final String id,
|
||||
final ValidationContextFactory validationContextFactory, final ControllerServiceProvider serviceProvider) {
|
||||
super(proxiedControllerService, id, validationContextFactory, serviceProvider);
|
||||
super(implementation, id, validationContextFactory, serviceProvider);
|
||||
this.proxedControllerService = proxiedControllerService;
|
||||
this.implementation = implementation;
|
||||
this.serviceProvider = serviceProvider;
|
||||
|
|
|
@ -243,7 +243,7 @@ public class SimpleProcessLogger implements ProcessorLog {
|
|||
for (int i = 0; i < os.length; i++) {
|
||||
modifiedArgs[i + 1] = os[i];
|
||||
}
|
||||
modifiedArgs[modifiedArgs.length - 1] = t.toString();
|
||||
modifiedArgs[modifiedArgs.length - 1] = (t == null) ? "" : t.toString();
|
||||
|
||||
return modifiedArgs;
|
||||
}
|
||||
|
|
|
@ -1159,8 +1159,9 @@
|
|||
// add a row for the new property
|
||||
var propertyGrid = table.data('gridInstance');
|
||||
var propertyData = propertyGrid.getData();
|
||||
var id = propertyData.getLength();
|
||||
propertyData.addItem({
|
||||
id: propertyData.getLength(),
|
||||
id: id,
|
||||
hidden: false,
|
||||
property: propertyName,
|
||||
displayName: propertyName,
|
||||
|
@ -1168,6 +1169,11 @@
|
|||
value: null,
|
||||
type: 'userDefined'
|
||||
});
|
||||
|
||||
// select the new properties row
|
||||
var row = propertyData.getRowById(id);
|
||||
propertyGrid.setSelectedRows([row]);
|
||||
propertyGrid.scrollRowIntoView(row);
|
||||
} else {
|
||||
nf.Dialog.showOkDialog({
|
||||
dialogContent: 'Property name must be specified.',
|
||||
|
@ -1182,6 +1188,14 @@
|
|||
var cancel = function () {
|
||||
newPropertyDialog.hide();
|
||||
};
|
||||
|
||||
// enable enter to add
|
||||
newPropertyNameField.on('keydown', function (e) {
|
||||
var code = e.keyCode ? e.keyCode : e.which;
|
||||
if (code === $.ui.keyCode.ENTER) {
|
||||
add();
|
||||
}
|
||||
});
|
||||
|
||||
// make the new property dialog draggable
|
||||
newPropertyDialog.draggable({
|
||||
|
|
Loading…
Reference in New Issue