Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently, we write magic string in QuorumPeerConfig, this may not be a good practice.
https://stackoverflow.com/questions/47882/what-is-a-magic-number-and-why-is-it-bad
if (key.equals("dataDir")) { dataDir = vff.create(value); } else if (key.equals("dataLogDir")) { dataLogDir = vff.create(value); }
It might be better to maintain these configs string in a single class
Attachments
Issue Links
- links to