rusackas commented on issue #28326:
URL: https://github.com/apache/superset/issues/28326#issuecomment-2093713913

   Nope, but I'm highly doubtful that many people have 20K values in their "in" 
clause. Normally you would keep that many values in a table, and just do a JOIN 
or other (far more terse) query. Is that possible in your case? You might just 
be sending far too much text to the SQL parser or something like that, causing 
some bottleneck/timeout, which seems like a rare and avoidable edge case. 
   
   Here's what GPT has to say about your issue, in case you want to investigate 
some more:
   
   
   The error you're encountering in Apache Superset seems to be originating 
from an SSL error during the HTTPS connection attempt to your PrestoDB server. 
The error message "EOF occurred in violation of protocol" typically indicates a 
lower-level issue with the SSL/TLS handshake between Superset and your PrestoDB 
server.
   
   Here are several steps and checks you can perform to troubleshoot and 
potentially resolve this issue:
   
   1. Verify SSL Configuration: Check the SSL configuration on the PrestoDB 
server. Ensure that the SSL certificate is correctly installed, valid, and not 
expired. Verify that the server is configured to use TLS protocols supported by 
the client (Superset in this case).
   2. Check Network Issues: Since the error message includes "Max retries 
exceeded," it's also worth checking if there are any network connectivity 
issues between the Superset instance and the PrestoDB server. You can test 
connectivity using tools like ping or curl to ensure there are no intermittent 
network issues or firewalls blocking the connection.
   3. Update Dependencies: Ensure that the Python libraries related to 
networking and HTTP requests (requests, urllib3) are up to date. Sometimes, 
older versions of these libraries might have bugs or incompatibilities with 
certain SSL/TLS configurations.
   4. Adjust SSL/TLS Settings in Superset: If the SSL issue persists, you can 
try adjusting the SSL settings in your Superset configuration. For example, you 
might adjust the SSL verification settings temporarily to see if that allows 
the connection to succeed (not recommended for production environments due to 
security concerns).
   5. Increase Timeout and Retries: The error mentions that maximum retries 
have been exceeded. You can increase the timeout and retry settings in 
Superset's configuration to allow more time for the connection to be 
established, especially if the server is under heavy load or slow to respond.
   6. Review Superset Logs: Further investigate any additional log entries 
around the time of the error to see if there are more detailed messages that 
might indicate the root cause. This could provide more context on why the 
SSL/TLS handshake is failing.
   7. Simplify the Query: Since the error occurs when a large number of values 
are used in the IN clause of your SQL query, test with a smaller set of values 
to determine if the issue is related to the size of the request. If the smaller 
query succeeds, the issue might be related to how large queries are handled or 
transmitted over the network.
   
   To proceed, you might start with the simpler checks (like verifying network 
connectivity and SSL certificates) and then move towards more complex 
configurations and adjustments as needed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to