Skip to content

BUG - Parser seems to produce unexpected results #22

@jaserud

Description

@jaserud

There is an inconsistency between how rollcall's index parser sees shard name and how it is shown in the index name

Description

Consider the index name file_centric_cl_clinic-a_re_2
Rollcall breaks this down by parsing it like this:

entity = file
type = centric
shardPrefix = cl
shard = clinc (notice the '-a' has been dropped)
re = re
release = 2
indexName = file_centric_cl_clinic-a_re_2 (this still has the '-a')

There is a grammar file which describes what is expected for each part (i.e. regexs)
The grammer is currently expecting [a-zA-Z0-9]+

Expected Behaviour

-Either It should compain that the regex didn't match
-Or the index name should be file_centric_cl_clinic_re_2 (no '-a')

Actual Behaviour

-As describe above

Possible Fix

  • update grammer files
  • investigate parser and fix
  • add tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions