[
https://issues.apache.org/jira/browse/BEAM-14283?focusedWorklogId=756054&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-756054
]
ASF GitHub Bot logged work on BEAM-14283:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Apr/22 22:07
Start Date: 12/Apr/22 22:07
Worklog Time Spent: 10m
Work Description: arunpandianp commented on PR #17333:
URL: https://github.com/apache/beam/pull/17333#issuecomment-1097276526
> Is the intended change meant to chain futures whenever
executor.submit(callable) is called?
Yes the release is chained with the future. `semaphore.acquire();` runs on
taskSubmitExecutor and `semaphore::release` runs on taskExecutor.
Issue Time Tracking
-------------------
Worklog Id: (was: 756054)
Time Spent: 50m (was: 40m)
> Reduce number of threads spawned by BigqueryIO StreamingInserts
> ---------------------------------------------------------------
>
> Key: BEAM-14283
> URL: https://issues.apache.org/jira/browse/BEAM-14283
> Project: Beam
> Issue Type: Improvement
> Components: io-java-gcp
> Reporter: Arun Pandian
> Assignee: Arun Pandian
> Priority: P2
> Time Spent: 50m
> Remaining Estimate: 0h
>
> BigqueryIO's BoundedExecutorService is creating many new threads. It can be
> optimized by acquiring the involved semaphore before task submission instead
> of after inside the runnable.
> ref:https://github.com/apache/beam/blob/5603bd310a63fa35082e6bc6b06c7fecc90e77d7/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryServicesImpl.java#L1676
--
This message was sent by Atlassian Jira
(v8.20.1#820001)