Repository navigation
Remove obsolete deprecated client Config keys (#8994) #9169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -818,8 +818,8 @@ | |||||||||||||
| */ | ||||||||||||||
| private static Map<String, Object> maskCredentialsForApi(Map<String, Object> conf) { | ||||||||||||||
| Map<String, Object> masked = new HashMap<>(ConfigUtils.maskCredentials(conf)); | ||||||||||||||
| if (masked.get(BlowfishTupleSerializer.SECRET_KEY) instanceof String) { | ||||||||||||||
|
Check warning on line 821 in storm-server/src/main/java/org/apache/storm/daemon/nimbus/Nimbus.java
|
||||||||||||||
| masked.put(BlowfishTupleSerializer.SECRET_KEY, "*****"); | ||||||||||||||
|
Check warning on line 822 in storm-server/src/main/java/org/apache/storm/daemon/nimbus/Nimbus.java
|
||||||||||||||
| } | ||||||||||||||
| return masked; | ||||||||||||||
| } | ||||||||||||||
|
|
@@ -1138,7 +1138,7 @@ | |||||||||||||
| cleanable.addAll(Utils.OR(state.heartbeatStorms(), EMPTY_STRING_LIST)); | ||||||||||||||
| cleanable.addAll(Utils.OR(state.errorTopologies(), EMPTY_STRING_LIST)); | ||||||||||||||
| cleanable.addAll(Utils.OR(store.storedTopoIds(), EMPTY_STRING_SET)); | ||||||||||||||
| cleanable.addAll(Utils.OR(state.backpressureTopologies(), EMPTY_STRING_LIST)); | ||||||||||||||
| cleanable.addAll(Utils.OR(state.idsOfTopologiesWithPrivateWorkerKeys(), EMPTY_STRING_SET)); | ||||||||||||||
| Set<String> delayedCleanable = getExpiredTopologyIds(cleanable, conf); | ||||||||||||||
| delayedCleanable.removeAll(Utils.OR(state.activeStorms(), EMPTY_STRING_LIST)); | ||||||||||||||
|
|
@@ -1258,9 +1258,6 @@ | |||||||||||||
| ret.put(Config.TOPOLOGY_WORKER_NIMBUS_THRIFT_CLIENT_USE_TLS, workerNimbusClientTlsEnabled); | ||||||||||||||
| ret.put(Config.NIMBUS_THRIFT_CLIENT_USE_TLS, workerNimbusClientTlsEnabled); | ||||||||||||||
|
|
||||||||||||||
| if (!mergedConf.containsKey(Config.TOPOLOGY_METRICS_REPORTERS) && mergedConf.containsKey(Config.STORM_METRICS_REPORTERS)) { | ||||||||||||||
| ret.put(Config.TOPOLOGY_METRICS_REPORTERS, mergedConf.get(Config.STORM_METRICS_REPORTERS)); | ||||||||||||||
| } | ||||||||||||||
|
|
||||||||||||||
| // add any system metrics reporters to the topology metrics reporters | ||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing the fallback above means a
Suggested change
|
||||||||||||||
| if (conf.containsKey(Config.STORM_TOPOLOGY_METRICS_SYSTEM_REPORTERS)) { | ||||||||||||||
|
|
@@ -3177,7 +3174,7 @@ | |||||||||||||
| state.teardownHeartbeats(topoId); | ||||||||||||||
| state.teardownTopologyErrors(topoId); | ||||||||||||||
| state.removeAllPrivateWorkerKeys(topoId); | ||||||||||||||
| state.removeBackpressure(topoId); | ||||||||||||||
|
Check warning on line 3177 in storm-server/src/main/java/org/apache/storm/daemon/nimbus/Nimbus.java
|
||||||||||||||
| rmDependencyBlobsInTopology(topoId, stillReferenced); | ||||||||||||||
| forceDeleteTopoDistDir(topoId); | ||||||||||||||
| rmTopologyKeys(topoId); | ||||||||||||||
|
|
@@ -3697,8 +3694,8 @@ | |||||||||||||
| waitForDesiredCodeReplication(totalConf, topoId); | ||||||||||||||
| state.setupHeatbeats(topoId, topoConf); | ||||||||||||||
| state.setupErrors(topoId, topoConf); | ||||||||||||||
| if (ObjectReader.getBoolean(totalConf.get(Config.TOPOLOGY_BACKPRESSURE_ENABLE), false)) { | ||||||||||||||
| state.setupBackpressure(topoId, topoConf); | ||||||||||||||
|
Check warning on line 3698 in storm-server/src/main/java/org/apache/storm/daemon/nimbus/Nimbus.java
|
||||||||||||||
| } | ||||||||||||||
| notifyTopologyActionListener(topoName, "submitTopology"); | ||||||||||||||
| TopologyStatus status = null; | ||||||||||||||
|
|
||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old warning that pointed operators to
storm.hdfs.login.principalgoes away with the key. An operator who set onlyblobstore.hdfs.principalnow getsnullhere and no message, and the keytab path behaves the same way. A warning for one release would help (optional; the keytab method would need the same):