Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.9.0
-
None
-
None
-
ghx-label-1
Description
Due to a bug in mustache.cc, memz.tmpl template rendering fails if the buffer_pool JSON entry is not generated.
The bug is that nested template commands with the same key aren't correctly parsed:
{{?b}} {{#b}} {{/b}} {{/b}}
If 'b' is not present, the parser tries to skip to the closing
{{/b}}
, but does not take into account nesting and matches the first closing
{{/b}}
, not the second. Parsing then fails.
This JIRA is to track the workaround - rewriting the templates not to use nesting. The upstream project can fix the underlying issue independently.