The problem/use-case that the feature addresses

Redis version 6.2.x When deploy sentinel mode configuration, we typed duplicate config, which means same config parameter have more than one line in config file, in this situation, sentinel process will report error to prevent the service to start. But the data mode have no such issue.

This is an example of the issue. lines in conf:

...
sentinel monitor ocs-cache-cfs-prod-6460 10.84.32.215 6460 2
sentinel monitor ocs-cache-cfs-prod-6460 10.84.32.215 6460 2
sentinel monitor ocs-cache-cfs-prod-6460 10.84.32.215 6460 2
...
...

error reported in logs:

*** FATAL CONFIG FILE ERROR (Redis 6.2.12) ***
Reading the configuration file, at line 8
>>> 'sentinel monitor ocs-cache-cfs-prod-6460 10.84.32.215 6460 2'
Duplicate master name.

Description of the feature

We want to make it not report error for exactly same parameter with more than one line in sentinel conf file.

Alternatives you've considered

The startup process will scan the conf file, and accept the last occurrence of same parameter. This is what the data mode startup doing now.