[
https://issues.apache.org/jira/browse/OMID-248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17767189#comment-17767189
]
Istvan Toth edited comment on OMID-248 at 9/20/23 4:39 PM:
-----------------------------------------------------------
The real problem is OMID seems to insist on detecting a default port, which is
not a universally possible thing to do.
We should simply bind to 0.0.0.0 if no interface or ip address is configured,
and then we can drop that very problematic detection code.
That's what every server does.
was (Author: stoty):
The real problem is OMID seems to insist on detecting a default port, which is
not a universally possible thing to do.
We should simply bind to 0.0.0.0 if no interface or ip address is configured,
and then we can drop that very problematic detection code.
> 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
> 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)