The kind's alias uses hashCode() function that sometimes returns negative...
Type of change
-
Bug Fix -
Feature -
IT Fix
Please provide link to gitlab issue or ADR(Architecture Decision Record)
Does this introduce a change in the core logic?
- [YES/NO] NO
Does this introduce a change in the cloud provider implementation, if so which cloud?
-
AWS -
Azure -
Google Cloud -
IBM
Does this introduce a breaking change?
- [YES/NO]
What is the current behavior?
One of the MultiKindsValidator test cases fails with an error from search service indicating that the length exceeds 3840 bytes. This happens because, in the IT, we assume that the hashCode() function used in finding out the Index Alias, always returns positive numbers. So, this case fails when the hashCode() results in negative numbers as the "-" causes the length of the index to increase beyond 3840.
What is the new/expected behavior?
Modified IT to account for the negative hashCode()
Have you added/updated Unit Tests and Integration Tests?
Yes
Any other useful information
The kind's alias uses hashCode() function that sometimes returns negative numbers. The test does not account for the extra character occupied by the - symbol, when the hashCode is used for the construction of index alias name