[
https://issues.apache.org/jira/browse/OMID-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767381#comment-17767381
]
Istvan Toth commented on OMID-248:
----------------------------------
I'll open another ticket for removing the method.
Actually, both methods to determine the interace are broken.
The connection to 1.1.1.1 method uses port 0, which is outright rejected by JDK
17,
while the fallback enumeration method wants more than one ip address on the
interface, which looks like a simple off-by-one error, as having more than one
IP on an interface is anything but standard.
> Transactional Phoenix tests fail on Java 17 in getDefaultNetworkInterface
> --------------------------------------------------------------------------
>
> Key: OMID-248
> URL: https://issues.apache.org/jira/browse/OMID-248
> Project: Phoenix Omid
> Issue Type: Bug
> Affects Versions: 1.1.0
> Reporter: Istvan Toth
> Assignee: Istvan Toth
> Priority: Major
>
> When running the Phoenix test suite with JDK 17, we get errors like
> {noformat}
> [ERROR]
> org.apache.phoenix.end2end.TransactionalViewIT.testInvalidRowsWithStats[TransactionalViewIT_transactionProvider=OMID]
> Time elapsed: 0.001 s <<< ERROR!
> java.lang.IllegalArgumentException: No network 'en*'/'eth*' interfaces found
> at
> org.apache.omid.NetworkUtils.getDefaultNetworkInterface(NetworkUtils.java:68)
> at org.apache.omid.tso.TSOServerConfig.<init>(TSOServerConfig.java:88)
> at org.apache.omid.tso.TSOServerConfig.<init>(TSOServerConfig.java:56)
> at
> org.apache.phoenix.transaction.OmidTransactionService.startAndInjectOmidTransactionService(OmidTransactionService.java:62)
> at
> org.apache.phoenix.transaction.TransactionServiceManager.startTransactionService(TransactionServiceManager.java:33)
> at
> org.apache.phoenix.end2end.ConnectionQueryServicesTestImpl.initTransactionClient(ConnectionQueryServicesTestImpl.java:120)
> at
> org.apache.phoenix.transaction.OmidTransactionContext.<init>(OmidTransactionContext.java:60)
> at
> org.apache.phoenix.transaction.OmidTransactionProvider.getTransactionContext(OmidTransactionProvider.java:65)
> at
> org.apache.phoenix.execute.MutationState.startTransaction(MutationState.java:408)
> at
> org.apache.phoenix.util.TransactionUtil.getTableTimestamp(TransactionUtil.java:124)
> at
> org.apache.phoenix.schema.MetaDataClient.createTableInternal(MetaDataClient.java:2307)
> at
> org.apache.phoenix.schema.MetaDataClient.createTable(MetaDataClient.java:1023)
> at
> org.apache.phoenix.compile.CreateTableCompiler$CreateTableMutationPlan.execute(CreateTableCompiler.java:421)
> at
> org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:559)
> at
> org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:525)
> at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
> at
> org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:524)
> at
> org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:512)
> at
> org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:2206)
> at
> org.apache.phoenix.end2end.TransactionalViewIT.testInvalidRowsWithStats(TransactionalViewIT.java:108)
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)