Ian Maxon has submitted this change and it was merged.

Change subject: ASTERIXDB-1710: Redo fails on WAIT log record
......................................................................


ASTERIXDB-1710: Redo fails on WAIT log record

Simple fix :)

It would be best to have a test for this (and all other logtypes),
but the LogManager will have to be maniupulated into generating the record
for this specifically because the conditions upon which it happens naturally
are hard to encounter.

Change-Id: I4443b716bc791878fabbbf3b374fc7c7c592668f
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1315
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
---
M 
asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Murtadha Hubail: Looks good to me, approved
  Jenkins: Verified; No violations found; Verified



diff --git 
a/asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java
 
b/asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java
index 6eb758c..286fc16 100644
--- 
a/asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java
+++ 
b/asterixdb/asterix-transactions/src/main/java/org/apache/asterix/transaction/management/service/recovery/RecoveryManager.java
@@ -405,6 +405,7 @@
                     case LogType.ABORT:
                     case LogType.FLUSH:
                     case LogType.UPSERT_ENTITY_COMMIT:
+                    case LogType.WAIT:
                     case LogType.MARKER:
                         //do nothing
                         break;

-- 
To view, visit https://asterix-gerrit.ics.uci.edu/1315
To unsubscribe, visit https://asterix-gerrit.ics.uci.edu/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4443b716bc791878fabbbf3b374fc7c7c592668f
Gerrit-PatchSet: 3
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: Ian Maxon <[email protected]>
Gerrit-Reviewer: Ian Maxon <[email protected]>
Gerrit-Reviewer: Jenkins <[email protected]>
Gerrit-Reviewer: Murtadha Hubail <[email protected]>

Reply via email to