Skip to content

Conversation

@Aarchy
Copy link
Contributor

@Aarchy Aarchy commented Aug 16, 2023

No description provided.

@Aarchy Aarchy force-pushed the prefix branch 3 times, most recently from 6d88671 to 50710ae Compare August 16, 2023 09:43
Copy link
Contributor

@stoty stoty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a test where you check the deprecation mechanism ?

Also check that we're not using these strings as Scan attributes (we'd need extra code to handle both versions)

"|org.apache.phoenix.index.GlobalIndexChecker|805306365|";
public static final String INDEX_REGION_OBSERVER_CONFIG =
"|org.apache.phoenix.hbase.index.IndexRegionObserver|805306366|" +
"index.builder=org.apache.phoenix.index.PhoenixIndexBuilder," +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

index.builder and org.apache.hadoop.hbase.index.codec.class are present in the HBase table descriptor.
For data backwards compatibility reasons I'd prefer not change these two (even though they have the same problems as others).

i.e. Changing these would break older versions of Phoenix when trying to use them if we changed these.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And these are not read from hbase-site.xml, but from the Hbase table metadata directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out, will restore the original strings.
The string "index.builder" was declared twice though, I think one of them was unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert the whitespace changes ?
If we don't change these, it's better to leave the file alone.

Copy link
Contributor

@stoty stoty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits and whitespace issues

"|org.apache.phoenix.index.GlobalIndexChecker|805306365|";
public static final String INDEX_REGION_OBSERVER_CONFIG =
"|org.apache.phoenix.hbase.index.IndexRegionObserver|805306366|" +
"index.builder=org.apache.phoenix.index.PhoenixIndexBuilder," +
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you revert the whitespace changes ?
If we don't change these, it's better to leave the file alone.


private static final int DEFAULT_ROWLOCK_WAIT_DURATION = 30000;
private static final int DEFAULT_CONCURRENT_MUTATION_WAIT_DURATION_IN_MS = 100;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: don't delete the empty line

.encodeVersion("0.94.9");

private static final int DEFAULT_ROWLOCK_WAIT_DURATION = 30000;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: don't delete the empty line

@Aarchy Aarchy requested a review from stoty August 21, 2023 08:40
Copy link
Contributor

@stoty stoty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@stoty stoty closed this Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants