Revert "Ensure flush during internal refresh is only performed on stateless realtime get path" #159689

Merged
nicktindall opened 6:51am on September 18, 2026 wanted to merge 222 Δ into elastic/elasticsearch main from
revert-158432-avoid_flush_version_map

Pull request #159689 quality checks

Code files and functions touched by this pull request are analyzed below.

Quality targets

How does this pull request compare to chosen code quality targets? Read more about code quality targets.

Target name Target value This PR
Maximum Diff Delta per PR 750 222
Maximum comment count per PR 20 5
Pull request maximum business days between activity 3 1
Pull request maximum business days open 10 1

Coupled files

Are there any files from this commit that are always committed alongside another file? This often suggests that there exists code coupling to potentially remove. Read more about code coupling

Committed together % Code file
Coupled code file
Commits in PR with both
100 x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/index/engine/FollowingEngine.java
server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java
1
78 x-pack/plugin/stateless/src/test/java/org/elasticsearch/xpack/stateless/engine/IndexEngineTests.java
x-pack/plugin/stateless/src/main/java/org/elasticsearch/xpack/stateless/engine/IndexEngine.java
1

️ Biggest functions grown or shrunk by pull request

Which functions had their line count change as part of this pull request?

Stat calculation pending updated commit group build. Please check back in a few minutes.