-
Notifications
You must be signed in to change notification settings - Fork 1k
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
PHOENIX-7381 : Skip last_ddl_timestamp validation when UCF is defined on table and cache entry is not old #1952
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4f8b056
skip ddl validation when UCF is defined on table and cache entry is n…
e899baa
case when table is not found in cache
3ebe298
Merge branch 'master' into PHOENIX-7381
8bc878d
small refactor and fix tests
2af5bee
change log info when overriding ucf
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,7 @@ private static void initCluster() throws Exception { | |
Map<String, String> props = Maps.newConcurrentMap(); | ||
props.put(BaseScannerRegionObserverConstants.PHOENIX_MAX_LOOKBACK_AGE_CONF_KEY, | ||
Integer.toString(60 * 60 * 1000)); | ||
props.put(QueryServices.DEFAULT_UPDATE_CACHE_FREQUENCY_ATRRIB, "ALWAYS"); | ||
props.put(QueryServices.DEFAULT_UPDATE_CACHE_FREQUENCY_ATRRIB, "NEVER"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we want to test with both There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @virajjasani With DDL timestamp validation, UCF should not be ALWAYS, so I think it is okay. WDYT? |
||
props.put(QueryServices.LAST_DDL_TIMESTAMP_VALIDATION_ENABLED, Boolean.toString(true)); | ||
props.put(QueryServices.PHOENIX_METADATA_INVALIDATE_CACHE_ENABLED, Boolean.toString(true)); | ||
props.put(QueryServices.TASK_HANDLING_INITIAL_DELAY_MS_ATTRIB, | ||
|
@@ -55,26 +55,22 @@ public static synchronized void doSetup() throws Exception { | |
|
||
@Test | ||
public void testUcfWithNoGetTableCalls() throws Throwable { | ||
// Uncomment with PHOENIX-7381 | ||
//super.testUcfWithNoGetTableCalls(); | ||
super.testUcfWithNoGetTableCalls(); | ||
} | ||
|
||
@Test | ||
public void testUcfWithDisabledIndex1() throws Throwable { | ||
// Uncomment with PHOENIX-7381 | ||
//super.testUcfWithDisabledIndex1(); | ||
super.testUcfWithDisabledIndex1(); | ||
} | ||
|
||
@Test | ||
public void testUcfWithDisabledIndex2() throws Throwable { | ||
// Uncomment with PHOENIX-7381 | ||
//super.testUcfWithDisabledIndex2(); | ||
super.testUcfWithDisabledIndex2(); | ||
} | ||
|
||
@Test | ||
public void testUcfWithDisabledIndex3() throws Throwable { | ||
// Uncomment with PHOENIX-7381 | ||
//super.testUcfWithDisabledIndex3(); | ||
super.testUcfWithDisabledIndex3(); | ||
} | ||
|
||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
newMetricValues.getValidateDDLTimestampRequestsCount()
should also be 0?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.
There will be requests from other tests, that's why I am checking the difference before and after just this test.