mirror of https://github.com/apache/druid.git
revert breakage to chat handlers
This commit is contained in:
parent
3920300900
commit
ecbc9eda48
|
@ -91,6 +91,9 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory<MapInputRow
|
||||||
if (chatHandlerProvider.isPresent()) {
|
if (chatHandlerProvider.isPresent()) {
|
||||||
log.info("Found chathandler of class[%s]", chatHandlerProvider.get().getClass().getName());
|
log.info("Found chathandler of class[%s]", chatHandlerProvider.get().getClass().getName());
|
||||||
chatHandlerProvider.get().register(serviceName, firehose);
|
chatHandlerProvider.get().register(serviceName, firehose);
|
||||||
|
if (serviceName.contains(":")) {
|
||||||
|
chatHandlerProvider.get().register(serviceName.replaceAll(".*:", ""), firehose); // rofl
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
log.info("No chathandler detected");
|
log.info("No chathandler detected");
|
||||||
}
|
}
|
||||||
|
@ -143,7 +146,7 @@ public class EventReceiverFirehoseFactory implements FirehoseFactory<MapInputRow
|
||||||
for (final Map<String, Object> event : events) {
|
for (final Map<String, Object> event : events) {
|
||||||
// Might throw an exception. We'd like that to happen now, instead of while adding to the row buffer.
|
// Might throw an exception. We'd like that to happen now, instead of while adding to the row buffer.
|
||||||
InputRow row = parser.parse(event);
|
InputRow row = parser.parse(event);
|
||||||
rows.add(Rows.toCaseInsensitiveInputRow(row,row.getDimensions()));
|
rows.add(Rows.toCaseInsensitiveInputRow(row, row.getDimensions()));
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue