You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "zuston (via GitHub)" <gi...@apache.org> on 2025/07/14 06:19:08 UTC
[I] [Bug] NPE about StatisticsCodec [uniffle]
zuston opened a new issue, #2544:
URL: https://github.com/apache/uniffle/issues/2544
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
### Search before asking
- [x] I have searched in the [issues](https://github.com/apache/incubator-uniffle/issues?q=is%3Aissue) and found no similar issues.
### Describe the bug
<img width="1006" height="376" alt="Image" src="https://github.com/user-attachments/assets/c4edd893-7f40-424e-929a-3263969f02c8" />
### Affects Version(s)
master
### Uniffle Server Log Output
```logtalk
```
### Uniffle Engine Log Output
```logtalk
```
### Uniffle Server Configurations
```yaml
```
### Uniffle Engine Configurations
```yaml
```
### Additional context
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
--
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: issues-unsubscribe@uniffle.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "zuston (via GitHub)" <gi...@apache.org>.
zuston commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3071407116
> Hey can i work in this issue?
>
Sure. Please go ahead
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "SalvadorRomo (via GitHub)" <gi...@apache.org>.
SalvadorRomo commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3090228706
I was trying to replicate the issue, but wasn't able even to see the logs `Statistics of compression`. I'm deploying the application based on the `deploy ` folder. Also, I'm executing the spark shell with this command and run the scala job with luck . Do you know any missing information im missing ?
```
docker exec -it rss-spark-master-1 /opt/spark/bin/spark-shell \
--master spark://rss-spark-master-1:7077 \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.shuffle.manager=org.apache.spark.shuffle.RssShuffleManager \
--conf spark.rss.coordinator.quorum=rss-coordinator-1:19999,rss-coordinator-2:19999 \
--conf spark.rss.storage.type=MEMORY_LOCALFILE \
--conf spark.speculation=true \
--conf spark.rss.client.compression.type=LZ4 \
--conf spark.rss.client.io.compression.statisticsEnabled=true
```
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "SalvadorRomo (via GitHub)" <gi...@apache.org>.
SalvadorRomo commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3070633278
Hey can i work in this issue?
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "SalvadorRomo (via GitHub)" <gi...@apache.org>.
SalvadorRomo commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3071748939
Hi! Any recommendation to replicate this issue?
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "SalvadorRomo (via GitHub)" <gi...@apache.org>.
SalvadorRomo commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3094576345
well, finally I coud find the logs with the statistics logs but tried different combinations of sparks jobs but wasn't able to do it, instead i focus that evrything contiune working as usual, if you have an specific enviorment sample that triggers this error will appreciate it in order to test this fix accurately.
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "zuston (via GitHub)" <gi...@apache.org>.
zuston closed issue #2544: [Bug] NPE about StatisticsCodec
URL: https://github.com/apache/uniffle/issues/2544
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "SalvadorRomo (via GitHub)" <gi...@apache.org>.
SalvadorRomo commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3072030821
Moreover, I did a quick investigation on the code and have one theory, seems like a unsafe publication issue, One thread created a codec to compress data with compression statistics and it starts to record in `compressCosts`, but since this code is not thread safe, for some reason thread B enters to action, hitting the statistics method and skipping `isEmpty()` validation because maybe the object is partially there, but it fails on Sort. My idea maybe is to convet the 'CompressCost' into a concurrent data structure, or making methods synchronize
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org
Re: [I] [Bug] NPE about StatisticsCodec [uniffle]
Posted by "zuston (via GitHub)" <gi...@apache.org>.
zuston commented on issue #2544:
URL: https://github.com/apache/uniffle/issues/2544#issuecomment-3075638737
> Moreover, I did a quick investigation on the code and have one theory, seems like a unsafe publication issue, One thread created a codec to compress data with compression statistics and it starts to record in `compressCosts`, but since this code is not thread safe, for some reason thread B enters to action, hitting the statistics method and skipping `isEmpty()` validation because maybe the object is partially there, but it fails on Sort. My idea maybe is to convet the `CompressCost `into a concurrent data structure, or making methods synchronize, just let me know to apply change in a PR
Sounds good
--
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: issues-unsubscribe@uniffle.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org