vTNT / dev-puppet

my puppet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Potential Misconfiguration

santolucito opened this issue · comments

We are a group of researchers from Yale University building a tool to finding bugs in configurations files. To evaluate the effectiveness of our tool, we randomly selected 1000 open source configuration files to verify and are requesting feedback on our error report. Your file https://raw.githubusercontent.com/vTNT/dev-puppet/7c66bd5b3930a6c662b8cd6ea9c21a5b8c4b7968/modules/mysql/files/my.cnf was among those files. When we ran our tool your file, it reported the following potential errors.

[TYPE ERROR: for keyword "myisam-recover"
Found value:[""]
In the training set we saw: String 55 times, Path 0 times, Size 0 times, Int 0 times, Bool 3 times

FINE GRAINED ERROR: Expected max-connections[mysqld] * read-rnd-buffer-size[mysqld] >= myisam-sort-buffer-size[mysqld]
Found values: ["max-connections[mysqld]=100","read-rnd-buffer-size[mysqld]=16m","myisam-sort-buffer-size[mysqld]=2g"]
In the training set we saw: ">=" 68 times, "<=" 2 times, "==" 0 times

FINE GRAINED ERROR: Expected max-connections[mysqld] * read-buffer-size[mysqld] >= myisam-sort-buffer-size[mysqld]
Found values: ["max-connections[mysqld]=100","read-buffer-size[mysqld]=1m","myisam-sort-buffer-size[mysqld]=2g"]
In the training set we saw: ">=" 73 times, "<=" 3 times, "==" 0 times
]

The training set referenced in the report is taken from the industrial configuration files at https://github.com/tianyin/configuration_datasets. Note that even if your system is currently working, these bug may manifest itself only under large traffic loads or different system environments.

If you feel the any of above errors may indeed cause problems either on your system, or a different system, please comment on this issue report in the space below. This will help use to improve our tool. If you do not believe this is a potential bug, please feel free to close this issue. If possible we would appreciate your feedback before July 27.

If you would like find out more about how we detected these bug, you can find the open source tool at https://github.com/santolucito/ConfigV. For a quick overview of this tool, you can watch this video at https://youtu.be/plliEh-5MpM. If you have further questions, or would like to get involved with this project, feel free to reach out over email at mark.santolucito@yale.edu.

Thank you for your time!