Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
XLogStreamer.constructPattern() contains:
StringBuilder sb = new StringBuilder(); if (noFilter) { sb.append("(.*)"); } else { sb.append("(.* - "); // <----- Here's the dash for (int i = 0; i < parameters.size(); i++) { sb.append(parameters.get(i) + "\\["); sb.append(filterParams.get(parameters.get(i)) + "\\] "); } sb.append(".*)"); } filterPattern = Pattern.compile(sb.toString());
which causes streaming logs to the web UI and CLI to not work if log4j.appender.oozie.layout.ConversionPattern in log4j.properties contains a "-" (dash).
We should try to remove this restriction.