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] Revisit AlertingException wrap logic #825

Open
eirsep opened this issue Mar 3, 2023 · 1 comment
Open

[BUG] Revisit AlertingException wrap logic #825

eirsep opened this issue Mar 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@eirsep
Copy link
Member

eirsep commented Mar 3, 2023

this is the actual error that needs to be surfaced

[2023-03-03T23:08:57,030][ERROR][o.o.a.u.AlertingException] [d52c8d13a5350334e8ebfd39b5805d5b] Alerting error: RemoteTransportException[[784e3b9e8589583cc18deb09efece92a][10.212.49.29:9300][indices:admin/mapping/put]]; nested: IllegalArgumentException[Limit of total fields [1000] has been exceeded];

But the error being seen is

{
    "error": {
        "caused_by": {
            "reason": "org.opensearch.transport.RemoteTransportException: [784e3b9e8589583cc18deb09efece92a][10.212.49.29:9300][indices:admin/mapping/put]",
            "type": "exception"
        },
        "reason": "[784e3b9e8589583cc18deb09efece92a][10.212.49.29:9300][indices:admin/mapping/put]",
        "root_cause": [
            {
                "reason": "[784e3b9e8589583cc18deb09efece92a][10.212.49.29:9300][indices:admin/mapping/put]",
                "type": "alerting_exception"
            }
        ],
        "type": "alerting_exception"
    },
    "status": 500
}

which really doesnt give the relevant stacktrack required to understand what went wrong

@eirsep eirsep added bug Something isn't working untriaged labels Mar 3, 2023
@petardz
Copy link
Contributor

petardz commented Mar 6, 2023

This is why we do "unwrapping" of exception when checking for specific errors. Maybe we should do the same in this wrap function?

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