Skip to content

Commit

Permalink
Remove misconfigured & not-used registerIntervalInMills, `fetchRegi…
Browse files Browse the repository at this point in the history
…stryAddrIntervalInMills`
  • Loading branch information
Pil0tXia committed Apr 14, 2024
1 parent 9c3abe0 commit a027e86
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ public class CommonConfiguration {
@ConfigField(field = "metaStorage.plugin.password")
private String eventMeshMetaStoragePluginPassword = "";

@ConfigField(field = "metaStorage.plugin.metaStorageIntervalInMills")
private Integer eventMeshMetaStorageIntervalInMills = 10 * 1000;

@ConfigField(field = "metaStorage.plugin.fetchMetaStorageAddrIntervalInMills")
private Integer eventMeshFetchMetaStorageAddrInterval = 10 * 1000;

@ConfigField(field = "metaStorage.plugin.enabled")
private boolean eventMeshServerMetaStorageEnable = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ public void testGetCommonConfiguration() {
Assertions.assertEquals("username-succeed!!!", config.getEventMeshMetaStoragePluginUsername());
Assertions.assertEquals("password-succeed!!!", config.getEventMeshMetaStoragePluginPassword());

Assertions.assertEquals(Integer.valueOf(816), config.getEventMeshMetaStorageIntervalInMills());
Assertions.assertEquals(Integer.valueOf(1816), config.getEventMeshFetchMetaStorageAddrInterval());

List<String> list = new ArrayList<>();
list.add("metrics-succeed1!!!");
list.add("metrics-succeed2!!!");
Expand Down
2 changes: 0 additions & 2 deletions eventmesh-common/src/test/resources/configuration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ eventMesh.storage.plugin.type=storage-succeed!!!
eventMesh.security.plugin.type=security-succeed!!!
eventMesh.metaStorage.plugin.type=metaStorage-succeed!!!
eventMesh.trace.plugin=trace-succeed!!!
eventMesh.metaStorage.plugin.metaStorageIntervalInMills=816
eventMesh.metaStorage.plugin.fetchMetaStorageAddrIntervalInMills=1816
eventMesh.metrics.plugin=metrics-succeed1!!!,metrics-succeed2!!!,metrics-succeed3!!!
eventMesh.metaStorage.plugin.server-addr=server-addr-succeed1!!!

Expand Down
5 changes: 0 additions & 5 deletions eventmesh-operator/config/samples/eventmesh_v1_runtime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ data:
eventMesh.server.retry.async.pushRetryDelayInMills=500
eventMesh.server.retry.sync.pushRetryDelayInMills=500
eventMesh.server.retry.pushRetryQueueSize=10000
#admin
eventMesh.server.admin.http.port=10106
#metaStorage
eventMesh.server.metaStorage.metaStorageIntervalInMills=10000
eventMesh.server.metaStorage.fetchMetaStorageAddrIntervalInMills=20000
#auto-ack
#eventMesh.server.defibus.client.comsumeTimeoutInMin=5
Expand Down
3 changes: 0 additions & 3 deletions eventmesh-runtime/conf/eventmesh.properties
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ eventMesh.server.retry.sync.pushRetryDelayInMills=500
eventMesh.server.retry.pushRetryQueueSize=10000
eventMesh.server.retry.plugin.type=default

# metaStorage
eventMesh.server.metaStorage.metaStorageIntervalInMills=10000
eventMesh.server.metaStorage.fetchMetaStorageAddrIntervalInMills=20000
# auto-ack
#eventMesh.server.defibus.client.comsumeTimeoutInMin=5

Expand Down
2 changes: 0 additions & 2 deletions eventmesh-runtime/src/test/resources/configuration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ eventMesh.metaStorage.plugin.server-addr=server-addr-succeed1!!!
eventMesh.metaStorage.plugin.enabled=true
eventMesh.metaStorage.plugin.username=username-succeed!!!
eventMesh.metaStorage.plugin.password=password-succeed!!!
eventMesh.metaStorage.plugin.registerIntervalInMills=816
eventMesh.metaStorage.plugin.fetchRegistryAddrIntervalInMills=1816

eventMesh.server.security.enabled=true
eventMesh.server.trace.enabled=true
Expand Down

0 comments on commit a027e86

Please sign in to comment.