SQL Query Error – “REMOTE_TASK_ERROR: Max requests queued per destination 1024 exceeded”

Problem:

When executing a SQL query, the following error may appear:

REMOTE_TASK_ERROR: Max requests queued per destination 1024 exceeded for HttpDestination[Origin@6c724ec5[http://10.52.220.107:8081,tag=null,protocol=Protocol@7f4624a[proto=[http/1.1],nego=false],transport=TCPIP@1926f962]]@33d07d4b,state=STARTED,queue=1024,pool=MultiplexConnectionPool@72e69654[s=STARTED,c=0/250/250,a=250,i=0,q=1024,p=ConcurrentPool@13ec74bb[strategy=FIRST,inUse=250,size=250,max=250,leaked=0,terminated=false]],stale=false,idle=0

This prevents the query from completing successfully.


Root Cause:

The backend worker node’s request queue reached its maximum capacity (1024), causing new queries or tasks to fail temporarily.


Why This Happens:

  • Multiple queries or tasks are sent to the backend at the same time.

  • Temporary spikes in system load can overload the worker node’s request queue.

  • Once the system load normalizes, the error typically resolves automatically.


Solution / How to Fix It:

  1. Retry the query: Wait a few minutes and run the query again.

  2. Reduce concurrent load: Check if multiple heavy queries are running at the same time and reduce concurrency if possible.

  3. Reach out to the Support team if needed: If the issue occurs repeatedly or persists, report it to the Support team for further investigation and resolution in the production environment.

Note: This error is generally temporary and does not indicate a permanent system issue.