File tree 1 file changed +2
-1
lines changed
sentinel-core/src/main/java/com/alibaba/csp/sentinel/config
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 20
20
import java .util .Map ;
21
21
import java .util .Properties ;
22
22
import java .util .concurrent .ConcurrentHashMap ;
23
+ import java .util .concurrent .CopyOnWriteArraySet ;
23
24
24
25
import com .alibaba .csp .sentinel .log .LogBase ;
25
26
import com .alibaba .csp .sentinel .log .RecordLog ;
@@ -123,7 +124,7 @@ private static void loadProps() {
123
124
}
124
125
125
126
// JVM parameter override file config.
126
- for (Map .Entry <Object , Object > entry : System .getProperties ().entrySet ()) {
127
+ for (Map .Entry <Object , Object > entry : new CopyOnWriteArraySet <>( System .getProperties ().entrySet () )) {
127
128
String configKey = entry .getKey ().toString ();
128
129
String configValue = entry .getValue ().toString ();
129
130
String configValueOld = getConfig (configKey );
You can’t perform that action at this time.
0 commit comments