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

Region Exception occurred too many sst files are ingesting #676

Open
tank-plus opened this issue Nov 24, 2022 · 2 comments
Open

Region Exception occurred too many sst files are ingesting #676

tank-plus opened this issue Nov 24, 2022 · 2 comments
Labels
type/bug Something isn't working

Comments

@tank-plus
Copy link

Bug Report

1. Describe the bug

Multiple thread ingest batch kvs into a region.

2. Minimal reproduce step (Required)

batch kvs use ImporterClient do ingest method to imort data into tikv

3. What did you see instead (Required)

2022-11-17 06:45:42,079 WARN org.tikv.common.importer.ImporterClient [] - ingest failed.
org.tikv.common.exception.RegionException: Region Exception occurred too many sst files are ingesting
at org.tikv.common.importer.ImporterStoreClient.multiIngest(ImporterStoreClient.java:158) ~[?:?]
at org.tikv.common.importer.ImporterClient.ingestWithRetry(ImporterClient.java:266) ~[?:?]
at org.tikv.common.importer.ImporterClient.ingestWithRetry(ImporterClient.java:320) ~[?:?]
at org.tikv.common.importer.ImporterClient.ingestWithRetry(ImporterClient.java:320) ~[?:?]
at org.tikv.common.importer.ImporterClient.ingest(ImporterClient.java:261) ~[?:?]
at org.tikv.common.importer.ImporterClient.write(ImporterClient.java:136) ~[?:?]
at com.fabarta.loader.tikv.TiKVClient.doIngest(TiKVClient.java:277) ~[?:?]
at com.fabarta.loader.tikv.TiKVClient.groupBatchPut(TiKVClient.java:261) ~[?:?]
at com.fabarta.loader.tikv.TiKVImporter.importData(TiKVImporter.java:71) ~[?:?]
at com.fabarta.loader.core.WriteTiKVTask.flushBuffer(WriteTiKVTask.java:22) ~[?:?]
at com.fabarta.loader.core.WriteTiKVTask.run(WriteTiKVTask.java:29) ~[?:?]
at com.fabarta.loader.core.FabartaLoader.lambda$flushCache$1(FabartaLoader.java:307) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:?]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:?]
at java.lang.Thread.run(Unknown Source) [?:?]

4. What did you expect to see? (Required)

5. What are your Java Client and TiKV versions? (Required)

3.3.0

  • Client Java:
  • TiKV:
@tank-plus tank-plus added the type/bug Something isn't working label Nov 24, 2022
@sunxiaoguang
Copy link
Member

Can you make sure don't ingest too many set files and don't ingest the same region concurrently.

@liangyuanpeng
Copy link

liangyuanpeng commented Jan 1, 2023

Can you make sure don't ingest too many set files and don't ingest the same region concurrently.

I think that SDK should handle this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants