Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

Unregistering multiple applications doesn't work while unregistering single application works.  #5317

@seonWKim

Description

@seonWKim

Description:
When I try to unregister multiple applications using group actions, it throws NPE occasionally. I looked into the stack trace and found the code which was throwing the error.

if (streamDeploymentPropertiesMap.containsKey(appName)) {
	Map<String, String> appDeploymentProperties = streamDeploymentPropertiesMap.get(streamAppName);
	if (appDeploymentProperties.containsKey(SkipperStream.SKIPPER_SPEC_VERSION)) {
		String version = appDeploymentProperties.get(SkipperStream.SKIPPER_SPEC_VERSION);
		if (version != null && version.equals(appVersion)) {
			return streamDefinition.getName();
		}
	}
}

NullPointerException is being thrown by AppRegistryController at line 342

  • line 342: if (appDeploymentProperties.containsKey(SkipperStream.SKIPPER_SPEC_VERSION))

I don't have deep understanding in this code but I think NullPointerException is being thrown because streamDeploymentPropertiesMap.containsKey(appName) is not checking appropriate key(appName). You can see that on the next line streamDeploymentPropertiesMap.get(streamAppName), streamDeploymentPropertiesMap is retrieving a value from different key(streamAppName). I wonder if this is a bug or something that should work properly.

Release versions:
The version is 2.10.0

Custom apps:
Not related to custom apps.

Steps to reproduce:
Use dataflow version 2.10.0.
Register multiple applications. Then unregister applications using group action.

Screenshots:
image
image
image
image

Additional context:
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions