Skip to content

Conversation

@keith-turner
Copy link
Contributor

PerTableCryptoIT was setting a table prop when it did not need to and this was failing. Removed setting the table prop and since the test already set the general prop for the crypto service to AES the test works w/o any additional changes.

follow up for #5886

PerTableCryptoIT was setting a table prop when it did not need to and
this was failing.  Removed setting the table prop and since the test
already set the general prop for the crypto service to AES the test
works w/o any additional changes.

follow up for apache#5886
@keith-turner keith-turner added this to the 4.0.0 milestone Sep 23, 2025
args.add(new Path(hadoopConfDir, "hdfs-site.xml").toString());
}
args.add("-o");
args.add(TABLE_SERVICE_NAME_PROP + "=" + AESCryptoService.class.getName());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Earlier in the test on line 75 it does the following

    cfg.setProperty(GenericCryptoServiceFactory.GENERAL_SERVICE_NAME_PROP,
        AESCryptoService.class.getName());

so w/ that setting the table prop is not needed, PrintInfo will still use AES

Copy link
Member

Choose a reason for hiding this comment

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

I don't think the per-table property would have worked anyway, since there's no table context when using PrintInfo using an RFile path. In theory, it could guess based on the path, but it shouldn't do that. If it tried to do that, I'd consider it a bug. The general prop is the right one to set for this.

@keith-turner keith-turner merged commit ceaf8ca into apache:main Sep 23, 2025
8 checks passed
@keith-turner keith-turner deleted the table_props/fix_per_table_crypto_it branch September 23, 2025 16:32
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.

3 participants