Skip to content

Commit

Permalink
[FLINK-24784][runtime] Enable state.backend.latency-track.state-name-…
Browse files Browse the repository at this point in the history
…as-variable by default
  • Loading branch information
SteNicholas authored and Myasuka committed Nov 15, 2021
1 parent a66a876 commit 07d2585
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</tr>
<tr>
<td><h5>state.backend.latency-track.state-name-as-variable</h5></td>
<td style="word-wrap: break-word;">false</td>
<td style="word-wrap: break-word;">true</td>
<td>Boolean</td>
<td>Whether to expose state name as a variable if tracking latency.</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</tr>
<tr>
<td><h5>state.backend.latency-track.state-name-as-variable</h5></td>
<td style="word-wrap: break-word;">false</td>
<td style="word-wrap: break-word;">true</td>
<td>Boolean</td>
<td>Whether to expose state name as a variable if tracking latency.</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public class StateBackendOptions {
public static final ConfigOption<Boolean> LATENCY_TRACK_STATE_NAME_AS_VARIABLE =
ConfigOptions.key("state.backend.latency-track.state-name-as-variable")
.booleanType()
.defaultValue(false)
.defaultValue(true)
.withDescription(
"Whether to expose state name as a variable if tracking latency.");
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public void testDefaultEnabledLatencyTrackingStateConfig() {
Assert.assertEquals(
(long) StateBackendOptions.LATENCY_TRACK_HISTORY_SIZE.defaultValue(),
latencyTrackingStateConfig.getHistorySize());
Assert.assertEquals(
StateBackendOptions.LATENCY_TRACK_STATE_NAME_AS_VARIABLE.defaultValue(),
latencyTrackingStateConfig.isStateNameAsVariable());
}

@Test
Expand Down

0 comments on commit 07d2585

Please sign in to comment.