Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent YAML failure for composite key index #15806

Closed
neilstevenson opened this issue Oct 17, 2019 · 1 comment
Closed

Silent YAML failure for composite key index #15806

neilstevenson opened this issue Oct 17, 2019 · 1 comment

Comments

@neilstevenson
Copy link
Contributor

@neilstevenson neilstevenson commented Oct 17, 2019

If an index is defined in XML as

<index ordered="false">__key.hello</index>

the message

com.hazelcast.config.MapIndexConfig      : __key used without a following '#' char in index attribute '__key.hello'. Don't you want to index a key?

If the same is attempted in YAML as

      indexes:
      - type: HASH
        attributes:
          - "__key.hello"

no warning appears.

A silent fail.

Validated on 3.12.3

@taburet

This comment has been minimized.

Copy link
Contributor

@taburet taburet commented Oct 18, 2019

That new attributes syntax works only in 4.0, for 3.x it should be:

indexes:
  "__key.hello":
    ordered: false

The warning is properly emitted if the correct syntax is used. Closing.

@taburet taburet closed this Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.