Uploaded image for project: 'Phoenix Omid'
  1. Phoenix Omid
  2. OMID-248

Transactional Phoenix tests fail on Java 17 in getDefaultNetworkInterface

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.1.1
    • None

    Description

      When running the Phoenix test suite with JDK 17, we get errors like

      [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)
          ...
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            stoty Istvan Toth
            stoty Istvan Toth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment