You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "alexott (via GitHub)" <gi...@apache.org> on 2024/12/29 18:32:57 UTC

[I] Integration tests are panic due to localhost resolved to IPv6 address [spark-connect-go]

alexott opened a new issue, #90:
URL: https://github.com/apache/spark-connect-go/issues/90

   MacOS with the default settings, on IPv6-enabled home network. Integration tests fails with panic:
   
   ```
   --- FAIL: TestDataFrame_Select (0.00s)
       dataframe_test.go:41:
           	Error Trace:	/Users/ott/development/forks/spark-connect-go/internal/tests/integration/dataframe_test.go:41
           	Error:      	Received unexpected error:
           	            	[sparkerror] Error Type: execution error
           	            	Error Cause: failed to execute sql: select * from range(100): execution error: failed to call ExecutePlan in session 30941d43-d69e-4af0-af17-acfd619ca7da: rpc error: code = Unavailable desc = dns: error parsing A record IP address fe80::1%lo0
           	            	/Users/ott/development/forks/spark-connect-go/spark/sql/sparksession.go:135 (0x102fe4f41)
           	            		(*sparkSessionImpl).Sql: return nil, sparkerrors.WithType(fmt.Errorf("failed to execute sql: %s: %w", query, err), sparkerrors.ExecutionError)
           	            	/Users/ott/development/forks/spark-connect-go/internal/tests/integration/dataframe_test.go:40 (0x103022804)
           	            		TestDataFrame_Select: df, err := spark.Sql(ctx, "select * from range(100)")
           	            	/opt/homebrew/Cellar/go/1.23.4/libexec/src/testing/testing.go:1690 (0x102a09e64)
           	            		tRunner: fn(t)
           	            	/opt/homebrew/Cellar/go/1.23.4/libexec/src/runtime/asm_arm64.s:1223 (0x102950724)
           	            		goexit: MOVD	R0, R0	// NOP
           	Test:       	TestDataFrame_Select
   panic: runtime error: invalid memory address or nil pointer dereference [recovered]
   	panic: runtime error: invalid memory address or nil pointer dereference
   [signal SIGSEGV: segmentation violation code=0x2 addr=0x198 pc=0x10302293c]
   ```
   
   Changing from `sc://localhost` to `sc://127.0.0.1` fixes the problem


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


Re: [I] Integration tests are panic due to localhost resolved to IPv6 address [spark-connect-go]

Posted by "alexott (via GitHub)" <gi...@apache.org>.
alexott commented on issue #90:
URL: https://github.com/apache/spark-connect-go/issues/90#issuecomment-2565316907

   Ok, it should be fixed by https://github.com/grpc/grpc-go/pull/7889 - we need to upgrade grpc-go to 1.69.x


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org