Uh oh!
There was an error while loading. Please reload this page.
PHOENIX-6179 : Relax maxLookBackAge check during an upgrade - #942
PHOENIX-6179 : Relax maxLookBackAge check during an upgrade#942virajjasani wants to merge 1 commit into
Conversation
stoty
commented
Oct 28, 2020
💔 -1 overall
This message was automatically generated. |
virajjasani
commented
Oct 28, 2020
@gjacoby126@jpisaac@ChinmaySKulkarni Could you please take a look? 4.x patch is also attached to Jira. |
virajjasani
commented
Oct 29, 2020
FYI @yanxinyi |
| Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES); | ||
| if (setMaxLookBackAge) { | ||
| props.put( | ||
| QueryServices.GLOBAL_INDEX_ROW_AGE_THRESHOLD_TO_DELETE_MS_ATTRIB, |
There was a problem hiding this comment.
why do we need to set this property?
There was a problem hiding this comment.
My bad, this is not needed, it came as part of copy from existing test. Removed it.
Thanks
| QueryServices.GLOBAL_INDEX_ROW_AGE_THRESHOLD_TO_DELETE_MS_ATTRIB, | ||
| Long.toString(0)); | ||
| props.put(CompatBaseScannerRegionObserver.PHOENIX_MAX_LOOKBACK_AGE_CONF_KEY, | ||
| Integer.toString(15)); |
There was a problem hiding this comment.
With 15, we are able to reproduce the exception without source code change on this patch. Is it fine? I can update this if there is any better suggestion that I might be unaware of.
There was a problem hiding this comment.
Any value less than 31 should work for testing purpose. Because during upgrade, SCN is set to be Phoenix version timestamp:
public static final long MIN_SYSTEM_TABLE_TIMESTAMP_4_16_0 = MIN_TABLE_TIMESTAMP + 31;
public static final long MIN_SYSTEM_TABLE_TIMESTAMP_5_1_0 = MIN_SYSTEM_TABLE_TIMESTAMP_4_16_0;
There was a problem hiding this comment.
can you add explanation comments here so that in the future ppl have a better understanding, thanks
stoty
commented
Oct 30, 2020
💔 -1 overall
This message was automatically generated. |
stoty
commented
Oct 30, 2020
💔 -1 overall
This message was automatically generated. |
jpisaac
left a comment
There was a problem hiding this comment.
LGTM, added a suggestion, Thanks for the patch
| // Executes the SQL commands listed in the given operation file from the sql_files directory | ||
| private void executeQueriesWithCurrentVersion(String operation) throws Exception { | ||
| private void executeQueriesWithCurrentVersion(String operation, | ||
| boolean setMaxLookBackAge) throws Exception { |
There was a problem hiding this comment.
@virajjasani Was wondering whether you would entertain the idea of using an EnumSet instead of boolean (which is specific to maxLookBaackAge). The thinking was we could then reuse this method more easily for other property checks and combinations of them.
stoty
commented
Oct 30, 2020
💔 -1 overall
This message was automatically generated. |
No description provided.