Ian Maxon has posted comments on this change.

Change subject: Change the API for writing and reading metadata pages
......................................................................


Patch Set 5:

(3 comments)

https://asterix-gerrit.ics.uci.edu/#/c/1396/5/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/ioopcallbacks/AbstractLSMIOOperationCallback.java
File 
asterixdb/asterix-common/src/main/java/org/apache/asterix/common/ioopcallbacks/AbstractLSMIOOperationCallback.java:

Line 101:         ((IMetadataPageManager) 
treeIndex.getPageManager()).put(LSN_KEY, new MutableArrayValueReference(lsn));
> Currently, this cast is here because not every tree can write metadata to t
I see, I guess it is implied here that the ITreeIndex is a disk component.


https://asterix-gerrit.ics.uci.edu/#/c/1396/5/asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationChannel.java
File 
asterixdb/asterix-replication/src/main/java/org/apache/asterix/replication/management/ReplicationChannel.java:

Line 345:                     String componentId = 
LSMComponentProperties.getLSMComponentID(afp.getFilePath());
> because what if we have another negative value. the previous code will brea
I'm not sure I follow, the way I recall this working, is that -1 is inserted 
initially. Later on, the real LSN is written. I agree that it's good to make it 
an inequality in the case that somehow it starts to read junk, but the old 
variable let you know that -1 was definitely an invalid/incomplete LSN, not 
some other error state.


https://asterix-gerrit.ics.uci.edu/#/c/1396/5/hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITreeIndexFrame.java
File 
hyracks-fullstack/hyracks/hyracks-storage-am-common/src/main/java/org/apache/hyracks/storage/am/common/api/ITreeIndexFrame.java:

Line 34:     public static class Constants {
> The way it was previously defined was not the best way. we have different d
I see, that makes sense, since the Metadata page manager now is a slotted page 
like the rest.


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Iadad522ab5568677aa816c74fc1d63acad505380
Gerrit-PatchSet: 5
Gerrit-Project: asterixdb
Gerrit-Branch: master
Gerrit-Owner: abdullah alamoudi <bamou...@gmail.com>
Gerrit-Reviewer: Ian Maxon <ima...@apache.org>
Gerrit-Reviewer: Jenkins <jenk...@fulliautomatix.ics.uci.edu>
Gerrit-Reviewer: Till Westmann <ti...@apache.org>
Gerrit-Reviewer: abdullah alamoudi <bamou...@gmail.com>
Gerrit-HasComments: Yes

Reply via email to