Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nil pointer ha e2e #1952

Merged
merged 2 commits into from
Feb 29, 2024
Merged

Conversation

johscheuer
Copy link
Member

Description

We observed the following issue in our nightly test cases:

  [PANICKED] Test Panicked
  In [It] at: /usr/local/go/src/runtime/panic.go:260 @ 02/28/24 13:40:16.976

  runtime error: invalid memory address or nil pointer dereference

  Full Stack Trace
    github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures.(*HaFdbCluster).GetCluster(...)
    	/codebuild/output/src3955936553/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures/ha_fdb_cluster.go:95
    github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures.(*HaFdbCluster).GetPrimary(...)
    	/codebuild/output/src3955936553/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures/ha_fdb_cluster.go:54
    github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures.(*Factory).CreateFdbHaCluster(0xc000615218?, 0xf91e4ee5dfcf676b?, {0xc000455de0, 0x2, 0x2})
    	/codebuild/output/src3955936553/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures/factory.go:198 +0xb7
    github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_ha_upgrades.clusterSetupWithTestConfig({{0xc00004ce60, 0x6}, 0x1, 0x1, 0x1, 0xc0004fb3f0})
    	/codebuild/output/src3955936553/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_ha_upgrades/operator_ha_upgrade_test.go:83 +0x26c
    github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_ha_upgrades.glob..func2.4({0xc00004ce60?, 0x0?}, {0xc00004ce66, 0x6})
    	/codebuild/output/src3955936553/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_ha_upgrades/operator_ha_upgrade_test.go:180 +0x9b
    reflect.Value.call({0x17877c0?, 0x1ad9818?, 0x13?}, {0x19d9e3f, 0x4}, {0xc00057e510, 0x2, 0x2?})
    	/usr/local/go/src/reflect/value.go:586 +0xb0b
    reflect.Value.Call({0x17877c0?, 0x1ad9818?, 0x1c7d818?}, {0xc00057e510?, 0x430f8290b0bcbfd9?, 0xe7557fe55be6e393?})
    	/usr/local/go/src/reflect/value.go:370 +0xbc

  There were additional failures detected.  To view them in detail run ginkgo -vv

The issue was that the returned error was checked after the method was accessing the returned pointer.

Type of change

Please select one of the options below.

  • Bug fix (non-breaking change which fixes an issue)

Discussion

Testing

CI will be running tests.

Documentation

Follow-up

@johscheuer johscheuer added the bug Something isn't working label Feb 28, 2024
@foundationdb-ci
Copy link

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

  • Commit ID: d447141
  • Duration 2:00:11
  • Result: ❌ FAILED
  • Error: Error while executing command: if $fail_test; then exit 1; fi. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@johscheuer johscheuer closed this Feb 28, 2024
@johscheuer johscheuer reopened this Feb 28, 2024
@foundationdb-ci
Copy link

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

  • Commit ID: d447141
  • Duration 2:04:28
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

Copy link
Contributor

@nicmorales9 nicmorales9 left a comment

Choose a reason for hiding this comment

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

LGTM

@johscheuer johscheuer merged commit 6a1ea6c into FoundationDB:main Feb 29, 2024
15 checks passed
@johscheuer johscheuer deleted the fix-nil-pointer-ha-e2e branch February 29, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants