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

aws_glue_catalog_table Error: Provider produced inconsistent result after apply #29076

Open
drennie84 opened this issue Jan 24, 2023 · 2 comments
Labels
bug Addresses a defect in current functionality. service/glue Issues and PRs that pertain to the glue service.

Comments

@drennie84
Copy link

Terraform Core Version

1.0.0

AWS Provider Version

3.75.2

Affected Resource(s)

aws_glue_catalog_table

Expected Behavior

table created without any errors

Actual Behavior

table is created but an the error is returned and the resource's state isn't tracked

When applying the changes again, a different error is returned table already exists

Relevant Error/Panic Output Snippet

Error: Provider produced inconsistent result after apply
    
When applying changes to module.datalake.aws_glue_catalog_table.table-name
provider "provider[\"registry.terraform.io/hashicorp/aws\"]" produced an 
unexpected new value: Root resource was present, but now absent.

This is a bug in the provider, which should be reported in the provider's 
own issue tracker

Terraform Configuration Files

resource "aws_glue_catalog_table" "table-name" {
  name          = "milestone_event"
  database_name = "governed_database-name"
  table_type = "GOVERNED"
  partition_keys {
    name = "default_partition"
    type = "string"
  }
  storage_descriptor {
    input_format  = "org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat"
    output_format = "org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat"
    location      = "s3://${var.s3_raw_bucket}/data/"
    ser_de_info {
      name = "governed_milestone"
      parameters = {
        "serialization.format" = "1"
      }
      serialization_library = "org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe"
    }
    columns {
      name    = "id"
      type    = "string"
      comment = ""
    }
    columns {
      name    = "title"
      type    = "string"
      comment = ""
    }
  }
}

Steps to Reproduce

terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Checked the glue code for isNewResource in the read method

func resourceCatalogTableRead(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics {

Issues may be related to #16796

Would you like to implement a fix?

None

@drennie84 drennie84 added bug Addresses a defect in current functionality. needs-triage Waiting for first response or review from a maintainer. labels Jan 24, 2023
@github-actions
Copy link

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/glue Issues and PRs that pertain to the glue service. label Jan 24, 2023
@drennie84 drennie84 changed the title [Bug]: aws_glue_catalog_table Error: Provider produced inconsistent result after apply Jan 24, 2023
@justinretzolk
Copy link
Member

Potentially related: #29108

@justinretzolk justinretzolk removed the needs-triage Waiting for first response or review from a maintainer. label Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Addresses a defect in current functionality. service/glue Issues and PRs that pertain to the glue service.
Projects
None yet
Development

No branches or pull requests

2 participants