[JAVA-4495] Cannot search with a custom codec registry Created: 15/Feb/22 Updated: 27/Oct/23 Resolved: 10/Oct/22 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Codecs |
| Affects Version/s: | 4.5.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Boris Petrov | Assignee: | Unassigned |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | external-user, regression | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
| Comments |
| Comment by Jeffrey Yemin [ 10/Oct/22 ] | |||||||||||||||||||||||||||||||||
|
Took another look at this, and it just looks like the custom registry is not written correctly. If it's changed to:
then it works as expected. Closing as Works as Designed. | |||||||||||||||||||||||||||||||||
| Comment by Boris Petrov [ 15/Feb/22 ] | |||||||||||||||||||||||||||||||||
|
Thanks, that indeed does solve the issue (and makes my code simpler)! Of course, the original problem still remains. | |||||||||||||||||||||||||||||||||
| Comment by Jeffrey Yemin [ 15/Feb/22 ] | |||||||||||||||||||||||||||||||||
|
Ah, ok. No worries. Try something like this:
| |||||||||||||||||||||||||||||||||
| Comment by Boris Petrov [ 15/Feb/22 ] | |||||||||||||||||||||||||||||||||
|
@Jeffrey Yemin - well, for one, I didn't know about these builders. | |||||||||||||||||||||||||||||||||
| Comment by Jeffrey Yemin [ 15/Feb/22 ] | |||||||||||||||||||||||||||||||||
|
alien what is your use case for implementing a custom CodecRegistry interface, as opposed to using the builders in CodecRegistries? If we understood that, we might be able to offer a workaround while we continue our analysis. | |||||||||||||||||||||||||||||||||
| Comment by Jeffrey Yemin [ 15/Feb/22 ] | |||||||||||||||||||||||||||||||||
|
Thanks for the report. Here's a slightly simpler repro, using the sync driver:
This is almost certainly a regression introduced by the fix to |