-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Backport 2.x] Integrate Engine with decoupled Translog interfaces #3822
[Backport 2.x] Integrate Engine with decoupled Translog interfaces #3822
Conversation
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
b3d63ae
to
bea5252
Compare
Gradle Check (Jenkins) Run Completed with:
|
4c671bb
to
1c3531b
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
looks like a flaky test. |
a2eb953
to
ed6ca73
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
ed6ca73
to
833f3f7
Compare
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## 2.x #3822 +/- ##
============================================
- Coverage 70.54% 70.49% -0.06%
+ Complexity 56546 56545 -1
============================================
Files 4533 4533
Lines 272158 272232 +74
Branches 40003 40004 +1
============================================
- Hits 191994 191907 -87
- Misses 64020 64234 +214
+ Partials 16144 16091 -53
Help us with your feedback. Take ten seconds to tell us how you rate us. |
} | ||
} finally { | ||
IOUtils.close(replicaEngine, storeReplica, engine, store, () -> terminate(threadPool)); | ||
} | ||
} | ||
|
||
protected void assertEngineCleanedUp(Engine engine, Translog translog) throws Exception { | ||
if (engine.isClosed.get() == false) { |
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.
Is this check redundant
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.
Yes, it was redundant. Removed it.
@@ -4036,8 +4036,7 @@ public void testCloseShardWhileResettingEngine() throws Exception { | |||
CountDownLatch closeDoneLatch = new CountDownLatch(1); | |||
IndexShard shard = newStartedShard(false, Settings.EMPTY, config -> new InternalEngine(config) { | |||
@Override | |||
public InternalEngine recoverFromTranslog(TranslogRecoveryRunner translogRecoveryRunner, long recoverUpToSeqNo) | |||
throws IOException { | |||
public Engine recoverFromTranslog(TranslogRecoveryRunner translogRecoveryRunner, long recoverUpToSeqNo) throws IOException { |
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.
Can we revert this change. Any reason why couldn't use TranslogEventListener
here?
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.
Reverted the above change. Using TranslogEventListener
, the test is getting stuck. Will debug it further.
a5715fa
to
0729f79
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
0729f79
to
3711b3d
Compare
Gradle Check (Jenkins) Run Completed with:
|
Test failing: DiskThresholdDeciderIT.testHighWatermarkNotExceeded. Looks like a flaky test. |
Signed-off-by: Satyajit Ganguly <[email protected]>
Signed-off-by: Satyajit Ganguly <[email protected]>
Signed-off-by: Satyajit Ganguly <[email protected]>
Signed-off-by: Satyajit Ganguly <[email protected]>
…ranch Signed-off-by: Satyajit Ganguly <[email protected]>
Signed-off-by: Satyajit Ganguly <[email protected]>
caea217
to
55b9fd7
Compare
Gradle Check (Jenkins) Run Completed with:
|
Again this test is failing: DiskThresholdDeciderIT.testHighWatermarkNotExceeded. |
55b9fd7
to
902e780
Compare
Gradle Check (Jenkins) Run Completed with:
|
902e780
to
0f05090
Compare
Gradle Check (Jenkins) Run Completed with:
|
0f05090
to
5ad1379
Compare
Gradle Check (Jenkins) Run Completed with:
|
5ad1379
to
9c6fc2c
Compare
Signed-off-by: Satyajit Ganguly <[email protected]>
9c6fc2c
to
c00693f
Compare
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
@Bukhtawar care to take a look at this backport? |
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Satyajit Ganguly <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Satyajit Ganguly <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Description
The PR aims to Integrate Engine with decoupled Translog interfaces. Original CR link. Ensuring
Engine
is backward compatible.Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.