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

[🍒][PLUGIN-1838] Error Management catch known errors [GCSArgumentSetter] #1498

Conversation

psainics
Copy link
Contributor

@psainics psainics commented Jan 21, 2025

🍒 [cherrypick]

Commits :

PR:


Error Management catch known errors [GCSArgumentSetter]

Jira : PLUGIN-1838

Description

Error Management catch known errors

Code change

  • Modified GCSArgumentSetter.java

Tests

  • Test Case (Incorrect json format file provided)
Raw Logs
2025-01-20 09:13:48,323 - ERROR [WorkflowDriver:i.c.c.i.a.r.w.WorkflowProgramController@90] - Workflow service 'workflow.default.TEST_GCS_ARG.DataPipelineWorkflow.b9609e48-d6e0-11ef-a108-0000005fe079' failed.
io.cdap.cdap.api.exception.WrappedStageException: Stage 'GCS Argument Setter' encountered : io.cdap.cdap.api.exception.ProgramFailureException: Could not parse response from 'io.cdap.plugin.gcp.gcs.GCSPath@7b0634ba': com.google.gson.stream.MalformedJsonException: Unterminated array at line 8 column 6 path $.arguments[1]
  at io.cdap.cdap.etl.common.plugin.ExceptionWrappingCaller.call(ExceptionWrappingCaller.java:64)
  at io.cdap.cdap.etl.common.plugin.WrappedAction.run(WrappedAction.java:48)
  at io.cdap.cdap.etl.batch.customaction.PipelineAction.run(PipelineAction.java:91)
  at io.cdap.cdap.internal.app.runtime.AbstractContext.execute(AbstractContext.java:608)
  at io.cdap.cdap.internal.app.runtime.workflow.CustomActionExecutor.execute(CustomActionExecutor.java:90)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.executeCustomAction(WorkflowDriver.java:449)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.executeNode(WorkflowDriver.java:489)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.executeAll(WorkflowDriver.java:669)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.run(WorkflowDriver.java:653)
  at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52)
  at java.lang.Thread.run(Thread.java:750)
Caused by: io.cdap.cdap.api.exception.ProgramFailureException: Could not parse response from 'io.cdap.plugin.gcp.gcs.GCSPath@7b0634ba': com.google.gson.stream.MalformedJsonException: Unterminated array at line 8 column 6 path $.arguments[1]
  at io.cdap.cdap.api.exception.ProgramFailureException$Builder.build(ProgramFailureException.java:229)
  at io.cdap.cdap.api.exception.ErrorUtils.getProgramFailureException(ErrorUtils.java:161)
  at io.cdap.plugin.gcp.gcs.actions.GCSArgumentSetter.run(GCSArgumentSetter.java:107)
  at io.cdap.cdap.etl.common.plugin.WrappedAction.lambda$run$1(WrappedAction.java:49)
  at io.cdap.cdap.etl.common.plugin.Caller$1.call(Caller.java:30)
  at io.cdap.cdap.etl.common.plugin.ExceptionWrappingCaller.call(ExceptionWrappingCaller.java:62)
  ... 10 common frames omitted
2025-01-20 09:13:48,324 - DEBUG [WorkflowDriver:i.c.c.c.l.c.UncaughtExceptionHandler@40] - Uncaught exception in thread Thread[WorkflowDriver,5,main]
io.cdap.cdap.api.exception.WrappedStageException: Stage 'GCS Argument Setter' encountered : io.cdap.cdap.api.exception.ProgramFailureException: Could not parse response from 'io.cdap.plugin.gcp.gcs.GCSPath@7b0634ba': com.google.gson.stream.MalformedJsonException: Unterminated array at line 8 column 6 path $.arguments[1]
  at io.cdap.cdap.etl.common.plugin.ExceptionWrappingCaller.call(ExceptionWrappingCaller.java:64)
  at io.cdap.cdap.etl.common.plugin.WrappedAction.run(WrappedAction.java:48)
  at io.cdap.cdap.etl.batch.customaction.PipelineAction.run(PipelineAction.java:91)
  at io.cdap.cdap.internal.app.runtime.AbstractContext.execute(AbstractContext.java:608)
  at io.cdap.cdap.internal.app.runtime.workflow.CustomActionExecutor.execute(CustomActionExecutor.java:90)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.executeCustomAction(WorkflowDriver.java:449)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.executeNode(WorkflowDriver.java:489)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.executeAll(WorkflowDriver.java:669)
  at io.cdap.cdap.internal.app.runtime.workflow.WorkflowDriver.run(WorkflowDriver.java:653)
  at com.google.common.util.concurrent.AbstractExecutionThreadService$1$1.run(AbstractExecutionThreadService.java:52)
  at java.lang.Thread.run(Thread.java:750)
Caused by: io.cdap.cdap.api.exception.ProgramFailureException: Could not parse response from 'io.cdap.plugin.gcp.gcs.GCSPath@7b0634ba': com.google.gson.stream.MalformedJsonException: Unterminated array at line 8 column 6 path $.arguments[1]
  at io.cdap.cdap.api.exception.ProgramFailureException$Builder.build(ProgramFailureException.java:229)
  at io.cdap.cdap.api.exception.ErrorUtils.getProgramFailureException(ErrorUtils.java:161)
  at io.cdap.plugin.gcp.gcs.actions.GCSArgumentSetter.run(GCSArgumentSetter.java:107)
  at io.cdap.cdap.etl.common.plugin.WrappedAction.lambda$run$1(WrappedAction.java:49)
  at io.cdap.cdap.etl.common.plugin.Caller$1.call(Caller.java:30)
  at io.cdap.cdap.etl.common.plugin.ExceptionWrappingCaller.call(ExceptionWrappingCaller.java:62)
  ... 10 common frames omitted
  
POST v3/namespaces/{namespace-id}/apps/{app-id}/workflows/DataPipelineWorkflow/runs/{run-id}/classify
[
{
  "stageName": "GCS Argument Setter",
  "errorCategory": "Plugin-'GCS Argument Setter'",
  "errorReason": "Could not parse response from 'io.cdap.plugin.gcp.gcs.GCSPath@7b0634ba': com.google.gson.stream.MalformedJsonException: Unterminated array at line 8 column 6 path $.arguments[1]",
  "errorMessage": "Could not parse response from 'io.cdap.plugin.gcp.gcs.GCSPath@7b0634ba': com.google.gson.stream.MalformedJsonException: Unterminated array at line 8 column 6 path $.arguments[1]",
  "errorType": "USER",
  "dependency": "false"
}
]

image

@psainics psainics added the build Trigger unit test build label Jan 21, 2025
@psainics psainics self-assigned this Jan 21, 2025
@psainics psainics force-pushed the cherry-pick/c153c7c2cfe8e52a031ad93a761746d8afe7ce96 branch from 36da127 to 4ef9aba Compare January 22, 2025 02:52
@psainics psainics marked this pull request as ready for review January 22, 2025 05:12
@psainics psainics merged commit ad2503e into data-integrations:release/0.24 Jan 22, 2025
16 checks passed
@Amit-CloudSufi Amit-CloudSufi deleted the cherry-pick/c153c7c2cfe8e52a031ad93a761746d8afe7ce96 branch January 22, 2025 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Trigger unit test build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants