Skip to content

Commit

Permalink
Fix panic in timescale target with iot use case (#233)
Browse files Browse the repository at this point in the history
* Ensure all tables are created before continuing

When create-metrics-table is false, PostCreateDB does not populate tableCols,
causing incorrect column count in Timescale processor.  Wait for all tables to be created.

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>

* Ignore `out` directory

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>

---------

Signed-off-by: Arunprasad Rajkumar <ar.arunprasad@gmail.com>
  • Loading branch information
arajkumar committed Sep 21, 2023
1 parent bcc0013 commit 37fced7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
.vscode
*~

bin

# High Dynamic Range (HDR) Histogram files
*.hdr
1 change: 0 additions & 1 deletion pkg/targets/timescaledb/creator.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func (d *dbCreator) PostCreateDB(dbName string) error {
}
r = MustQuery(dbBench, checkTableQuery)
}
return nil
}
}
return nil
Expand Down

0 comments on commit 37fced7

Please sign in to comment.