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

[Bug]: For dynamic plugins TableMapFunc is being called twice during plugin initialization #1368

Closed
LalitLab opened this issue Jan 28, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@LalitLab
Copy link

Describe the bug

2022-01-28T18:23:14.959+0530 [INFO]  starting plugin manager
2022-01-28T18:23:14.971+0530 [INFO]  created ConnectionWatcher
2022-01-28T18:23:16.037+0530 [INFO]  steampipe-plugin-salesforce.plugin: [INFO]  ############ pluginTableDefinitions: START="2022-01-28 18:23:16.03706 +0530 IST m=+0.014886441" string(debug.Stack())="goroutine 56 [running]:
2022-01-28T18:23:17.650+0530 [INFO]  steampipe-plugin-salesforce.plugin: [INFO]  [simpleforce] User lalit@turbot.com authenticated.
2022-01-28T18:23:19.440+0530 [INFO]  steampipe-plugin-salesforce.plugin: [INFO]  ############ pluginTableDefinitions: END="2022-01-28 18:23:19.440291 +0530 IST m=+3.418151384"
2022-01-28T18:23:19.444+0530 [INFO]  steampipe-plugin-salesforce.plugin: [INFO]  query cache created
2022-01-28T18:23:20.002+0530 [WARN]  initialized: 27772
2022-01-28T18:23:20.073+0530 [INFO]  steampipe-plugin-salesforce.plugin: [INFO]  ############ pluginTableDefinitions: START="2022-01-28 18:23:20.073561 +0530 IST m=+4.051428244" string(debug.Stack())="goroutine 29 [running]:
2022-01-28T18:23:21.711+0530 [INFO]  steampipe-plugin-salesforce.plugin: [INFO]  ############ pluginTableDefinitions: END="2022-01-28 18:23:21.711248 +0530 IST m=+5.689131213"

Steampipe version (steampipe -v)
Example: v0.12.2

To reproduce
Clone:

git clone https://github.com/turbot/steampipe-plugin-salesforce.git
cd steampipe-plugin-salesforce

Build, which automatically installs the new version to your ~/.steampipe/plugins directory:

git checkout dynamic-tables-2
make

Configure the plugin:

cp config/* ~/.steampipe/config
vi ~/.steampipe/config/salesforce.spc

Initialize steampipe

steampipe query
@LalitLab LalitLab added the bug Something isn't working label Jan 28, 2022
@binaek
Copy link
Contributor

binaek commented Jan 31, 2022

@LalitTurbot I think this is an SDK issue. @kaidaguerre would you agree?

@kaidaguerre
Copy link
Contributor

No - I asked @LalitTurbot to raise it here as it is a combination of Steampipe and/or FDW

kaidaguerre added a commit that referenced this issue Feb 1, 2022
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

No branches or pull requests

3 participants