Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.7.0
-
None
Description
We should discard the method "ValueSchemaBuilder.addField(Field)" and use the other method signature instead, since this method might add more fields than wanted.
public ValueSchemaBuilder addField(Field field) { fields.add(field); return this; }
If field.size is larger than 1, the above statement fields.add(field) will add more than one field into the list while the caller is expecting to add only ONE.
The only caller of this method is IndexMaintainer.generateIndexRowKeySchema() and it might generate a wrong row-key-schema as a result.